TensorRT 10.7-GA OSS Release (#4269) · NVIDIA/TensorRT@17003e4 · GitHub
Skip to content

Commit 17003e4

Browse files
authored
TensorRT 10.7-GA OSS Release (#4269)
Signed-off-by: Kevin Chen <kevinch@nvidia.com>
1 parent c468d67 commit 17003e4

81 files changed

Lines changed: 1411 additions & 530 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitmodules‎

Lines changed: 1 addition & 1 deletion

‎CHANGELOG.md‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# TensorRT OSS Release Changelog
22

3+
## 10.7.0 GA - 2024-12-4
4+
Key Feature and Updates:
5+
6+
- Demo Changes
7+
- demoDiffusion
8+
- Enabled low-vram for the Flux pipeline. Users can now run the pipelines on systems with 32GB VRAM.
9+
- Added support for [FLUX.1-schnell](https://huggingface.co/black-forest-labs/FLUX.1-schnell) pipeline.
10+
- Enabled weight streaming mode for Flux pipeline.
11+
12+
- Plugin Changes
13+
- On Blackwell and later platforms, TensorRT will drop cuDNN support on the following categories of plugins
14+
- User-written `IPluginV2Ext`, `IPluginV2DynamicExt`, and `IPluginV2IOExt` plugins that are dependent on cuDNN handles provided by TensorRT (via the `attachToContext()` API).
15+
- TensorRT standard plugins that use cuDNN, specifically:
16+
- `InstanceNormalization_TRT` (version: 1, 2, and 3) present in `plugin/instanceNormalizationPlugin/`.
17+
- `GroupNormalizationPlugin` (version: 1) present in `plugin/groupNormalizationPlugin/`.
18+
- Note: These normalization plugins are superseded by TensorRT’s native `INormalizationLayer` ([C++](https://docs.nvidia.com/deeplearning/tensorrt/api/c_api/classnvinfer1_1_1_i_normalization_layer.html), [Python](https://docs.nvidia.com/deeplearning/tensorrt/operators/docs/Normalization.html)). TensorRT support for cuDNN-dependent plugins remain unchanged on pre-Blackwell platforms.
19+
20+
- Parser Changes
21+
- Now prioritizes using plugins over local functions when a corresponding plugin is available in the registry.
22+
- Added dynamic axes support for `Squeeze` and `Unsqueeze` operations.
23+
- Added support for parsing mixed-precision `BatchNormalization` nodes in strongly-typed mode.
24+
25+
- Addressed Issues
26+
- Fixed [4113](https://github.com/NVIDIA/TensorRT/issues/4113).
27+
328
## 10.6.0 GA - 2024-11-05
429
Key Feature and Updates:
530
- Demo Changes

‎README.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ You can skip the **Build** section to enjoy TensorRT with Python.
2626
To build the TensorRT-OSS components, you will first need the following software packages.
2727

2828
**TensorRT GA build**
29-
* TensorRT v10.6.0.26
29+
* TensorRT v10.7.0.23
3030
* Available from direct download links listed below
3131

3232
**System Packages**
@@ -73,25 +73,25 @@ To build the TensorRT-OSS components, you will first need the following software
7373
If using the TensorRT OSS build container, TensorRT libraries are preinstalled under `/usr/lib/x86_64-linux-gnu` and you may skip this step.
7474

7575
Else download and extract the TensorRT GA build from [NVIDIA Developer Zone](https://developer.nvidia.com) with the direct links below:
76-
- [TensorRT 10.6.0.26 for CUDA 11.8, Linux x86_64](https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.6.0/tars/TensorRT-10.6.0.26.Linux.x86_64-gnu.cuda-11.8.tar.gz)
77-
- [TensorRT 10.6.0.26 for CUDA 12.6, Linux x86_64](https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.6.0/tars/TensorRT-10.6.0.26.Linux.x86_64-gnu.cuda-12.6.tar.gz)
78-
- [TensorRT 10.6.0.26 for CUDA 11.8, Windows x86_64](https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.6.0/zip/TensorRT-10.6.0.26.Windows.win10.cuda-11.8.zip)
79-
- [TensorRT 10.6.0.26 for CUDA 12.6, Windows x86_64](https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.6.0/zip/TensorRT-10.6.0.26.Windows.win10.cuda-12.6.zip)
76+
- [TensorRT 10.7.0.23 for CUDA 11.8, Linux x86_64](https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.7.0/tars/TensorRT-10.7.0.23.Linux.x86_64-gnu.cuda-11.8.tar.gz)
77+
- [TensorRT 10.7.0.23 for CUDA 12.6, Linux x86_64](https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.7.0/tars/TensorRT-10.7.0.23.Linux.x86_64-gnu.cuda-12.6.tar.gz)
78+
- [TensorRT 10.7.0.23 for CUDA 11.8, Windows x86_64](https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.7.0/zip/TensorRT-10.7.0.23.Windows.win10.cuda-11.8.zip)
79+
- [TensorRT 10.7.0.23 for CUDA 12.6, Windows x86_64](https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.7.0/zip/TensorRT-10.7.0.23.Windows.win10.cuda-12.6.zip)
8080

8181

8282
**Example: Ubuntu 20.04 on x86-64 with cuda-12.6**
8383

8484
```bash
8585
cd ~/Downloads
86-
tar -xvzf TensorRT-10.6.0.26.Linux.x86_64-gnu.cuda-12.6.tar.gz
87-
export TRT_LIBPATH=`pwd`/TensorRT-10.6.0.26
86+
tar -xvzf TensorRT-10.7.0.23.Linux.x86_64-gnu.cuda-12.6.tar.gz
87+
export TRT_LIBPATH=`pwd`/TensorRT-10.7.0.23
8888
```
8989

9090
**Example: Windows on x86-64 with cuda-12.6**
9191

9292
```powershell
93-
Expand-Archive -Path TensorRT-10.6.0.26.Windows.win10.cuda-12.6.zip
94-
$env:TRT_LIBPATH="$pwd\TensorRT-10.6.0.26\lib"
93+
Expand-Archive -Path TensorRT-10.7.0.23.Windows.win10.cuda-12.6.zip
94+
$env:TRT_LIBPATH="$pwd\TensorRT-10.7.0.23\lib"
9595
```
9696

9797
## Setting Up The Build Environment

‎VERSION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10.6.0.26
1+
10.7.0.23

‎demo/BERT/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The following software version configuration has been tested:
7575
|Software|Version|
7676
|--------|-------|
7777
|Python|>=3.8|
78-
|TensorRT|10.6.0.26|
78+
|TensorRT|10.7.0.23|
7979
|CUDA|12.6|
8080

8181
## Setup

‎demo/Diffusion/README.md‎

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This demo application ("demoDiffusion") showcases the acceleration of Stable Dif
77
### Clone the TensorRT OSS repository
88

99
```bash
10-
git clone git@github.com:NVIDIA/TensorRT.git -b release/10.5 --single-branch
10+
git clone git@github.com:NVIDIA/TensorRT.git -b release/10.7 --single-branch
1111
cd TensorRT
1212
```
1313

@@ -16,7 +16,7 @@ cd TensorRT
1616
Install nvidia-docker using [these intructions](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker).
1717

1818
```bash
19-
docker run --rm -it --gpus all -v $PWD:/workspace nvcr.io/nvidia/pytorch:24.07-py3 /bin/bash
19+
docker run --rm -it --gpus all -v $PWD:/workspace nvcr.io/nvidia/pytorch:24.10-py3 /bin/bash
2020
```
2121

2222
NOTE: The demo supports CUDA>=11.8
@@ -43,12 +43,12 @@ pip3 install -r requirements.txt
4343

4444
> NOTE: demoDiffusion has been tested on systems with NVIDIA H100, A100, L40, T4, and RTX4090 GPUs, and the following software configuration.
4545
```
46-
diffusers 0.30.2
46+
diffusers 0.31.0
4747
onnx 1.15.0
4848
onnx-graphsurgeon 0.5.2
4949
onnxruntime 1.16.3
5050
polygraphy 0.49.9
51-
tensorrt 10.6.0.26
51+
tensorrt 10.7.0.23
5252
tokenizers 0.13.3
5353
torch 2.2.0
5454
transformers 4.42.2
@@ -66,6 +66,7 @@ python3 demo_img2img.py --help
6666
python3 demo_inpaint.py --help
6767
python3 demo_controlnet.py --help
6868
python3 demo_txt2img_xl.py --help
69+
python3 demo_txt2img_flux.py --help
6970
```
7071

7172
### HuggingFace user access token
@@ -257,23 +258,43 @@ python3 demo_stable_cascade.py --onnx-opset=16 "Anthropomorphic cat dressed as a
257258
258259
### Generate an image guided by a text prompt using Flux
259260

261+
Run the below command to generate an image with FLUX.1 Dev in FP16.
262+
260263
```bash
261264
python3 demo_txt2img_flux.py "a beautiful photograph of Mt. Fuji during cherry blossom" --hf-token=$HF_TOKEN
262265
```
263266

264-
Run the below command to generate an image with FLUX in BF16.
267+
Run the below command to generate an image with FLUX.1 Dev in BF16.
265268

266269
```bash
267270
python3 demo_txt2img_flux.py "a beautiful photograph of Mt. Fuji during cherry blossom" --hf-token=$HF_TOKEN --bf16
268271
```
269272

270-
Run the below command to generate an image with FLUX in FP8. (FP8 is only supppoted on Hopper.)
273+
Run the below command to generate an image with FLUX.1 Dev in FP8. (FP8 is suppported on Hopper and Ada.)
271274

272275
```bash
273276
python3 demo_txt2img_flux.py "a beautiful photograph of Mt. Fuji during cherry blossom" --hf-token=$HF_TOKEN --fp8
274277
```
275278

276-
NOTE: Running the Flux pipeline requires 80GB of GPU memory or higher
279+
Run the below command to generate an image with FLUX.1 Schnell in FP16.
280+
281+
```bash
282+
python3 demo_txt2img_flux.py "a beautiful photograph of Mt. Fuji during cherry blossom" --hf-token=$HF_TOKEN --version="flux.1-schnell"
283+
```
284+
285+
Run the below command to generate an image with FLUX.1 Schnell in BF16.
286+
287+
```bash
288+
python3 demo_txt2img_flux.py "a beautiful photograph of Mt. Fuji during cherry blossom" --hf-token=$HF_TOKEN --version="flux.1-schnell" --bf16
289+
```
290+
291+
Run the below command to generate an image with FLUX.1 Schnell in FP8. (FP8 is suppported on Hopper and Ada.)
292+
293+
```bash
294+
python3 demo_txt2img_flux.py "a beautiful photograph of Mt. Fuji during cherry blossom" --hf-token=$HF_TOKEN --version="flux.1-schnell" --fp8
295+
```
296+
297+
NOTE: Running the FLUX.1 Dev or FLUX.1 Schnell pipeline requires 48GB or 24GB of GPU memory or higher, respectively.
277298

278299
## Configuration options
279300
- Noise scheduler can be set using `--scheduler <scheduler>`. Note: not all schedulers are available for every version.

‎demo/Diffusion/demo_txt2img_flux.py‎

Lines changed: 63 additions & 12 deletions

0 commit comments

Comments
 (0)