bridge.recipes.qwen_vl.qwen38_flash_next#

EARLY, UNOPTIMIZED fixed-4K image SFT with frozen EP-sharded PLE tables.

Module Contents#

Functions#

qwen38_flash_next_sft_64gpu_gb200_bf16_config

Return EARLY, UNOPTIMIZED image SFT on 64 GB200 GPUs with TP4/SP and EP64.

API#

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

Return EARLY, UNOPTIMIZED image SFT on 64 GB200 GPUs with TP4/SP and EP64.

Use the shared Qwen VL forward step with --step-func qwen3_vl_step. Supply dataset.path and checkpoint.pretrained_checkpoint at launch; the latter accepts the full local Hugging Face checkpoint. Standard finetuning loads weights and refreshes optimizer master parameters.

The language model, vision encoder and projector train together. PLE n-gram lookup tables are frozen and EP-sharded; PLE projections, normalization and convolution remain trainable. QSA indexer weights stay frozen because hard selection is detached from the training objective.

Supply prepared Energon image conversations, such as DataComp image-caption samples. Batches are padded to a fixed 4096 tokens with no packing. Synchronized manual garbage collection avoids rank-dependent Python pauses. Checkpoint saving, evaluation, recomputation and CUDA graphs are disabled. Standard logs record loss, gradient norm, iteration time and model TFLOP/s.

Parameters:

hf_path – Public model ID or local directory containing its HF config and processor assets. Weights are supplied separately at launch.

Returns:

Declarative training configuration for the full vision-language model.