NVIDIA / NVIDIA/TensorRT

State of affairs for NestedTensor (NJT) inference?

Open
#4,234 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triaged
Dominant language
C++
Stars
13.4k
Forks
2.4k
Avg merge
5d 3h
Merged PRs (30d)
2

Description

PyTorch now has some support for representing varlen sequences. It is supported to some extent by HF:

This is useful e.g. for saving compute on padding tokens for BERT inference. Does TRT has kernels for such NJT sdpa ops? (and can they be executed via CUDA graphs?) If so, how to benefit from it? Is there an example?

Thank you!

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.

Research direction

Start by reviewing the linked PyTorch and Hugging Face references, then investigate whether TensorRT supports NestedTensor SDPA inference and CUDA graph execution. Done means documenting the current support status, explaining how to use it if supported, and providing an example or clearly stating that no example is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
huggingface, pytorch
Domain
ai, machine-learning, performance
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.