Qwen3.8-Flash-Next VLM#
This guide covers Qwen/Qwen3.8-Flash-Next with text_only=False (the default):
the language model, vision encoder and projector. The text-only guide
records the separate standalone language workflow and fixed-4K pretraining result.
Both modes share the hybrid decoder, QSA, GDN, MoE, gated residual and PLE modules.
The image-SFT recipe is EARLY, UNOPTIMIZED. Its current defaults use 64 GB200 GPUs with TP4/SP, EP64, fixed 4096-token padding and Adam. The PLE lookup tables are frozen and sharded over EP; the detached QSA indexer is also frozen. The remaining language modules, encoder and projector are trainable. Natural routing, HybridEP, MoE fusions and manual garbage collection every 100 steps are enabled. These defaults completed 100 full-checkpoint DataComp image-SFT updates on 2026-11-23.
Released NeMo 26.10 conversion verification completed on 2026-11-22. Full-VLM GPU conversion preserved all 1,627 supported tensors exactly, including 333 vision tensors; unsupported MTP tensors are excluded. The auxiliary export-checker failure and separate successful asset recheck are recorded in the card.
Workload |
GPUs / sequence / updates |
Initial → final loss |
Final-ten mean step |
TFLOP/s/GPU |
Token slots/s/GPU |
|---|---|---|---|---|---|
DataComp image SFT / Adam |
64 / 4096 / 100 |
4.365921 → 1.995173 |
1.514 s |
28.94 |
676.39 |
All ranks completed finite, unskipped updates; frozen PLE/indexer hashes were unchanged and selected language/vision/optimizer weights updated. The run used 8,192 prepared DataComp image-caption pairs and consumed 1,600 conversations with 37,805 supervised tokens. Throughput counts padded 4K slots, so it is not supervised-token throughput. Final-ten timing excludes manual GC after step-100 logging. Dataset, sequence length and trainable parameters differ from the earlier 2K Nemotron result, preventing a controlled speed comparison. These are bounded functional observations, not optimized benchmarks. Full-VLM pretraining is unverified. The historical 8,192-sample, 5,349-step image-SFT loss curve remains separate evidence.
See the VLM verification card for exact source/container revisions and conversion/training limits, and the training instructions for public commands and data preparation. Native VLM and text checkpoints have different namespaces and must be imported separately. Functional training does not establish cross-framework trajectory parity, resume or held-out quality.
Frozen PLE table sharding#
model.ple_embedding_sharding="ep" distributes the frozen n-gram table over
the expert-parallel group, independently of attention tensor parallelism.
Enable it together with model.ple_freeze_ngram_embeddings=True and
model.expert_tensor_parallel_size=1. The default "tp" preserves the
existing tensor-parallel table layout. Only the lookup table is frozen;
the PLE projections, normalization, and convolution remain trainable.
The shared decoder implements this option for both text-only and VL models.
The owner-routed lookup is adapted from BestJuly’s
Megatron-LM PR #7553, specifically
distributed_embedding.py at 1ce7e86a.
Bridge retains its single padded table and HF checkpoint keys rather than
adopting upstream’s separate table per hash head. Each EP rank owns an equal
contiguous row range; the padded row count must be divisible by EP.
Lookup requests and embeddings travel by all-to-all. Hashing precedes SP
slicing so n-grams retain context across tensor-parallel boundaries.
HF import reads the checkpoint shards overlapping each destination’s row range. HF export streams one shard at a time over the table’s TP or EP group. The shared conversion layer applies an explicit floating-point export dtype as each tensor is emitted, preserving streaming and integer buffer dtypes. Start a fresh optimizer when freezing a previously trainable table; this option does not migrate optimizer state from trainable PLE checkpoints. Trainable EP tables, ETP greater than one, CP, and CUDA graph capture are outside this initial implementation.
This is a memory-layout optimization, not a throughput guarantee. The approximately 95 GiB BF16 n-gram table occupies about 3 GiB per rank at EP32, making lower attention TP practical to evaluate. The 384–430 TFLOP/s/GPU numbers in #7553 use a reduced 8-layer, 32K-token GB300 proxy with additional kernel and graph optimizations; they are not verified results for this port.
Verified configurations#
Choose an exact recorded configuration to see its command and expected result. These selectors are generated from the authoritative verification cards and never synthesize combinations.
Run a configuration#
Choose a workflow, precision, and exact recorded combination. The command and expected result update below.
Import · CPU
â—‹ UnverifiedExact command
No runnable command is recorded for this status.
Expected result
CPU import and persisted-checkpoint reload have not been verified.
Import · GPU
✓ VerifiedExact command
./scripts/conversion/convert.sh import --executor slurm --device gpu --nodes 2 --gpus-per-node 4 --tp 4 --pp 1 --ep 8 --etp 1 --hf-model Qwen/Qwen3.8-Flash-Next --hf-revision de4b8e4d43b917e7706784d8bb445c9af86a3540 --torch-dtype bfloat16 --megatron-path work/checkpoints/qwen3.8-flash-next-vl
Expected result
Full language/vision import persisted a native checkpoint that reloaded in a fresh export process. The supported full-VL roundtrip retained exact tensor keys, shapes, dtypes and bytes. MTP is unsupported and excluded.
Export · CPU
â—‹ UnverifiedExact command
No runnable command is recorded for this status.
Expected result
CPU export, reload, and weight equality have not been verified.
Export · GPU
✓ VerifiedExact command
./scripts/conversion/convert.sh export --executor slurm --device gpu --nodes 2 --gpus-per-node 4 --tp 4 --pp 1 --ep 8 --etp 1 --hf-model Qwen/Qwen3.8-Flash-Next --hf-revision de4b8e4d43b917e7706784d8bb445c9af86a3540 --torch-dtype bfloat16 --export-weight-dtype bfloat16 --distributed-save --megatron-path work/checkpoints/qwen3.8-flash-next-vl --hf-path work/exports/exported-hf
Expected result
Fresh native reload and export completed. All 1,627 supported tensors match the pinned HF checkpoint exactly by key, shape, dtype and bytes: 333 vision tensors, 1,624 BF16 tensors and three I64 PLE buffers. The 31 unsupported MTP tensors are excluded. Reloaded config fields match except provenance metadata and unsupported MTP configuration; tokenizer and image-processor configuration and a processed image batch agree. An auxiliary asset checker failed on integer-key diagnostic formatting after successful export and weight comparison, causing the original wrapper to exit unsuccessfully. The repaired checker passed separately on the same preserved export in the released container. This does not verify inference or training-trajectory equivalence.
Pretrain · GB200
â—‹ UnverifiedRecorded metrics
- Initial loss
- None
- Final loss
- None
- Step time · last 10 avg
- None ms
- Model throughput · last 10 avg
- None TFLOP/s/GPU
- Token throughput · last 10 avg
- None tokens/s/GPU
Exact command
No runnable command is recorded for this status.
Expected result
Full-VLM pretraining with image inputs has not been verified. The fixed-4096-token frozen-PLE Muon run belongs to the separate text-only card.
SFT · GB200
✓ VerifiedRecorded metrics
- Initial loss
- 4.3659215
- Final loss
- 1.9951726
- Step time · last 10 avg
- 1,513.917 ms
- Model throughput · last 10 avg
- 28.944 TFLOP/s/GPU
- Token throughput · last 10 avg
- 676.391 tokens/s/GPU
Exact command
./scripts/training/train.sh --nodes 16 --gpus-per-node 4 --recipe qwen38_flash_next_sft_64gpu_gb200_bf16_config --mode sft --step-func qwen3_vl_step --max_steps 100 --pretrained_checkpoint work/cache/qwen3.8-flash-next dataset.path=work/data/datacomp-8192 logger.save_config_filepath=work/model-verification/qwen3.8-flash-next/sft/resolved-config.yaml logger.tensorboard_dir=work/model-verification/qwen3.8-flash-next/sft/tensorboard
Expected result
EARLY, UNOPTIMIZED recipe. Completed 100 native Energon image-SFT updates from the full pinned HF checkpoint. The bounded dataset contains the first 8,192 complete image-caption pairs from two retained DataComp shards, in shard/member order, with no skipped samples. Each ChatML conversation uses the prompt "Describe this image." and supervises the original caption; image bytes are preserved. PLE lookup tables are frozen and EP-sharded; detached QSA indexer weights are frozen. Remaining language modules, vision encoder and projector are trainable. Configuration: 64 GB200 GPUs, TP4/SP, EP64/ETP1, PP1/CP1, fixed padded unpacked sequence 4096, MBS1/GBS16, BF16 with FP32 gradient reduction, distributed Adam, constant LR 1e-6, zero weight decay and clip 1. Natural routing, HybridEP, MoE fusions and manual GC every 100 steps are enabled. CUDA graphs, recomputation, gradient/parameter overlap, shared-expert overlap, evaluation and checkpoint saving are disabled. All 64 ranks completed 100 finite, unskipped updates with zero NaN iterations. Full frozen PLE/indexer hashes were unchanged; selected language/vision parameters and FP32 Adam samples changed. Real image inputs and encoder execution were observed. The run consumed 1,600 conversations and 37,805 supervised tokens, counted once across dense-DP representatives. Preclip gradient norms ranged from 19.290594 to 163.363068. Final-ten metrics use updates 91-100. Native timings include lightweight verification callbacks; no profiler was active. Periodic GC runs after step-100 logging, so this window excludes that endpoint collection. Throughput counts padded slots, not supervised tokens; short captions leave substantial padding. TFLOPs estimate model matrix work, with a dense QSA surrogate and approximate GDN recurrence, rather than hardware utilization. These are bounded functional observations, not held-out quality, convergence or cross-layout numerical equivalence. Dataset, sequence length and trainable parameters differ from the historical 2K Nemotron SFT run, so the two results are not a controlled performance comparison.
Long Context · GB200
â—‹ UnverifiedRecorded metrics
- Initial loss
- None
- Final loss
- None
- Step time · last 10 avg
- None ms
- Model throughput · last 10 avg
- None TFLOP/s/GPU
- Token throughput · last 10 avg
- None tokens/s/GPU
Exact command
No runnable command is recorded for this status.
Expected result
Long-context SFT with packing and context parallelism has not been verified.
LoRA · GB200
â—‹ UnverifiedRecorded metrics
- Initial loss
- None
- Final loss
- None
- Step time · last 10 avg
- None ms
- Model throughput · last 10 avg
- None TFLOP/s/GPU
- Token throughput · last 10 avg
- None tokens/s/GPU
Exact command
No runnable command is recorded for this status.
Expected result
Parameter-efficient finetuning has not been verified.