Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/mcore_bridge/config/model_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,11 @@ class ModelConfig(TransformerConfig):
num_labels: Optional[int] = None
mlp_padding_free: bool = False

# Optional memory-bounded LM-head + cross-entropy path. A value of zero
# keeps the regular output-layer path; the corresponding environment
# variable is useful for launchers that cannot extend ModelConfig.
chunked_linear_ce_chunk_size: int = 0

_mindspeed_defaults_cache = None

def _augment_mindspeed_defaults(self):
Expand Down
Loading