bridge.recipes.beam.gb200.beam#

Beam BF16 library recipes for GB200 NVLink domains.

Module Contents#

Functions#

beam_pretrain_64gpu_gb200_bf16_config

Return a Beam pretrain config for 64 GB200 GPUs in one NVLink domain.

beam_sft_64gpu_gb200_bf16_config

Return a Beam sft config for 64 GB200 GPUs in one NVLink domain.

beam_peft_32gpu_gb200_bf16_config

Return a Beam peft config for 32 GB200 GPUs in one NVLink domain.

Data#

API#

bridge.recipes.beam.gb200.beam.BEAM_HF_MODEL_ID#

‘reflection/Beam-1.0-501B-A23B’

bridge.recipes.beam.gb200.beam.BEAM_HF_MODEL_REVISION#

‘06641076793dad51b8907f7eb2a14f4e08fd3ec8’

bridge.recipes.beam.gb200.beam.TULU3_REVISION#

‘b14afda60f1bbebe55d5d2fa1e4df5042f97f8be’

bridge.recipes.beam.gb200.beam.beam_pretrain_64gpu_gb200_bf16_config(
hf_path: str | None = None,
) → megatron.bridge.training.config.ConfigContainer#

Return a Beam pretrain config for 64 GB200 GPUs in one NVLink domain.

Uses TP=4, PP=1, CP=1, EP=64, ETP=1 and HybridEP. BF16 model computation retains FP32 gradients, master parameters and Adam moments. Expert routing follows the released model, including its fixed expert biases. Attention and router CUDA graphs reduce launch overhead. Selective expert activation recompute provides memory headroom without replaying projections.

Parameters:

hf_path – Optional local HF checkpoint instead of the pinned Hub revision.

Returns:

ConfigContainer with the model, dataset and training settings.

bridge.recipes.beam.gb200.beam.beam_sft_64gpu_gb200_bf16_config(
hf_path: str | None = None,
) → megatron.bridge.training.config.ConfigContainer#

Return a Beam sft config for 64 GB200 GPUs in one NVLink domain.

Uses TP=8, PP=1, CP=1, EP=64, ETP=1 and HybridEP. BF16 model computation retains FP32 gradients, master parameters and Adam moments. Expert routing follows the released model, including its fixed expert biases. Periodic garbage collection limits host pauses; activation fusion stays disabled.

Parameters:

hf_path – Optional local HF checkpoint instead of the pinned Hub revision.

Returns:

ConfigContainer with the model, dataset and training settings.

bridge.recipes.beam.gb200.beam.beam_peft_32gpu_gb200_bf16_config(
peft_scheme: str | megatron.bridge.peft.base.PEFT = 'lora',
hf_path: str | None = None,
) → megatron.bridge.training.config.ConfigContainer#

Return a Beam peft config for 32 GB200 GPUs in one NVLink domain.

Uses TP=4, PP=1, CP=1, EP=32, ETP=1 and HybridEP. BF16 model computation retains FP32 gradients, master parameters and Adam moments. Expert routing follows the released model, including its fixed expert biases. Periodic garbage collection limits host pauses; activation fusion stays disabled.

Offline packing pads each sample to a multiple of four for TP4. This differs from H200 TP2 packing and can change pack membership and data order.

Parameters:
  • peft_scheme – LoRA, DoRA, or a custom PEFT instance.

  • hf_path – Optional local HF checkpoint instead of the pinned Hub revision.

Returns:

ConfigContainer with the model, dataset and training settings.