Repository navigation
Conversation
Rockdu
force-pushed
the
sglang-miles
branch
2 times, most recently
from
October 31, 2026 06:43
865cb64 to
29b34bc
Compare
guapisolo
force-pushed
the
sglang-miles
branch
from
November 1, 2026 02:53
29b34bc to
b0ed761
Compare
Rockdu
force-pushed
the
dmd2/rollout-return-audio
branch
from
November 9, 2026 23:39
6f04c06 to
3bd643c
Compare
This branch has not been deployed
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.
Motivation
miles-diffusion judges a MiniMax H3 t2va distillation run by its eval renders (radixark/miles_diffusion#343), which need sound. H3 decodes audio together with the video (
OutputBatch.audio,[1, C, L], andaudio_sample_rate), but the rollout response carries onlygenerated_output, so the trainer side receives silent videos. The OpenAI entrypoint already returnsresult.audio/result.audio_sample_rate.Modifications
RolloutResponse: two optional fields,generated_audio(this sample's waveform) andaudio_sample_rate, bothNoneby default._build_response: picks each sample's waveform with the existingselect_output_audio, the helpersave_outputsuses for the same per-sample split, and fills both fields in rollout and eval responses. Pipelines that decode no audio returnNone, so their responses are unchanged.Accuracy Tests
MiniMax-H3 (t2va, 2×B200 TP2, 768p 16:9 4 s = 1344×768 / 107 frames, 4 steps,
ode, seed 1234,rollout_video_dtype=uint8), on a tree with this commit and #46545 (skip the VAE decode) on top ofsglang-miles2a2fb73; the two touch separate response fields:generated_outputgenerated_audioaudio_sample_raterollout=True)[3, 107, 768, 1344][2, 142400](4.45 s)rollout=False)[3, 107, 768, 1344][2, 142400]Repeated requests return bitwise-equal video and audio. Against
sglang-miles2a2fb73 on the same requests, the decoded video (rollout and eval),dit_trajectory,denoising_envandrollout_log_probsare bitwise equal; the rollout response grows by 1,139,373 bytes, the 1,139,200-byte waveform plus its keys.Tests
test_rollout_api.py::TestBuildResponse::test_each_sample_carries_its_own_audio: in a 2-sample batch, each response carries its own sample's waveform and the sample rate, for rollout and eval; a pipeline without audio returnsNonefor both. It fails without the change.test_rollout_api.py: 41 passed.pre-commit runon the changed files is clean.CI States
Latest PR Test (Base): ❌ Run #42722280038
Latest PR Test (Extra): ❌ Run #42722279841
Latest PR Test (AMD ROCm 10): ❌ Run #42722279657
Tip
Base CI only covers the core cases, and its workload may not exercise your change. Use
/rerun-testto run the tests your change touches, or copy this prompt for an agent: