Repository navigation
[6667815] Sync LibriSpeech-PC smoke audio metadata - #3098
Merged
bxyu-nvidia merged 1 commit intoSep 4, 2026
Merged
Conversation
Signed-off-by: gwarmstrong <[email protected]>
Contributor
Author
|
/claude review |
Contributor
Author
|
/ok to test 4beda20 |
Contributor
|
SHIP — LGTM, no reliability concerns. Focused fix: renames the audio sidechannel metadata field Verified:
No verifier/scorer/async surface touched. |
bxyu-nvidia
approved these changes
Sep 4, 2026
jkyi-nvidia
pushed a commit
that referenced
this pull request
Sep 11, 2026
## Summary - Rename the bundled ASR smoke data metadata key from `audio_url` to `audio_data`, matching the `vllm_model` contract introduced in #1170. - Update the generator and all checked-in rollout fixtures. - Clarify that `--model-type vllm_model` selects the Gym adapter and still requires `--model-url` to point to an audio-capable vLLM endpoint. - Add a regression test that compares the committed dataset with generator output and validates each WAV data URI. ## Problem The production LibriSpeech-PC preparation script emits `metadata.audio_data`, but the five-row smoke dataset and its generator still emitted `metadata.audio_url`. The current `vllm_model` adapter does not consume that legacy metadata key. It forwarded the 42 KB data URI as ordinary request metadata, which OpenAI rejected because metadata strings are limited to 512 characters. The reported command also selected the `vllm_model` Gym adapter while leaving `policy_base_url` pointed at `https://api.openai.com/v1`. This adapter emits the vLLM `audio_url` content format. It requires a compatible audio-capable vLLM endpoint. ## Reproduction before this change ```bash gym env start \ --model-type vllm_model \ --resources-server asr_with_pc gym eval run --no-serve \ --agent asr_with_pc_simple_agent \ --input resources_servers/asr_with_pc/data/example.jsonl \ --output results/asr_with_pc_rollouts.jsonl \ --num-repeats 1 ``` When `policy_base_url` is the OpenAI API, the request fails with: ```text Invalid metadata.audio_url: string too long. Expected a string with maximum length 512, but got a string with length 42750 instead. ``` ## Correct server command ```bash gym env start \ --model-type vllm_model \ --model-url http://<vllm-host>:<port>/v1 \ --model <audio-capable-model> \ --resources-server asr_with_pc ``` ## Testing - `RAY_TMPDIR=/tmp uv run gym env test --resources-server asr_with_pc` (`47 passed`) - `uv run pytest responses_api_models/vllm_model/tests/test_app.py -k AudioDataSplice -x` (`6 passed`) - `pre-commit run --all-files` in a clean checkout - Parsed all changed JSONL files with `jq` - Confirmed each JSONL differs only by the metadata key rename A live rollout was not run because no audio-capable vLLM endpoint is available in this workspace. Signed-off-by: gwarmstrong <[email protected]> Co-authored-by: gwarmstrong <[email protected]> Signed-off-by: Junkeun Yi <[email protected]>
This branch was previously 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.
Summary
audio_urltoaudio_data, matching thevllm_modelcontract introduced in Add file-path audio support to the vllm_model audio sidechannel #1170.Problem
The production LibriSpeech-PC preparation script emits
metadata.audio_data, but the five-row smoke dataset and its generator still emittedmetadata.audio_url. The currentvllm_modeladapter does not consume that legacy metadata key. It forwarded the 42 KB data URI as ordinary request metadata, which OpenAI rejected because metadata strings are limited to 512 characters.The reported command also selected the
vllm_modelGym adapter while leavingpolicy_base_urlpointed athttps://api.openai.com/v1. This adapter emits the vLLMaudio_urlcontent format. It requires a compatible audio-capable vLLM endpoint.Reproduction before this change
gym env start \ --model-type vllm_model \ --resources-server asr_with_pc gym eval run --no-serve \ --agent asr_with_pc_simple_agent \ --input resources_servers/asr_with_pc/data/example.jsonl \ --output results/asr_with_pc_rollouts.jsonl \ --num-repeats 1When
policy_base_urlis the OpenAI API, the request fails with:Live vLLM reproduction
Install vLLM with its
audioextra in the serving environment. Start the model in one terminal:vllm serve Qwen/Qwen2-Audio-7B-Instruct \ --host 127.0.0.1 \ --port 10240 \ --dtype bfloat16 \ --max-model-len 8192 \ --limit-mm-per-prompt '{"audio": 1}'Start Gym in another terminal:
gym env start \ --model-type vllm_model \ --model-url http://127.0.0.1:10240/v1 \ --model Qwen/Qwen2-Audio-7B-Instruct \ --model-api-key dummy_key \ --resources-server asr_with_pcThen run the five-row smoke test:
gym eval run --no-serve \ --agent asr_with_pc_simple_agent \ --input resources_servers/asr_with_pc/data/example.jsonl \ --output results/asr_with_pc_rollouts.jsonl \ --num-repeats 1The local Blackwell test host also used
VLLM_USE_FLASHINFER_SAMPLER=0and--enforce-eagerbecause it did not havenvcc. Those host-specific startup options are not part of the benchmark contract.Testing
Qwen/Qwen2-Audio-7B-Instruct: 5 of 5 rollouts completed and all five upstream Chat Completions calls returned HTTP 200.RAY_TMPDIR=/tmp uv run gym env test --resources-server asr_with_pc(47 passed)uv run pytest responses_api_models/vllm_model/tests/test_app.py -k AudioDataSplice -x(6 passed)pre-commit run --all-filesin a clean checkoutjq