[None][WIP-feat] Add NanoJet backend for AutoDeploy prefill-only FP8 inference - #17288
Draft
wejoncy wants to merge 1 commit into
Draft
[None][WIP-feat] Add NanoJet backend for AutoDeploy prefill-only FP8 inference#17288wejoncy wants to merge 1 commit into
wejoncy wants to merge 1 commit into
Conversation
…nly) Five custom ops and five transforms route a prequantized FP8 model onto nanojet's kernels. All ship disabled, and the two existing files touched are additive only, so no other backend changes behaviour.
wejoncy
force-pushed
the
nanojet-backend
branch
from
August 5, 2026 06:34
0c0fde7 to
fee0254
Compare
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.
Description
This PR adds NanoJet as an optional TensorRT-LLM AutoDeploy backend for prefill-only inference with pre-quantized FP8 models.
Five custom ops and five post-load graph transformations route supported AutoDeploy graph patterns to NanoJet kernels:
NanoJet is loaded lazily and applies tuned-kernel configurations through its integration contract. All NanoJet transformations are disabled by default, and changes to existing files are additive, so existing backends and installations without NanoJet retain their current behavior.
Benchmark
Benchmark setup:
trtllm-nanojettrtllm-flashinfertrtllm-defaultThe NanoJet backend delivers 49.85% lower latency than FlashInfer (1.99x speedup) and 49.07% lower latency than the default backend (1.96x speedup).
Test Coverage
This PR adds unit coverage for:
PR Checklist
Please review the following before submitting your PR:
PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.
PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.
Test cases are provided for new code paths (see test instructions)
If PR introduces API changes, an appropriate PR label is added - either
api-compatibleorapi-breaking. Forapi-breaking, includeBREAKINGin the PR title.Any new dependencies have been scanned for license and vulnerabilities
CODEOWNERS updated if ownership changes
Documentation updated as needed
Update tava architecture diagram if there is a significant design change in PR.
The reviewers assigned automatically/manually are appropriate for the PR.
Please check this after reviewing the above items as appropriate for this PR.
GitHub Bot Help
To see a list of available CI bot commands, please comment
/bot help.