Repository navigation
feat(single-controller): support the TRT-LLM generation backend - #5100
Draft
shuyixiong wants to merge 3 commits into
Draft
shuyixiong wants to merge 3 commits into
shuyixiong wants to merge 3 commits into
Conversation
Cherry-picked from #4566, keeping only the TRT-LLM + SingleController part; the in-loss sequence-logprob filtering and offline-evaluation parts of that commit are not included. - setup: TRT-LLM cluster topology, generation build, max sequence length, and NeMo-Gym support (build generation, then start Gym). - TrtllmGeneration.validate_settings rejects SC options TRT-LLM cannot honor before any resources are reserved. (cherry picked from commit b3c187a) Signed-off-by: shuyixiong <[email protected]>
…E1 recipe Follow-up to the TRT-LLM + SingleController cherry-pick from #4566: - Size TRT-LLM replicas with main's disaggregation schema (replica_width) instead of the older trtllm_cfg.disaggregation keys. - Build TRT-LLM generation in parallel with the trainer; NeMo-Gym waits for the generation future and fails if any shard lacks a server URL. - Type validate_settings against MasterConfig and resolve PD layout via resolve_disagg_layout. - Add the grpo-qwen3-1.7b-2n4g-megatron-trtllm-disagg-swe1-single-controller recipe and test-suite driver (PD disagg + NeMo-Gym SWE1). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: shuyixiong <[email protected]>
…WE1 SC recipe Host ledger-authoritative token capture for SingleController TRT-LLM on the PD disagg frontend, the one hop that sees both Gym's admitted request and the finished response: - inbound: resolve the admission's prefix (staged chain or inline), render the prompt with that exact prefix spliced in, and pin it as prompt_token_ids_b64 so the prefill engine uses it verbatim; - outbound: verify the engine prompt, stage the call's delta to TransferQueue, and answer with ng_commit_coords instead of the token arrays; context-length refusals and engine errors poison the call. The frontends speak the vLLM-worker capture wire, so Gym needs no change (nemo_gym maps trtllm to vllm_worker). Gym's capture modules are made importable from the TRT-LLM venv by appending the in-tree checkout. TrtllmGeneration.validate_settings now requires PD + frontend_tokenize for token capture and rejects top_logprobs and router replay with it. The SWE1 SC recipe enables token capture and the ready_first sampler (force_on_policy_ratio=false; tool-call/thinking advantages off, which the capture finalizer does not support yet). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: shuyixiong <[email protected]>
4 of 21 tasks
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.
What does this PR do ?
Add a one line overview of what this PR aims to accomplish.
Issues
List issues that this PR closes (syntax):
Usage
# Add a code snippet demonstrating how to use thisBefore your PR is "Ready for review"
Pre checks:
Additional Information