NVIDIA / NVIDIA/TensorRT-LLM

ad-executor - analyze multimodal metadata induced synchronize

Open
#13,742 0 comments 0 reactions 1 assignee View on GitHub

@galagam is already working on this.

Since May 4, 2026.

Multimodal
Dominant language
Python
Stars
14.7k
Forks
2.8k
Avg merge
2d 23h
Merged PRs (30d)
489

Description

Follow up from #12861

https://github.com/NVIDIA/TensorRT-LLM/pull/12861#discussion_r3077973131

in ad-executor, we have:
```
# Multimodal prefill can leave image/context work in flight on the execution
# stream after model.forward returns. Synchronize before the overlap scheduler
# advances to the next step so later batch-state reuse does not race that work
# and surface as a delayed CUDA illegal memory access.
torch.cuda.current_stream().synchronize()


This may not be not ideal perf-wise. 

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.