README: document trt_v12 TensorRT per-SM builder resources
Browse files
README.md
CHANGED
|
@@ -2,10 +2,11 @@
|
|
| 2 |
license: other
|
| 3 |
license_name: nvidia-cuda-cudnn-redistributable
|
| 4 |
license_link: https://docs.nvidia.com/cuda/eula/index.html
|
| 5 |
-
pretty_name: MBFS CUDA Runtime Bundle (cuda_v12 + cuda_v11)
|
| 6 |
tags:
|
| 7 |
- cuda
|
| 8 |
- cudnn
|
|
|
|
| 9 |
- onnxruntime
|
| 10 |
- runtime-libraries
|
| 11 |
- windows
|
|
@@ -28,9 +29,20 @@ must still use `cu11` (loading `cu12` binaries fails with
|
|
| 28 |
`scripts/build_windows.py` clamps the stack to the lower of the GPU and driver
|
| 29 |
ceilings (override with `--gpu-stack`).
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
## Contents (`cuda_v12/`)
|
| 36 |
|
|
@@ -70,6 +82,45 @@ ceilings (override with `--gpu-stack`).
|
|
| 70 |
> must be used together (never mix DLLs across folders or with another ONNX
|
| 71 |
> Runtime release, or the CUDA EP fails to load).
|
| 72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
## Requirements
|
| 74 |
|
| 75 |
- **OS:** Windows x64
|
|
@@ -98,6 +149,11 @@ forward-compatibility** to newer archs):
|
|
| 98 |
| 9.0a | Hopper | H100, H200 | ✅ |
|
| 99 |
| 10.x / 12.x | **Blackwell** | B100/B200, RTX 50xx | ❌ not native |
|
| 100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
### `cu11`
|
| 102 |
|
| 103 |
The `cu11` stack is the fallback for machines that predate CUDA 12: NVIDIA
|
|
@@ -114,8 +170,9 @@ CUDA path only.
|
|
| 114 |
## Usage
|
| 115 |
|
| 116 |
The MBFS Sentinel build pulls the right stack automatically
|
| 117 |
-
(`build_windows.py --gpu-stack {cu12|cu11} --cuda-source hf`)
|
| 118 |
-
|
|
|
|
| 119 |
|
| 120 |
```bash
|
| 121 |
# cu12 into ./dist/lib (lands at ./dist/lib/cuda_v12/)
|
|
@@ -127,6 +184,20 @@ hf download MBFSAITeam/cuda-runtime-bundle --repo-type dataset \
|
|
| 127 |
--include "cuda_v11/*" --local-dir ./dist/lib
|
| 128 |
```
|
| 129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
For reproducible builds, pin a commit revision with `--revision <sha>` instead of
|
| 131 |
`main`.
|
| 132 |
|
|
@@ -135,13 +206,17 @@ For reproducible builds, pin a commit revision with `--revision <sha>` instead o
|
|
| 135 |
This repository bundles components under **different licenses**:
|
| 136 |
|
| 137 |
- **ONNX Runtime** (`onnxruntime*.dll`) — MIT License, © Microsoft.
|
| 138 |
-
- **CUDA runtime** (`cudart`, `cublas`, `cublasLt`, `cufft`, `curand`, `cusparse`
|
| 139 |
-
— © NVIDIA Corporation, redistributed under the
|
| 140 |
[NVIDIA CUDA Toolkit EULA](https://docs.nvidia.com/cuda/eula/index.html).
|
| 141 |
- **cuDNN** (`cudnn*.dll`, both v8 and v9) — © NVIDIA Corporation, redistributed
|
| 142 |
under the [NVIDIA cuDNN Software License Agreement](https://docs.nvidia.com/deeplearning/cudnn/sla/index.html).
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
|
| 144 |
The NVIDIA libraries are redistributed **unmodified** as runtime dependencies, as
|
| 145 |
-
permitted by the above agreements. NVIDIA, CUDA, and
|
| 146 |
-
Corporation. This repository is not affiliated with or endorsed by NVIDIA.
|
| 147 |
-
these files you agree to the respective NVIDIA license terms.
|
|
|
|
| 2 |
license: other
|
| 3 |
license_name: nvidia-cuda-cudnn-redistributable
|
| 4 |
license_link: https://docs.nvidia.com/cuda/eula/index.html
|
| 5 |
+
pretty_name: MBFS CUDA + TensorRT Runtime Bundle (cuda_v12 + cuda_v11 + trt_v12)
|
| 6 |
tags:
|
| 7 |
- cuda
|
| 8 |
- cudnn
|
| 9 |
+
- tensorrt
|
| 10 |
- onnxruntime
|
| 11 |
- runtime-libraries
|
| 12 |
- windows
|
|
|
|
| 29 |
`scripts/build_windows.py` clamps the stack to the lower of the GPU and driver
|
| 30 |
ceilings (override with `--gpu-stack`).
|
| 31 |
|
| 32 |
+
**TensorRT engine-build libraries** live in a *companion* folder,
|
| 33 |
+
[`trt_v12/`](./trt_v12) (for the `cu12` stack). These are the TensorRT 10
|
| 34 |
+
runtime + parser (`nvinfer*`, `nvonnxparser`) and the per-SM **builder
|
| 35 |
+
resources** used when TensorRT compiles an engine. It is **not** a standalone
|
| 36 |
+
CUDA stack — pair it with `cuda_v12/` (whose `onnxruntime_providers_tensorrt.dll`
|
| 37 |
+
is only the small ONNX Runtime ↔ TensorRT bridge). Unlike the CUDA folders,
|
| 38 |
+
`trt_v12/` is fetched **selectively**: a build downloads only the one builder
|
| 39 |
+
resource matching the target GPU's compute capability (plus the always-included
|
| 40 |
+
PTX fallback), not the whole ~2.8 GiB set. See
|
| 41 |
+
**[Contents (`trt_v12/`)](#contents-trt_v12)**.
|
| 42 |
+
|
| 43 |
+
> ⚠️ These are **runtime redistributable libraries**, not source. The CUDA,
|
| 44 |
+
> cuDNN, and TensorRT DLLs are © NVIDIA Corporation and remain under NVIDIA's
|
| 45 |
+
> licenses — see **[License & redistribution](#license--redistribution)** below.
|
| 46 |
|
| 47 |
## Contents (`cuda_v12/`)
|
| 48 |
|
|
|
|
| 82 |
> must be used together (never mix DLLs across folders or with another ONNX
|
| 83 |
> Runtime release, or the CUDA EP fails to load).
|
| 84 |
|
| 85 |
+
## Contents (`trt_v12/`)
|
| 86 |
+
|
| 87 |
+
TensorRT 10 for the `cu12` stack, split into **core** (always needed) and
|
| 88 |
+
**per-SM builder resources** (one per GPU architecture). A build pulls the core
|
| 89 |
+
plus **only** the resource matching the target GPU's compute capability, plus
|
| 90 |
+
the PTX fallback — typically ≈ 1.0–1.7 GiB instead of the full ≈ 2.8 GiB.
|
| 91 |
+
|
| 92 |
+
**Core — always downloaded:**
|
| 93 |
+
|
| 94 |
+
| File | Component | Approx. size |
|
| 95 |
+
|---|---|---|
|
| 96 |
+
| `nvinfer_10.dll` | TensorRT 10 core inference runtime + builder | 432 MB |
|
| 97 |
+
| `nvinfer_plugin_10.dll` | TensorRT 10 standard plugins | 53 MB |
|
| 98 |
+
| `nvonnxparser_10.dll` | ONNX → TensorRT network parser | 3 MB |
|
| 99 |
+
| `nvrtc64_120_0.dll` | NVRTC runtime compiler (CUDA 12) | 44 MB |
|
| 100 |
+
|
| 101 |
+
**Per-SM builder resources — download only the one matching your GPU:**
|
| 102 |
+
|
| 103 |
+
| File | Architecture | Example GPUs | Approx. size |
|
| 104 |
+
|---|---|---|---|
|
| 105 |
+
| `nvinfer_builder_resource_ptx_10.dll` | **PTX JIT fallback — always included** | (any, forward-compat) | 488 MB |
|
| 106 |
+
| `nvinfer_builder_resource_sm75_10.dll` | Turing | T4, RTX 20xx | 157 MB |
|
| 107 |
+
| `nvinfer_builder_resource_sm80_10.dll` | Ampere | A100, A30 | 256 MB |
|
| 108 |
+
| `nvinfer_builder_resource_sm86_10.dll` | Ampere | A40, RTX 30xx | 241 MB |
|
| 109 |
+
| `nvinfer_builder_resource_sm89_10.dll` | Ada | L4, L40, RTX 40xx | 254 MB |
|
| 110 |
+
| `nvinfer_builder_resource_sm90_10.dll` | Hopper | H100, H200 | 661 MB |
|
| 111 |
+
| `nvinfer_builder_resource_sm120_10.dll` | Blackwell | B100/B200, RTX 50xx | 377 MB |
|
| 112 |
+
|
| 113 |
+
**Full set ≈ 2.8 GiB** (4 core + 7 resources). Example single-SM footprint —
|
| 114 |
+
Ampere A30 (sm80): core (532 MB) + PTX (488 MB) + `sm80` (256 MB) ≈ **1.2 GiB**.
|
| 115 |
+
|
| 116 |
+
> The builder resources are only needed when TensorRT **compiles** an engine
|
| 117 |
+
> (the first run for a given model/GPU). `nvinfer_10.dll` loads the matching
|
| 118 |
+
> `nvinfer_builder_resource_sm<cc>_10.dll` from the DLL search path at
|
| 119 |
+
> engine-build time; the MBFS Sentinel build stages them under
|
| 120 |
+
> `dist/lib/trt_v12/` and adds that directory to the process `PATH`. Once an
|
| 121 |
+
> engine cache (`.engine`/`.trt`) exists, the resource for that SM is no longer
|
| 122 |
+
> read.
|
| 123 |
+
|
| 124 |
## Requirements
|
| 125 |
|
| 126 |
- **OS:** Windows x64
|
|
|
|
| 149 |
| 9.0a | Hopper | H100, H200 | ✅ |
|
| 150 |
| 10.x / 12.x | **Blackwell** | B100/B200, RTX 50xx | ❌ not native |
|
| 151 |
|
| 152 |
+
For the **TensorRT** path the per-SM builder resources in `trt_v12/` cover
|
| 153 |
+
`sm75 / sm80 / sm86 / sm89 / sm90 / sm120`; older archs (sm_52/60/70) fall back
|
| 154 |
+
to the PTX builder resource (JIT). Pick the resource by compute capability:
|
| 155 |
+
`sm = major*10 + minor` (e.g. 8.0 → `sm80`, 12.0 → `sm120`).
|
| 156 |
+
|
| 157 |
### `cu11`
|
| 158 |
|
| 159 |
The `cu11` stack is the fallback for machines that predate CUDA 12: NVIDIA
|
|
|
|
| 170 |
## Usage
|
| 171 |
|
| 172 |
The MBFS Sentinel build pulls the right stack automatically
|
| 173 |
+
(`build_windows.py --gpu-stack {cu12|cu11} --cuda-source hf`), including the
|
| 174 |
+
matching TensorRT builder resource (`--tensorrt-source hf`, default). To fetch a
|
| 175 |
+
stack manually:
|
| 176 |
|
| 177 |
```bash
|
| 178 |
# cu12 into ./dist/lib (lands at ./dist/lib/cuda_v12/)
|
|
|
|
| 184 |
--include "cuda_v11/*" --local-dir ./dist/lib
|
| 185 |
```
|
| 186 |
|
| 187 |
+
For TensorRT, fetch the **core + PTX + only your GPU's SM** instead of the whole
|
| 188 |
+
folder (example for an Ampere A30, sm80):
|
| 189 |
+
|
| 190 |
+
```bash
|
| 191 |
+
hf download MBFSAITeam/cuda-runtime-bundle --repo-type dataset \
|
| 192 |
+
--include "trt_v12/nvinfer_10.dll" \
|
| 193 |
+
--include "trt_v12/nvinfer_plugin_10.dll" \
|
| 194 |
+
--include "trt_v12/nvonnxparser_10.dll" \
|
| 195 |
+
--include "trt_v12/nvrtc64_120_0.dll" \
|
| 196 |
+
--include "trt_v12/nvinfer_builder_resource_ptx_10.dll" \
|
| 197 |
+
--include "trt_v12/nvinfer_builder_resource_sm80_10.dll" \
|
| 198 |
+
--local-dir ./dist/lib
|
| 199 |
+
```
|
| 200 |
+
|
| 201 |
For reproducible builds, pin a commit revision with `--revision <sha>` instead of
|
| 202 |
`main`.
|
| 203 |
|
|
|
|
| 206 |
This repository bundles components under **different licenses**:
|
| 207 |
|
| 208 |
- **ONNX Runtime** (`onnxruntime*.dll`) — MIT License, © Microsoft.
|
| 209 |
+
- **CUDA runtime** (`cudart`, `cublas`, `cublasLt`, `cufft`, `curand`, `cusparse`,
|
| 210 |
+
`nvrtc`) — © NVIDIA Corporation, redistributed under the
|
| 211 |
[NVIDIA CUDA Toolkit EULA](https://docs.nvidia.com/cuda/eula/index.html).
|
| 212 |
- **cuDNN** (`cudnn*.dll`, both v8 and v9) — © NVIDIA Corporation, redistributed
|
| 213 |
under the [NVIDIA cuDNN Software License Agreement](https://docs.nvidia.com/deeplearning/cudnn/sla/index.html).
|
| 214 |
+
- **TensorRT** (`nvinfer*.dll`, `nvonnxparser*.dll`, and the
|
| 215 |
+
`nvinfer_builder_resource_*` builder resources) — © NVIDIA Corporation,
|
| 216 |
+
redistributed under the
|
| 217 |
+
[NVIDIA TensorRT Software License Agreement](https://docs.nvidia.com/deeplearning/tensorrt/sla/index.html).
|
| 218 |
|
| 219 |
The NVIDIA libraries are redistributed **unmodified** as runtime dependencies, as
|
| 220 |
+
permitted by the above agreements. NVIDIA, CUDA, cuDNN, and TensorRT are trademarks
|
| 221 |
+
of NVIDIA Corporation. This repository is not affiliated with or endorsed by NVIDIA.
|
| 222 |
+
By using these files you agree to the respective NVIDIA license terms.
|