Repository navigation
feat(capture): capture vLLM VLM media alongside token deltas #4191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
08eda7a
feat(capture): capture vLLM VLM media alongside token deltas
pthombre 72abd1f
fix(capture): thread eos_token_id through splice_prefix_tokens
pthombre 57a2a95
test(capture): align media tests with the shared prefix cache and vLL…
pthombre e2db625
test(capture): drop duplicated mask_sample keys and probe vLLM config…
pthombre 352c95f
test(capture): expect vLLM 0.29 dummy-text tiling in the real-process…
pthombre 98e6a8c
style(capture): collapse the tiling expectation to ruff's formatting
pthombre 578907c
refactor(capture): apply review cleanups to the media capture plumbing
pthombre e5f7762
test(capture): cover the non-vLLM backend check, Bridge patchify drif…
pthombre 27f23a5
docs(capture): drop stale checkpoint-format and Megatron-capture sent…
pthombre 691b935
style(capture): collapse the num_frames tensor call to ruff's formatting
pthombre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
67 changes: 67 additions & 0 deletions
67
examples/nemo_gym/vlm_grpo_nemotron_omni_clevr_vllm_token_capture_single_controller.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| # Nemotron-Omni CLEVR through NeMo-Gym (string_match verifier) with async vLLM | ||
| # generation, a Megatron learner, and vLLM media token capture enabled. | ||
| # | ||
| # Functional-test config (not a nightly recipe, so it lives beside the other | ||
| # Gym smoke configs rather than under examples/configs/recipes/): | ||
| # tests/functional/nemotron_omni_clevr_vllm_token_capture_single_controller_1n2g.sh | ||
| # supplies the data paths, the 1 trainer + 1 generator split, and the step | ||
| # budget. Token capture requires the Gym rollout path, so the native CLEVR | ||
| # dataset/environment of the parent recipe are swapped for Gym rows here. | ||
| # Prefix caching stays off (hybrid-Mamba align cache mode asserts chunked | ||
| # prefill) and the parent's mm_processor_cache_gb=0 keeps concrete pixels | ||
| # available to the capture host. | ||
| defaults: ../configs/recipes/vlm/vlm_grpo-nemotron-omni-30ba3b-clevr-8n4g-megatron-single-controller-async.v1.yaml | ||
| data: | ||
| _override_: true | ||
| max_input_seq_length: null | ||
| shuffle: true | ||
| num_workers: 0 | ||
| use_multiple_dataloader: false | ||
| train: | ||
| data_path: /path/to/clevr_gym/train.jsonl | ||
| validation: | ||
| data_path: /path/to/clevr_gym/val.jsonl | ||
| default: | ||
| dataset_name: NemoGymDataset | ||
| env_name: nemo_gym | ||
| prompt_file: null | ||
| system_prompt_file: null | ||
| processor: nemo_gym_data_processor | ||
| env: | ||
| _override_: true | ||
| should_use_nemo_gym: true | ||
| should_log_nemo_gym_responses: false | ||
| should_mask_flagged_samples: true | ||
| nemo_gym: | ||
| is_trajectory_collection: false | ||
| skip_venv_if_present: true | ||
| port_range_low: 5000 | ||
| port_range_high: 5999 | ||
| config_paths: | ||
| - responses_api_models/vllm_model/configs/vllm_model_for_training.yaml | ||
| - resources_servers/string_match/configs/string_match.yaml | ||
| string_match_simple_agent: | ||
| responses_api_agents: | ||
| simple_agent: | ||
| max_steps: 1 | ||
| policy: | ||
| generation: | ||
| backend: vllm | ||
| refit_transport: null | ||
| vllm_cfg: | ||
| async_engine: true | ||
| expose_http_server: true | ||
| logprobs_mode: raw_logprobs | ||
| enable_prefix_caching: false | ||
| enforce_eager: true | ||
| vllm_kwargs: | ||
| limit_mm_per_prompt: | ||
| image: 2 | ||
| skip_mm_profiling: true | ||
| mamba_ssm_cache_dtype: float32 | ||
| kernel_config: | ||
| enable_flashinfer_autotune: false | ||
| moe_backend: triton | ||
| token_capture: | ||
| enabled: true | ||
| staging_partition: rollout_staging |
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.