microsoft / microsoft/onnxruntime-genai

Request for Direct Integration of TensorRT Execution Provider for INT8 Inference Acceleration

Open
#1,368 0 comments 0 reactions 0 assignees View on GitHub
ep:TensorRT
Dominant language
C++
Stars
1.1k
Forks
354
Avg merge
2d 16h
Merged PRs (30d)
85

Description

I would like to propose an enhancement to the onnxruntime_genai package. Currently, while it is possible to configure execution providers via the extra_options parameter, there is no built-in support for directly integrating TensorRT through the TensorrtExecutionProvider to enable INT8 inference acceleration.

My request is to modify onnxruntime_genai so that it can directly integrate TensorRT via the TensorrtExecutionProvider. Specifically, the enhancement should:

Provide a built-in option to configure TensorRT EP parameters (for example, automatically setting options like "trt_int8_enable": "1") to facilitate INT8 inference acceleration.

Ensure that when this option is enabled, the necessary TensorRT EP configurations are applied without requiring manual intervention.

Update the documentation accordingly so that users can easily leverage TensorRT’s INT8 acceleration for their inference tasks.

Implementing this feature would simplify the process for users who need high-performance, low-precision inference and would greatly enhance the usability of onnxruntime_genai in production scenarios.

Thank you for your consideration and your ongoing work on this project.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by examining how onnxruntime_genai currently configures execution providers through the extra_options parameter and how TensorrtExecutionProvider is exposed. Define the built-in INT8 option, ensure its TensorRT EP configuration is applied when enabled, and update the documentation so users can configure and verify INT8 inference acceleration.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
ai, machine-learning, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.