经 AI Skill Hub 精选评估,TensorRT-LLM 获评「强烈推荐」。在 GitHub 上收获超过 13.7k 颗 Star,这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 9.0 分,适合有一定技术背景的用户使用。
NVIDIA官方开源项目,为大语言模型推理优化的Python框架。提供高效的LLM编译、部署和服务能力,支持多种硬件加速。适合需要高性能LLM推理的开发者和企业级应用场景。
TensorRT-LLM 是一款基于 Python 开发的开源工具,专注于 LLM推理、TensorRT、CUDA优化 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
NVIDIA官方开源项目,为大语言模型推理优化的Python框架。提供高效的LLM编译、部署和服务能力,支持多种硬件加速。适合需要高性能LLM推理的开发者和企业级应用场景。
TensorRT-LLM 是一款基于 Python 开发的开源工具,专注于 LLM推理、TensorRT、CUDA优化 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install tensorrt-llm
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install tensorrt-llm
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/NVIDIA/TensorRT-LLM
cd TensorRT-LLM
pip install -e .
# 验证安装
python -c "import tensorrt_llm; print('安装成功')"
# 命令行使用
tensorrt-llm --help
# 基本用法
tensorrt-llm input_file -o output_file
# Python 代码中调用
import tensorrt_llm
# 示例
result = tensorrt_llm.process("input")
print(result)
# tensorrt-llm 配置文件示例(config.yml) app: name: "tensorrt-llm" debug: false log_level: "INFO" # 运行时指定配置文件 tensorrt-llm --config config.yml # 或通过环境变量配置 export TENSORRT_LLM_API_KEY="your-key" export TENSORRT_LLM_OUTPUT_DIR="./output"
TensorRT LLM is an open-sourced library for optimizing LLM and Visual Gen inference. It provides state-of-the-art optimizations, including custom kernels for common inference operations (attention, GEMMs, MoE, ...), algorithmic runtime optimizations (Prefill-Decode disaggregation, Wide Expert Parallelism, Speculative Decoding, etc), and much more, to perform inference efficiently on NVIDIA GPUs.
Architected on PyTorch, TensorRT LLM provides a high-level Python LLM API that supports a wide range of inference setups - from single-GPU to multi-GPU or multi-node deployments. It includes built-in support for various parallelism strategies and advanced features. The LLM API integrates seamlessly with the broader inference ecosystem, including NVIDIA Dynamo and the Triton Inference Server.
TensorRT LLM is designed to be modular and easy to modify. Its PyTorch-native architecture allows developers to experiment with the runtime or extend functionality. Several popular models are also pre-defined and can be customized using native PyTorch code, making it easy to adapt the system to specific needs.
To get started with TensorRT-LLM, visit our documentation:
企业级LLM推理框架,NVIDIA官方维护,性能优异。生态完善、文档详尽,是生产环境推理的首选方案。
该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。
AI Skill Hub 点评:TensorRT-LLM 的核心功能完整,质量优秀。对于AI 技术爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | TensorRT-LLM |
| 原始描述 | 开源AI工作流:TensorRT LLM provides users with an easy-to-use Python API to define Large Langu。⭐13.7k · Python |
| Topics | LLM推理TensorRTCUDA优化模型部署高性能推理 |
| GitHub | https://github.com/NVIDIA/TensorRT-LLM |
| License | NOASSERTION |
| 语言 | Python |
收录时间:2026-05-19 · 更新时间:2026-05-20 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。