Skip to content

CombinableLossConfig

Abstract

This class cannot be instantiated directly. Use one of the variants listed below.

Module: fast_llm.layers.language_model.loss.config

Inherits from: LanguageModelLossConfig

Fields

weight — core

Type: float    Default: 1.0

Weight for this loss in the total loss computation.

logits_scale_factor — feature

Type: float    Default: 1.0

Extra logits scale factor applied for this loss only, stacked on top of the model's logits_scale_factor.

use_triton — expert

Type: bool or None    Default: None

Enable triton implementation. Default: use if available.