Repository navigation
fix: pad audio to hop length for Qwen3-Omni prompt match (cp of #4363) - #4695
Merged
yuki-97 merged 1 commit intoOct 13, 2026
Merged
Conversation
…atch Partial cherry-pick of NVIDIA-NeMo#4363 (audio padding only; the Megatron-Bridge bump and unrelated changes are not included). r0.8.0 already carries the strict rollout prompt validation (NVIDIA-NeMo#4182), but not the learner-side audio padding. Qwen3-Omni pre-pads audio to hop_length in vLLM, so for audio whose length is not a multiple of hop_length the learner and vLLM disagree by one audio token and the vlm_grpo-qwen3-omni-30ba3b-audiomcq-4n8g-megatron.v1 nightly fails at step 0 validation with "vLLM processed prompt differs from the learner prompt". Signed-off-by: Yuekai Zhang <[email protected]> Signed-off-by: Yuekai Zhang <[email protected]>
yuki-97
approved these changes
Oct 13, 2026
yuki-97
left a comment
Contributor
There was a problem hiding this comment.
Thanks for checking the failure and cherry-picking the audio padding fix onto r0.8.0.
Checked:
Contributor
|
/ok to test 961c5c1 |
yuki-97
enabled auto-merge (squash)
October 13, 2026 06:59
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
r0.8.0already has the strict rollout prompt validation (cherry-pick of fix: restore unexpanded Nemotron prompts for vLLM #4182), but not the learner-side audio padding from ci: Bump MBridge to ec835530efeff71b55ec015f36bcc0c33b8b52b7. #4363.hop_lengthinside vLLM. Without the matching pad invlm_hf_data_processor, audio whose length is not a multiple ofhop_lengthyields one extra audio token on the vLLM side, and validation fails withvLLM processed prompt differs from the learner prompt: expected_length=271, actual_length=272.vlm_grpo-qwen3-omni-30ba3b-audiomcq-4n8g-megatron.v1nightly at step 0 (reproduced in 4 consecutive runs).pad_audio_to_hop_lengthoption (processor,TaskDataSpec,raw_dataset, config typing), the audiomcq recipe opt-in, docs, and unit tests. The Megatron-Bridge bump and other unrelated parts of ci: Bump MBridge to ec835530efeff71b55ec015f36bcc0c33b8b52b7. #4363 are intentionally excluded.Test plan
ruff check/ruff format --checkon changed filespytest tests/unit/data/datasets/test_audiomcq_dataset.py(25 passed)vlm_grpo-qwen3-omni-30ba3b-audiomcq-4n8g-megatron.v1nightly on r0.8.0 after merge