bridge.perf_recipes.deepseek.gb300.deepseek_v4#
GB300 performance recipes for DeepSeek V4.
Module Contents#
Functions#
DeepSeek V4 Flash pretrain: 128× GB300, MXFP8. |
|
DeepSeek V4 Pro pretrain: 256× GB300, MXFP8, 61 blocks + MTP, 65K sequence. |
|
DeepSeek V4 Pro proxy: the first 16 blocks + MTP on 64× GB300, PP1. |
|
Build the full Pro benchmark with the original MXFP8 execution settings. |
|
Build the eager BF16 variant shared by GB300 and VR NVL72. |
|
DeepSeek V4 Pro pretrain: 256× GB300, BF16, eager PP4/VPP4/EP64. |
Data#
API#
- bridge.perf_recipes.deepseek.gb300.deepseek_v4._DSV4_PRO_MAIN_PATTERN#
None
- bridge.perf_recipes.deepseek.gb300.deepseek_v4._DSV4_PRO_MTP_PATTERN#
‘WE’
- bridge.perf_recipes.deepseek.gb300.deepseek_v4.deepseek_v4_flash_pretrain_128gpu_gb300_fp8mx_config() megatron.bridge.training.config.ConfigContainer#
DeepSeek V4 Flash pretrain: 128× GB300, MXFP8.
- bridge.perf_recipes.deepseek.gb300.deepseek_v4.deepseek_v4_pro_pretrain_256gpu_gb300_fp8mx_config() megatron.bridge.training.config.ConfigContainer#
DeepSeek V4 Pro pretrain: 256× GB300, MXFP8, 61 blocks + MTP, 65K sequence.
Follows the MCore reference run’s model, CP16/EP64/PP4/VPP4 layout, GBS256/MBS1, layer-wise Muon and MoK settings. Forced load balancing and fixed synthetic THD packs make it a performance benchmark, not a convergence recipe. No Hugging Face download is needed.
Runs eagerly on MCore main. The reference run also uses attention CUDA graphs and overlaps the parameter gather; both need MCore #7337, so step time is not comparable with it until this recipe adopts them.
- bridge.perf_recipes.deepseek.gb300.deepseek_v4.deepseek_v4_pro_pretrain_64gpu_gb300_fp8mx_proxy_config() megatron.bridge.training.config.ConfigContainer#
DeepSeek V4 Pro proxy: the first 16 blocks + MTP on 64× GB300, PP1.
Keeps the full recipe’s widths, experts, 65K sequence, CP16/EP64 and batch sizes on a quarter of the GPUs. It does not exercise the full recipe’s PP/VPP schedule.
- bridge.perf_recipes.deepseek.gb300.deepseek_v4._deepseek_v4_pro_pretrain_256gpu_gb300_common() megatron.bridge.training.config.ConfigContainer#
Build the full Pro benchmark with the original MXFP8 execution settings.
- bridge.perf_recipes.deepseek.gb300.deepseek_v4._deepseek_v4_pro_pretrain_256gpu_bf16_common() megatron.bridge.training.config.ConfigContainer#
Build the eager BF16 variant shared by GB300 and VR NVL72.
- bridge.perf_recipes.deepseek.gb300.deepseek_v4.deepseek_v4_pro_pretrain_256gpu_gb300_bf16_config() megatron.bridge.training.config.ConfigContainer#
DeepSeek V4 Pro pretrain: 256× GB300, BF16, eager PP4/VPP4/EP64.
Preserves the original 4K-sequence, GBS4096 benchmark with HybridEP, forced routing and Adam: FP32 master weights with BF16 main gradients and Adam moments. This differs from the 65K-sequence MXFP8 MoK/Muon benchmark. Uses selective MLA/mHC/MoE-block recompute without offload or CUDA graphs, whose combination is unsupported by the native HybridModel runtime. This synthetic-data performance benchmark is not a convergence recipe.