Skip to content

Support agentic training for SWE with TRTLLM rollout - #4

Draft
hchings wants to merge 47 commits into
shuyix/trtllmfrom
trtllm-agentic-swe
Draft

hchings wants to merge 47 commits into
shuyix/trtllmfrom
trtllm-agentic-swe

Conversation

@hchings

@hchings hchings commented Jul 13, 2026 •

Copy link
Copy Markdown
Owner

What does this PR do ?

This MR is only for easier review for NVIDIA-NeMo#3130.

  • shuyix/trtllm - Shuyi's branch to enable TRTLLM in Nemo-RL for sync/async RL
  • trtllm-agentic-swe - my branch to enable agentic training for TRTLLM in nemo-RL

Issues

List issues that this PR closes (syntax):

Usage

  • You can potentially add a usage example below
# Add a code snippet demonstrating how to use this

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you run the unit tests and functional tests locally? Visit our Testing Guide for how to run tests
  • Did you add or update any necessary documentation? Visit our Document Development Guide for how to write, build and test the docs.

Additional Information

  • ...

@hchings hchings self-assigned this Jul 13, 2026
@hchings
hchings force-pushed the trtllm-agentic-swe branch 2 times, most recently from 292c5e2 to c2f4d83 Compare July 13, 2026 21:18
@hchings hchings changed the title Trtllm agentic swe Support agentic training for SWE with TRTLLM rollout Jul 13, 2026
@hchings
hchings force-pushed the trtllm-agentic-swe branch from c2f4d83 to 6947764 Compare July 21, 2026 01:42
@github-actions github-actions Bot added documentation Improvements or additions to documentation CI labels Jul 21, 2026
@hchings
hchings force-pushed the trtllm-agentic-swe branch from 6947764 to bdaadcb Compare July 21, 2026 22:32
@github-actions github-actions Bot removed the CI label Jul 21, 2026
@hchings
hchings force-pushed the trtllm-agentic-swe branch from bdaadcb to ec1a8dd Compare July 21, 2026 23:09
yfw and others added 9 commits July 21, 2026 16:10
…o#2681)

Signed-off-by: Anjali Shah <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
…t drafter (NVIDIA-NeMo#2999)

Signed-off-by: Yi-Fu Wu <[email protected]>
Signed-off-by: Yi-Fu Wu <[email protected]>
Co-authored-by: Claude Opus 4.8 <[email protected]>
…dlock (NVIDIA-NeMo#3066)

Signed-off-by: Wenwen Gao <[email protected]>
Signed-off-by: Wenwen Gao <[email protected]>
Signed-off-by: Wenwen Gao <[email protected]>
Co-authored-by: Claude Sonnet 4.6 (1M context) <[email protected]>
Signed-off-by: Shiki Wu <[email protected]>
Signed-off-by: shuyix <[email protected]>
Signed-off-by: Shuyi Xiong <[email protected]>
Signed-off-by: shuyixiong <[email protected]>
Signed-off-by: Jonas Yang <[email protected]>
Co-authored-by: Shiki Wu <[email protected]>
Co-authored-by: Rick Lamers <[email protected]>
Co-authored-by: Jonas Yang <[email protected]>
…-NeMo#3220)

Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: ruit <[email protected]>
Signed-off-by: Terry Kong <[email protected]>
Co-authored-by: ruit <[email protected]>
Co-authored-by: Terry Kong <[email protected]>
@hchings
hchings force-pushed the trtllm-agentic-swe branch from 15a5c98 to c679c58 Compare July 23, 2026 20:53
@github-actions github-actions Bot added the CI label Jul 23, 2026
@hchings
hchings force-pushed the trtllm-agentic-swe branch from c679c58 to 00cee77 Compare July 23, 2026 21:02
kajalj22 and others added 23 commits July 25, 2026 02:10
…ixes, agentic Dockerfile, 4b smoke script

Signed-off-by: Erin Ho <[email protected]>
Signed-off-by: Erin Ho <[email protected]>
Signed-off-by: Erin Ho <[email protected]>
Signed-off-by: Erin Ho <[email protected]>
Signed-off-by: Erin Ho <[email protected]>
Signed-off-by: Erin Ho <[email protected]>
Signed-off-by: Erin Ho <[email protected]>
Implement the grpo start/stop_gpu_profiling protocol on the TRT-LLM
generation backend so `maybe_gpu_profile_step` no longer crashes, and
inject `ray_worker_nsight_options` so nsys wraps TRT-LLM's internal
Ray GPU workers (the outer actor's nsight runtime_env does not inherit
into RayExecutor workers).

- TrtllmGeneration: implement start/stop_gpu_profiling, dispatched over
  the worker group (rank-0-of-TP), sync/async variants.
- TrtllmAsyncGenerationWorkerImpl: start/stop_gpu_profiling_async +
  inject ray_worker_nsight_options into AsyncLLM kwargs.
- NcclExtension: start/stop_gpu_profiling -> torch.cuda.profiler.start/stop.
- TrtllmGenerationWorkerImpl: sync-path parity.

Verified on the 2-node canary (job 14009797): non-empty per-worker
.nsys-rep with real generation kernels.

Signed-off-by: Chunwei Yan <[email protected]>
Signed-off-by: Erin Ho <[email protected]>
Signed-off-by: Jonas Yang <[email protected]>
Signed-off-by: Erin Ho <[email protected]>
@hchings
hchings force-pushed the trtllm-agentic-swe branch from 77affc7 to 74769c6 Compare July 25, 2026 02:17
Signed-off-by: Erin Ho <[email protected]>
@hchings
hchings force-pushed the trtllm-agentic-swe branch from 74769c6 to 7c33404 Compare July 25, 2026 04:39

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.