Repository navigation
Conversation
wwwjn
commented
Apr 22, 2026
Contributor
Author
There was a problem hiding this comment.
Need to clean up test scripts
- Add rl_grpo_qwen3_moe_debug config for MoE model testing - Add meta-device init + to_empty() in vLLM wrapper for large MoE models - Add expert_bias filter in _initial_load_weights - Add DTensor→plain conversion for logits in compute_logits - Add generate_debug_checkpoint script and test scripts
- Add EP mesh creation in vLLM wrapper - Use Replicate output layout for MoE during inference with EP - Skip SP token splitting for inference EP path - Add inference mode all-to-all in token dispatcher - Remove EP validation from generator - Add EP debug config and comprehensive debugging scripts - Findings: core TorchTitan parallelize_qwen3(inference=True) produces wrong output — MoE norm explodes at L01 due to rank 3's partial sum being 40x larger than other ranks
Three fixes to make MoE models produce correct output through the vLLM inference path with tensor parallelism: 1. Call init_states() after to_empty() to reinitialize non-persistent buffers (RoPE cache). Without this, freqs_cis is all zeros after meta → to_empty materialization, making attention position-agnostic. 2. Enable sequence_parallel and disable loss_parallel in the parallelism config. SP is required for TP on MoE models; loss_parallel Shard(-1) on the output layer produces compressed logits unsuitable for inference. 3. Keep TensorParallel on expert weights for inference (was incorrectly skipped), and use Replicate output layout for EP inference instead of Partial (which doubles values via all-reduce). Also removes a redundant non-meta model build and debug print statements from the wrapper, and fixes stale imports in the EP numerics test script. Verified: TP=2 on Qwen3-30B-A3B produces output matching native vLLM (50/50 tokens match on "The capital of France is" prompt).
Add rl_grpo_qwen3_30b_a3b config for GRPO training on the Qwen3-30B-A3B MoE model (8 GPUs: 4 gen + 4 train). The generator uses TP=4 for dense layers and EP=4 for MoE expert sharding. Note: Qwen3-30B-A3B has 4 KV heads, so TP cannot exceed 4. The RL loop auto-rebuilds the model spec with AllToAllTokenDispatcher when generator EP > 1, so the shared model_spec stays compatible with the EP=1 trainer. Also cleans up the debug MoE configs by removing redundant default expert_parallel_degree=1 and expert_tensor_parallel_degree=1. Verified: EP+TP=4 on Qwen3-30B-A3B produces output matching native vLLM (50/50 tokens on "The capital of France is" prompt).
The MoE output placement (Partial vs Replicate) on the TP mesh depends on whether SP token splitting is active, not on whether we're in inference mode. Aligns both the output_layouts condition and the dispatcher SP splitting to use enable_sp consistently. Also reverts unrelated pyrefly suppression changes that leaked into the PR from touched files.
2 tasks done
wwwjn
added a commit
that referenced
this pull request
Apr 28, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
Apr 28, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 1, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 1, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 1, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 1, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 1, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 1, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 1, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 1, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 4, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 4, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 4, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 4, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 4, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 4, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 5, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 5, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 6, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 6, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 6, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 6, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 6, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 6, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 6, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 6, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 6, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 6, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 6, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 6, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 7, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 7, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 7, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 7, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 7, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 7, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 8, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 8, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 10, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 10, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 10, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 10, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 11, 2026
…M wrapper" Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
May 11, 2026
Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Verified: TP=2, EP+TP=2, EP+TP=4 all produce correct output matching native vLLM on Qwen3-30B-A3B. Similar as #3057 [ghstack-poisoned]
wwwjn
added a commit
that referenced
this pull request
Jun 15, 2026
Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.15.0) (oldest at bottom): * #3236 * __->__ #3142 Enable Expert Parallelism for MoE models in the vLLM inference path, with TP on dense layers. Includes meta-device init, init_states() fix for RoPE cache, EP mesh creation, enable_sp-based output layout, and MoE debug configs. Key changes: - Meta-device init + to_empty() + init_states() for large MoE models - EP mesh: ep = tp_size (TP ranks become EP ranks for experts) - Use enable_sp (not inference flag) for output layout and SP splitting - enable_sequence_parallel=True, disable_loss_parallel=True for inference - Remove stale ModelConvertersContainer references - Add MoE debug and 30B-A3B RL configs Similar as #3057 ### Dependency - [x] https://github.com/pytorch/pytorch/pull/172792/changes - [x] #3604 ## Verification Qwen3-30B-A3B model on 8 GPU (Trainer TP4 EP4, generator TP4 EP4): ``` wandb: Detected [openai] in use. wandb: Use W&B Weave for improved LLM call tracing. Install Weave with `pip install weave` then add `import weave` to the top of your script. wandb: For more information, check out the docs at: https://weave-docs.wandb.ai WandB logging enabled Using renderer qwen3, of type <class 'renderers.configs.Qwen3RendererConfig'>, with args {'enable_thinking': False} Warning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads. Warning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads. 4 generator GPUs + 4 trainer GPUs = 8 total [actor=<root>] Initializing TorchStoreStrategy with default_transport_type=<TransportType.Unset: 1> [actor=<root>] Pre-training validation; then 10 steps of RL training [actor=<root>] ---------- Validation | Step: 0 validation/response_length/mean: 30.10 timing/validate: 29.13 [actor=<root>] Dropping 1 packed rows (9 -> 8) to fit global_batch_size [actor=<root>] ---------- Train | Step: 1 loss/mean: 0.013 bit_wise/logprob_diff/max: 55.49 reward/_mean: 0.79 rollout_reward/_mean: 0.79 reward/_max: 1.0 rollout_reward/_max: 1.0 reward/zero_std_frac: 0.68 rollout/response_length/max: 42.0 train/grad_norm/mean: 0.46 train/lr: 5.0e-07 perf/tokens_per_second: 141.1 timing/step: 120.0 [actor=<root>] Dropping 1 packed rows (9 -> 8) to fit global_batch_size [actor=<root>] ---------- Train | Step: 2 loss/mean: 0.0055 bit_wise/logprob_diff/max: 56.85 reward/_mean: 0.70 rollout_reward/_mean: 0.70 reward/_max: 1.0 rollout_reward/_max: 1.0 reward/zero_std_frac: 0.80 rollout/response_length/max: 44.0 train/grad_norm/mean: 0.37 train/lr: 1.0e-06 perf/tokens_per_second: 158.5 timing/step: 110.2 [actor=<root>] Dropping 1 packed rows (9 -> 8) to fit global_batch_size [actor=<root>] ---------- Train | Step: 3 loss/mean: 0.016 bit_wise/logprob_diff/max: 40.089 reward/_mean: 0.73 rollout_reward/_mean: 0.73 reward/_max: 1.0 rollout_reward/_max: 1.0 reward/zero_std_frac: 0.76 rollout/response_length/max: 47.0 train/grad_norm/mean: 0.45 train/lr: 1.0e-06 perf/tokens_per_second: 156.9 timing/step: 110.0 [actor=<root>] Dropping 1 packed rows (9 -> 8) to fit global_batch_size [actor=<root>] ---------- Train | Step: 4 loss/mean: 0.011 bit_wise/logprob_diff/max: 40.92 reward/_mean: 0.73 rollout_reward/_mean: 0.73 reward/_max: 1.0 rollout_reward/_max: 1.0 reward/zero_std_frac: 0.72 rollout/response_length/max: 45.0 train/grad_norm/mean: 0.43 train/lr: 1.0e-06 perf/tokens_per_second: 163.3 timing/step: 108.7 [actor=<root>] Dropping 1 packed rows (9 -> 8) to fit global_batch_size [actor=<root>] ---------- Train | Step: 5 loss/mean: 0.0076 bit_wise/logprob_diff/max: 96.53 reward/_mean: 0.71 rollout_reward/_mean: 0.71 reward/_max: 1.0 rollout_reward/_max: 1.0 reward/zero_std_frac: 0.76 rollout/response_length/max: 42.0 train/grad_norm/mean: 0.36 train/lr: 1.0e-06 perf/tokens_per_second: 165.3 timing/step: 109.2 [actor=<root>] Dropping 1 packed rows (9 -> 8) to fit global_batch_size [actor=<root>] ---------- Train | Step: 6 loss/mean: 0.011 bit_wise/logprob_diff/max: 48.36 reward/_mean: 0.79 rollout_reward/_mean: 0.79 reward/_max: 1.0 rollout_reward/_max: 1.0 reward/zero_std_frac: 0.84 rollout/response_length/max: 49.0 train/grad_norm/mean: 0.44 train/lr: 1.0e-06 perf/tokens_per_second: 147.1 timing/step: 117.7 [actor=<root>] Dropping 1 packed rows (9 -> 8) to fit global_batch_size [actor=<root>] ---------- Train | Step: 7 loss/mean: 0.0055 bit_wise/logprob_diff/max: 54.41 reward/_mean: 0.65 rollout_reward/_mean: 0.65 reward/_max: 1.0 rollout_reward/_max: 1.0 reward/zero_std_frac: 0.72 rollout/response_length/max: 43.0 train/grad_norm/mean: 0.12 train/lr: 1.0e-06 perf/tokens_per_second: 158.1 timing/step: 110.1 [actor=<root>] Dropping 1 packed rows (9 -> 8) to fit global_batch_size [actor=<root>] ---------- Train | Step: 8 loss/mean: 0.0035 bit_wise/logprob_diff/max: 51.040 reward/_mean: 0.66 rollout_reward/_mean: 0.66 reward/_max: 1.0 rollout_reward/_max: 1.0 reward/zero_std_frac: 0.72 rollout/response_length/max: 45.0 train/grad_norm/mean: 0.31 train/lr: 1.0e-06 perf/tokens_per_second: 168.6 timing/step: 101.4 [actor=<root>] Dropping 1 packed rows (9 -> 8) to fit global_batch_size [actor=<root>] ---------- Train | Step: 9 loss/mean: 0.023 bit_wise/logprob_diff/max: 58.88 reward/_mean: 0.56 rollout_reward/_mean: 0.56 reward/_max: 1.0 rollout_reward/_max: 1.0 reward/zero_std_frac: 0.64 rollout/response_length/max: 46.0 train/grad_norm/mean: 0.73 train/lr: 1.0e-06 perf/tokens_per_second: 175.6 timing/step: 103.8 [actor=<root>] Dropping 2 packed rows (10 -> 8) to fit global_batch_size [actor=<root>] ---------- Train | Step: 10 loss/mean: 0.020 bit_wise/logprob_diff/max: 50.84 reward/_mean: 0.52 rollout_reward/_mean: 0.52 reward/_max: 1.0 rollout_reward/_max: 1.0 reward/zero_std_frac: 0.64 rollout/response_length/max: 47.0 train/grad_norm/mean: 0.23 train/lr: 1.0e-06 perf/tokens_per_second: 167.2 timing/step: 109.2 [actor=<root>] ---------- Validation | Step: 10 validation/response_length/mean: 31.85 timing/validate: 25.94 [actor=<root>] ============================================================ [actor=<root>] Validation summary (pre / post): [actor=<root>] validation_reward/_max: +1.000 / +1.000 [actor=<root>] validation_reward/_mean: +0.639 / +0.664 [actor=<root>] validation_reward/_min: +0.052 / +0.056 [actor=<root>] validation_reward/_std: +0.406 / +0.386 [actor=<root>] validation_reward/_sum: +12.776 / +13.289 [actor=<root>] validation_reward/component/RewardAlphabetSort/mean: +0.639 / +0.664 [actor=<root>] ============================================================ [actor=<root>] Closing: tearing down actors and process meshes. ``` NOTE: this locally run didn't patch #3604, so the trainer are actually producing wrong numerics ### Batch-invariant verification - To achieve batch invariant in MoE model, we need extra `bmm` invariant kernel: dense doesn’t meaningfully exercise a 3D batched matmul path in this parity setup, while MoE/EP introduces batched/grouped per-expert shapes and routing-dependent layouts; mm/addmm fixes 2D linear layers, but not 3D aten::bmm/batched matmul reductions. ``` Validation | Step: 0 validation/response_length/mean: 46.70 timing/validate: 7.059 [actor=<root>] ---------- Train | Step: 1 loss/mean: 0 bit_wise/logprob_diff/max: 9.5e-07 reward/_mean: 0 rollout_reward/_mean: 0 reward/_max: 0 rollout_reward/_max: 0 reward/zero_std_frac: 1.0 rollout/response_length/max: 50.0 train/grad_norm/mean: 0 train/lr: 0.00040 perf/tokens_per_second: 1253.0 timing/step: 14.12 [actor=<root>] ---------- Train | Step: 2 loss/mean: 0 bit_wise/logprob_diff/max: 9.5e-07 reward/_mean: 0 rollout_reward/_mean: 0 reward/_max: 0 rollout_reward/_max: 0 reward/zero_std_frac: 1.0 rollout/response_length/max: 50.0 train/grad_norm/mean: 0 train/lr: 0.00080 perf/tokens_per_second: 1542.7 timing/step: 12.10 [actor=<root>] ---------- Train | Step: 3 loss/mean: 0 bit_wise/logprob_diff/max: 9.5e-07 reward/_mean: 0 rollout_reward/_mean: 0 reward/_max: 0 rollout_reward/_max: 0 reward/zero_std_frac: 1.0 rollout/response_length/max: 50.0 train/grad_norm/mean: 0 train/lr: 0.00080 perf/tokens_per_second: 1667.2 timing/step: 10.78 [actor=<root>] ---------- Train | Step: 4 loss/mean: 0 bit_wise/logprob_diff/max: 9.5e-07 reward/_mean: 0 rollout_reward/_mean: 0 reward/_max: 0 rollout_reward/_max: 0 reward/zero_std_frac: 1.0 rollout/response_length/max: 50.0 train/grad_norm/mean: 0 train/lr: 0.00080 perf/tokens_per_second: 1641.3 timing/step: 11.034 [actor=<root>] ---------- Train | Step: 5 loss/mean: 0 bit_wise/logprob_diff/max: 9.5e-07 reward/_mean: 0 rollout_reward/_mean: 0 reward/_max: 0 rollout_reward/_max: 0 reward/zero_std_frac: 1.0 rollout/response_length/max: 50.0 train/grad_norm/mean: 0 train/lr: 0.00080 perf/tokens_per_second: 1641.3 timing/step: 11.0032 [actor=<root>] ---------- Train | Step: 6 loss/mean: 0 bit_wise/logprob_diff/max: 9.5e-07 reward/_mean: 0 rollout_reward/_mean: 0 reward/_max: 0 rollout_reward/_max: 0 reward/zero_std_frac: 1.0 rollout/response_length/max: 50.0 train/grad_norm/mean: 0 train/lr: 0.00080 perf/tokens_per_second: 1586.3 timing/step: 11.52 [actor=<root>] ---------- Train | Step: 7 loss/mean: 0 bit_wise/logprob_diff/max: 9.5e-07 reward/_mean: 0 rollout_reward/_mean: 0 reward/_max: 0 rollout_reward/_max: 0 reward/zero_std_frac: 1.0 rollout/response_length/max: 50.0 train/grad_norm/mean: 0 train/lr: 0.00080 perf/tokens_per_second: 1768.6 timing/step: 10.43 [actor=<root>] ---------- Train | Step: 8 loss/mean: 0 bit_wise/logprob_diff/max: 9.5e-07 reward/_mean: 0 rollout_reward/_mean: 0 reward/_max: 0 rollout_reward/_max: 0 reward/zero_std_frac: 1.0 rollout/response_length/max: 50.0 train/grad_norm/mean: 0 train/lr: 0.00080 perf/tokens_per_second: 1685.5 timing/step: 10.56 [actor=<root>] ---------- Train | Step: 9 loss/mean: 0 bit_wise/logprob_diff/max: 9.5e-07 reward/_mean: 0 rollout_reward/_mean: 0 reward/_max: 0 rollout_reward/_max: 0 reward/zero_std_frac: 1.0 rollout/response_length/max: 50.0 train/grad_norm/mean: 0 train/lr: 0.00080 perf/tokens_per_second: 1822.5 timing/step: 10.44 [actor=<root>] ---------- Train | Step: 10 loss/mean: 0 bit_wise/logprob_diff/max: 9.5e-07 reward/_mean: 0 rollout_reward/_mean: 0 reward/_max: 0 rollout_reward/_max: 0 reward/zero_std_frac: 1.0 rollout/response_length/max: 50.0 train/grad_norm/mean: 0 train/lr: 0.00080 perf/tokens_per_second: 1341.5 timing/step: 13.36 ``` NOTE: the loss is zero is because it's debug MoE model, not meaningful weights loaded so reward is constantly 0
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.
Based on: #3070