Skip to content
Merged
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
11 changes: 8 additions & 3 deletions megatron/core/model_parallel_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,14 @@ class ModelParallelConfig:
Defaults to False.
"""

cross_entropy_fusion_impl: Literal['native', 'te'] = 'native'
"""If 'native', MCore based CE loss fusion is used, if 'te', Parallel CE loss
from Transformer Engine library is used. Defaults to 'native'.
cross_entropy_fusion_impl: Literal['native', 'te', 'linear'] = 'native'
"""
Specifies the implementation of cross-entropy loss fusion.

Options:
- 'native': Uses MCore-based cross-entropy loss fusion (default).
- 'te': Uses the parallel cross-entropy loss implementation from the Transformer Engine library.
- 'linear': Uses a linear-cross-entropy fusion approach.
"""

tp_comm_overlap_disable_qkv: bool = False
Expand Down
Loading