Repository navigation
fix(fp8): support Qwen3.5 blockwise FP8 rollout and training - #2744
Merged
yuki-97 merged 39 commits intoAug 22, 2026
Merged
Conversation
MarkXCloud
force-pushed
the
codex-qwen35-fp8-rollout-training
branch
from
June 25, 2026 09:28
5b91d2f to
3e80bbb
Compare
MarkXCloud
marked this pull request as ready for review
June 25, 2026 09:51
MarkXCloud
marked this pull request as draft
June 25, 2026 09:52
Signed-off-by: zili_wang <[email protected]>
Signed-off-by: zili_wang <[email protected]>
Signed-off-by: zili_wang <[email protected]>
zpqiu
force-pushed
the
codex-qwen35-fp8-rollout-training
branch
from
August 11, 2026 08:35
8460de1 to
e04bf9a
Compare
Signed-off-by: zili_wang <[email protected]>
Signed-off-by: zili_wang <[email protected]>
zpqiu
previously requested changes
Aug 11, 2026
Signed-off-by: alexchiu <[email protected]>
…cipe vLLM profiles VL models with dummy multimodal inputs; the vision tower's fc2 (vision intermediate_size=4304, not divisible by the [128,128] fp8 block) hits 'last dimension of x 4304 must be divisible by group_size 128' at engine init. Mirror the 35B recipe's quantization_ignored_layer_kws. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: Zili Wang <[email protected]>
…B fp8 Sequence packing produces variable-length packs per DP rank (pack counts are equalized by the packer's bin_count_multiple=shards, lengths are not). The allgather MoE dispatcher requires uniform shapes across the TP*EP group and deadlocks on the first packed microbatch (NCCL watchdog SIGABRT on EXPERT_TENSOR_AND_MODEL_PARALLEL); alltoall exchanges variable-size splits explicitly. Verified: step-1 gen_kl_error 0.0023 (same band as the dynamic-batching run), no numerics change. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: Zili Wang <[email protected]>
Signed-off-by: Zhaopeng Qiu <[email protected]>
Signed-off-by: Zhaopeng Qiu <[email protected]>
The grouped-expert branch in load_weights quantized every
mlp.experts.{gate_up,down}_proj slab unconditionally, before the
_is_fp8_weight module probe ever ran, so ignored_layers
(num_{first,last}_layers_in_bf16 / quantization_ignored_layer_kws) had
no effect on experts. vLLM builds ignored RoutedExperts as unquantized
bf16 MoE without *_weight_scale_inv params, so the per-expert FP8 +
scale entries emitted for such a layer have no matching param to load
into and the refit fails.
Probe the target RoutedExperts first and only expand+quantize when its
weights are actually FP8; otherwise pass the grouped bf16 slab through
untouched (vLLM's fused expert mapping loads it directly, same as a
bf16 refit).
Signed-off-by: Zili Wang <[email protected]>
Signed-off-by: Zhaopeng Qiu <[email protected]>
zpqiu
marked this pull request as ready for review
August 12, 2026 14:59
yuki-97
reviewed
Aug 19, 2026
yuki-97
left a comment
Contributor
There was a problem hiding this comment.
thanks @MarkXCloud @zpqiu ! LGTM, left two minor comments. also you need to rebase main since there's a conflict.
…pying The gate/up shards are dim-1 slices of the grouped slab, so the .contiguous() here materialized a full extra copy (0.5 GiB on the 35B-A3B gate_up shard) held across the whole quantization call — right at the refit peak 5844fae was reducing. The callee only ever indexes per-expert 2D slices, which stay contiguous as long as the export side hands over a contiguous slab (it does on both bridge paths), and each slice is upcast-copied to fp32 before the cast anyway, so the output is bitwise identical. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: Zili Wang <[email protected]>
The traversal branch that descends from the language_model CausalLM wrapper into its .model to find .layers had no unit coverage: the grouped-expert fixture put layers at the top level, so only the synthetic-"model."-prefix skip ever fired. That wrapper shape (model.language_model.layers.N...) is what both FP8 recipes actually refit at vLLM 0.25.1, and a traversal miss silently bf16-loads into fp8 params. Parametrize both grouped-expert tests over the flat and VL-wrapper key shapes. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: Zili Wang <[email protected]>
Signed-off-by: Zili Wang <[email protected]> # Conflicts: # tests/unit/test_recipes_and_test_suites.py
Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: Zili Wang <[email protected]>
Contributor
|
/ok to test a0abbc6 |
yuki-97
previously approved these changes
Aug 20, 2026
yuki-97
enabled auto-merge (squash)
August 20, 2026 09:57
Signed-off-by: Zhaopeng Qiu <[email protected]>
yuki-97
previously approved these changes
Aug 20, 2026
Contributor
|
/ok to test ce99d2c |
Signed-off-by: Zhaopeng Qiu <[email protected]>
Contributor
|
/ok to test e3ab356 |
yuki-97
approved these changes
Aug 20, 2026
3 of 4 tasks
shuyixiong
pushed a commit
that referenced
this pull request
Sep 1, 2026
Backport the required FP8 refit pieces from NVIDIA-NeMo/RL PR #2744 to daf46ff. Resolve the wrapped Qwen3.5 parameter hierarchy before FP8 classification. Also expand packed Megatron-Bridge expert slabs into per-expert block-FP8 weights and scales; unlike the former 41352f7 source fork, this pin no longer splits them on the default collective-refit path. Initialize the FP8 configuration inside RayExecutorV2 workers before model construction. RayExecutorV2 has no pre-load collective_rpc hook, so pass the configuration through its inherited environment and consume it when the NeMo-RL worker extension is imported.
ZhiyuLi-Nvidia
added a commit
that referenced
this pull request
Sep 4, 2026
The three nightly entries this branch adds bring the suite from 4138 to 4266 GPU hours: +32 vlm_grpo-nemotron-omni-30ba3b-clevr-2n8g-megatron-tp8ep8.v1 +32 vlm_grpo-nemotron-omni-30ba3b-clevr-2n8g-...v1-tq_mooncake +64 vlm_grpo-qwen3.5-35ba3b-geo3k-2n8g-automodel-ep16-tq_simple Two of those are the VLM data-plane coverage itself; the third is the 2-node base the mooncake wrapper delegates to, which exists because the recipe does not fit on one node. Follows the convention for adding nightly coverage -- the cap has moved 4048 -> 4139 -> 4149 -> 4157 -> 4181 -> 4197 as recipes landed (#2744, #3773, #3768, #3727, #3678). Co-Authored-By: Claude Opus 5 <[email protected]> Signed-off-by: Zhiyu Li <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary: