Revamp/gather args infer#2
Merged
Merged
Conversation
Resolve conflicts and move update_weight_target_module back to args: - update_weight_target_module: removed from TrainPipelineConfig and registered as --update-weight-target-module in arguments.py; the weight updater now reads it from args. It is a training-side quantity, not a model property. - actor.py: keep main's debug_train_only branch; updaters no longer receive an explicit target_module arg. - placement_group.py: take main's simplified create_rollout_manager (num_gpus=0, plain pg); the PR's use_diffusion_rollout branch is dead code in our setup. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Keep parity with upstream for code that exists on main: - rollout.py: restore the [reward stats] stdout print in _convert_samples_to_train_data (raw + normalized mean/std/min/max). This is on main and is in the live rollout path; the PR had dropped it. - loss.py: restore the custom_pg_loss_reducer selection so this file stays byte-identical to main. (loss.py is currently dead code in the diffusion repo, so this is parity-only; avoids future upstream-sync conflicts.) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Rockdu
added a commit
to Rockdu/miles_diffusion
that referenced
this pull request
Jun 10, 2026
Squashed from the bootstrap branch's intermediate commits: - Mass black / ruff / isort / autoflake fixes across miles/, flow_grpo/, train_diffusion.py to satisfy pre-commit hooks for the first time. - Revamp gather-args inference path in miles/utils/arguments.py and related rollout/ray/router/backends call sites (originally PR radixark#2 on the fork). This bundles WIP commits that interleaved CI bootstrap, docker image, and code refactor. Squashed for a clean PR diff. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Rockdu
added a commit
to Rockdu/miles_diffusion
that referenced
this pull request
Jun 10, 2026
Squashed from the bootstrap branch's intermediate WIP commits: - pre-commit (black / ruff / isort / autoflake) fixes across miles/ and train_diffusion.py - Revamp gather-args inference path in miles/utils/arguments.py and related rollout/ray/router/backends call sites (originally PR radixark#2 on the fork; included here since the squash predates that PR landing on upstream/main from this branch's POV) flow_grpo/ is reference-only and out of CI scope — explicitly NOT touched (pyproject.toml already pins ruff extend-exclude flow_grpo). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
zhihengy
pushed a commit
that referenced
this pull request
Jun 30, 2026
…glang import guard Two of the three real findings from the Codex review phase fixed immediately (the other is AC-9 full-RL, GPU-blocked): - #3 [AC-2/3] the production num_heads%ulysses guard was bypassed: create_fsdp_parallel_state reads args.num_attention_heads (absent in production -> None -> skips the check). Added a late guard in apply_sequence_parallel using the real transformer.config.num_attention_heads, rejecting illegal ulysses at startup (torchrun verified: heads10%ulysses4 rejected) - #2 guard tests/sglang_usp_import_guard.py: asserts the actually-imported sglang contains _AllToAllSingle/_RingFlashAttention + checksum covers dtype/shape, preventing env drift to an unpatched /sgl-workspace/sglang (2 passed) Note: Codex gap#2 (sglang fixes missing) and blocking#1 (tests not runnable) verified as false positives -- Codex had not activated the miles-diffusion conda env: the real env imports the patched /workspace/.../sglang (editable), ray is inside the env (pytest 22 passed). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
This pr: