Skip to content

Adithyare/super v3.5 posttraining joint mopd - #3826

Closed
arendu wants to merge 42 commits into
mainfrom
adithyare/super_v3.5_posttraining_joint_mopd
Closed

arendu wants to merge 42 commits into
mainfrom
adithyare/super_v3.5_posttraining_joint_mopd

Conversation

@arendu

@arendu arendu commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

What does this PR do ?

Fixes issues encountered during joint OPD (vision + text teachers with a vision student)

Issues

Issue 1 — title: OPD teachers inherit invalid model-architecture keys from the student config
Teacher worker configs clone the student's megatron_cfg. With a cross-architecture
pair (VLM student + text teacher), inherited keys break the teacher: VLM tower keys
(freeze_vision_model, ...) raise "provider has no such field" at load, and the
student's mtp_num_layers=0 hits assert mtp_num_layers > 0 at first forward on an
MTP-bearing teacher checkpoint.
Fix: a teacher's model provider is configured only by its own checkpoint plus keys
explicitly written in that teacher's teacher_overrides.

Issue 2 — title: Partial teacher_overrides blocks are schema-filled and clobber default_teacher_cfg
teacher_overrides values are validated into TeacherResourceConfig at config load,
which fills schema defaults for every omitted field; the defaults<-override merge
then overwrites default_teacher_cfg with those defaults (e.g. gpus_per_node
silently reverting to 8 on a 4-GPU/node cluster). Any partial override block
triggers it.
Fix: keep override blocks untyped until after the merge; validate the merged result.

Issue 3 — title: deduplicate_multimodal_data crashes on tool schemas with a parameter named "type"
_prepare_multimodal_sharing tests item["type"] against a set of content types.
Tool-use rows whose JSON schema has a parameter literally named "type" put a dict
there -> TypeError: unhashable type: 'dict', killing the rollout collector.
Fix: only treat string-valued "type" as a content-type marker.

Usage

  • You can potentially add a usage example below
# Add a code snippet demonstrating how to use this

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you run the unit tests and functional tests locally? Visit our Testing Guide for how to run tests
  • Did you add or update any necessary documentation? Visit our Document Development Guide for how to write, build and test the docs.

Additional Information

  • ...

yfw and others added 30 commits August 5, 2026 09:42
Regenerate uv.lock from the merged dependency metadata, preserving the Super custom vLLM and FlashInfer stack while incorporating the latest main dependencies.

Signed-off-by: Yi-Fu Wu <[email protected]>
Avoid the moving nightly fallback used when the custom vLLM source is built from a detached checkout. Pin the precompiled artifact that matches the known-good Super 3.5 FA4 stack.

Signed-off-by: Yi-Fu Wu <[email protected]>
At GBS 512 the per-step metrics row exceeds W&B's ~10.38MB history-line
cap (hundreds of per-agent */histogram entries total >10MB) and the W&B
client silently drops the ENTIRE row, so no train/* curves appear
(observed on run zfhm8dc1 / job 6180005). Filter histogram and
full_result keys before log_metrics at the train and validation sites;
scalars (loss, KL, mtp_*, timings, per-agent stats) are untouched.
Same mitigation as nemo-rl-internal f5bafa107.

Co-Authored-By: Claude Fable 5 <[email protected]>
…om RL_omni_mopd_test_stacked

- launcher: reaper exemption comment, env-overridable SANDBOX_COMMAND, SLURM_EXTRA_DEPENDENCY hook
- v3-refmatch-mtp uses this branch's canonical MTP semantics (1 physical layer, non-repeated,
  bridge mtp export mapping fixed upstream -> no NRL_REFIT_SKIP_MTP workaround)
- container: branch-matched pipeline image (unvalidated for omni; fallback documented)

Co-Authored-By: Claude Fable 5 <[email protected]>
…mtp export fix incomplete on refit path — jobs 6296933/6371264 ALLGATHER hang)

Co-Authored-By: Claude Fable 5 <[email protected]>
…icit mtp values for text teacher

Co-Authored-By: Claude Fable 5 <[email protected]>
…e + warn); pin RADIO eval mode per vlm teacher; drop auto-drop

Co-Authored-By: Claude Fable 5 <[email protected]>
…ver can't import megatron-bridge)

Co-Authored-By: Claude Fable 5 <[email protected]>
…th schema-filled fields

Co-Authored-By: Claude Fable 5 <[email protected]>
…ill); launcher NO_SNAPSHOT=1 direct-run mode

Co-Authored-By: Claude Fable 5 <[email protected]>
arendu and others added 12 commits August 24, 2026 11:57
…l schemas in text rows)

Co-Authored-By: Claude Fable 5 <[email protected]>
Conflicts:
- nemo_rl/algorithms/grpo.py: kept both our _drop_bulky_wandb_metrics and
  main's _maybe_restore_async_replay_buffer_checkpoint
- uv.lock, docker/Dockerfile: kept super-v3.5 lineage (custom vllm/flashinfer/
  fastokens stack) as in prior super-v3.5 main-merges
- Gym submodule pin advances to main's c3bac963 (includes skip_verification
  #2279 natively); local working tree still runs the validated cherry-pick

Co-Authored-By: Claude Fable 5 <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Aug 25, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants