MonolithicLossConfig¶
Module: fast_llm.layers.language_model.loss.config
Inherits from: LanguageModelLossConfig
Fields¶
losses—core-
Type: dict[
str, LanguageModelLossConfig] Default:dict()The combinable losses sharing a single softmax pass. They must agree on
logits_scale_factor. weight—core-
Type:
floatDefault:1.0Weight for this loss in the total loss computation.
logits_scale_factor—feature-
Type:
floatDefault:1.0Extra logits scale factor applied for this loss only, stacked on top of the model's
logits_scale_factor. use_triton—expert-
Type:
boolorNoneDefault:NoneEnable the triton implementation of the shared-softmax kernel. Default: use if available.