bridge.recipes.qwen.gb200.qwen38_flash_next#

EARLY, UNOPTIMIZED text-only training with frozen Qwen3.8 n-gram tables.

Module Contents#

Functions#

qwen38_flash_next_text_frozen_ngram_pretrain_32gpu_gb200_bf16_muon_config

Return the EARLY, UNOPTIMIZED 4K frozen-PLE Muon recipe for 32 GB200 GPUs.

API#

bridge.recipes.qwen.gb200.qwen38_flash_next.qwen38_flash_next_text_frozen_ngram_pretrain_32gpu_gb200_bf16_muon_config(
*,
hf_path: str = 'Qwen/Qwen3.8-Flash-Next',
) → megatron.bridge.training.config.ConfigContainer#

Return the EARLY, UNOPTIMIZED 4K frozen-PLE Muon recipe for 32 GB200 GPUs.

Uses TP2/SP, EP32/ETP1, HybridEP and fused MoE operations with natural routing. Only the hashed n-gram tables are frozen and sharded across EP; PLE projections, norms and convolution remain trainable. The language implementation is shared with the vision-language model.

Muon uses layer-wise distribution and full-matrix, duplicated TP orthogonalization; non-matrix and embedding weights use its Adam fallback. The 30-update schedule (five-step LR warmup) is for performance bring-up, not convergence. Use updates 21-30 for the final ten-step timing window. The verification card records the measured result and its evidence limits.

Supply indexed text through dataset.data_path and an imported text-only Megatron checkpoint through checkpoint.pretrained_checkpoint to the standard pretrain runner. Pinned HF initialization is also supported. Start a fresh optimizer from these model weights. CUDA graphs, recomputation, checkpoint saving and evaluation remain disabled. Set OMP_NUM_THREADS=8 to match the measured host-thread configuration.

Parameters:

hf_path – Public model ID or local snapshot containing config/tokenizer assets. Supply the pretrained weights separately at launch.

Returns:

Text-only training configuration with frozen EP-sharded n-gram tables.