Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit eec2352

Browse files
committed
fix: revert tensorrt version windows
1 parent 32e2eec commit eec2352

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

cpp/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ endif
2424
# Build the Cortex engine
2525
build:
2626
ifeq ($(OS),Windows_NT)
27-
@powershell -Command "cd ..; python .\scripts\build_wheel.py -a '80-real;86-real;89-real' --trt_root 'C:\workspace\TensorRT-10.1.0.27\' -D \"CMAKE_CUDA_COMPILER='C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.4/bin/nvcc.exe'\" -D 'BUILD_CORTEX_TENSORRT-LLM=ON' --use_ccache"
28-
@powershell -Command "cd build; cmake .. -DCMAKE_CUDA_ARCHITECTURES='80-real;86-real;89-real' -DTRT_LIB_DIR='C:/workspace/TensorRT-10.1.0.27/lib' -DTRT_INCLUDE_DIR='C:/workspace/TensorRT-10.1.0.27/include' -DBUILD_CORTEX_TENSORRT-LLM=ON -DCMAKE_CUDA_COMPILER='C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.4/bin/nvcc.exe' -DENABLE_MULTI_DEVICE=0 -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache -G Ninja; cmake --build . --parallel 2 --config Release"
27+
@powershell -Command "cd ..; python .\scripts\build_wheel.py -a '80-real;86-real;89-real' --trt_root 'C:\workspace\TensorRT-10.0.1.6\' -D \"CMAKE_CUDA_COMPILER='C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.4/bin/nvcc.exe'\" -D 'BUILD_CORTEX_TENSORRT-LLM=ON' --use_ccache"
28+
@powershell -Command "cd build; cmake .. -DCMAKE_CUDA_ARCHITECTURES='80-real;86-real;89-real' -DTRT_LIB_DIR='C:/workspace/TensorRT-10.0.1.6/lib' -DTRT_INCLUDE_DIR='C:/workspace/TensorRT-10.0.1.6/include' -DBUILD_CORTEX_TENSORRT-LLM=ON -DCMAKE_CUDA_COMPILER='C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.4/bin/nvcc.exe' -DENABLE_MULTI_DEVICE=0 -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache -G Ninja; cmake --build . --parallel 2 --config Release"
2929
else
3030
@cd .. && python3 ./scripts/build_wheel.py --trt_root /usr/local/tensorrt --cuda_architectures "80-real;86-real;89-real" --extra-cmake-vars "BUILD_CORTEX_TENSORRT-LLM=ON" --use_ccache
3131
@cd build && cmake .. -DCMAKE_CUDA_ARCHITECTURES='80-real;86-real;89-real' -DTRT_LIB_DIR='/usr/local/tensorrt/lib' -DTRT_INCLUDE_DIR='/usr/local/tensorrt/include' -DBUILD_CORTEX_TENSORRT-LLM=ON -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache -G Ninja && cmake --build . --config Release;
@@ -35,7 +35,7 @@ endif
3535
pre-package:
3636
ifeq ($(OS),Windows_NT)
3737
@powershell -Command "cd tensorrt_llm\cortex.tensorrt-llm\; mkdir -p cortex.tensorrt-llm; cp ..\..\build\tensorrt_llm\cortex.tensorrt-llm\engine.dll cortex.tensorrt-llm\;"
38-
@powershell -Command "cd tensorrt_llm\cortex.tensorrt-llm\; cp -Force C:\workspace\TensorRT-10.1.0.27\lib\nvinfer_10.dll cortex.tensorrt-llm\;"
38+
@powershell -Command "cd tensorrt_llm\cortex.tensorrt-llm\; cp -Force C:\workspace\TensorRT-10.0.1.6\lib\nvinfer_10.dll cortex.tensorrt-llm\;"
3939
@powershell -Command "cd tensorrt_llm\cortex.tensorrt-llm\; cp -Force ..\..\build\tensorrt_llm\plugins\nvinfer_plugin_tensorrt_llm.dll cortex.tensorrt-llm\;"
4040
@powershell -Command "cd tensorrt_llm\cortex.tensorrt-llm\; cp -Force ..\..\build\tensorrt_llm\tensorrt_llm.dll cortex.tensorrt-llm\;"
4141
@powershell -Command "cd tensorrt_llm\cortex.tensorrt-llm\; cp -Force .\build_deps\_install\bin\zlib.dll cortex.tensorrt-llm\;"

docs/source/installation/build-from-source-windows.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This section is for advanced users. Skip this section if you plan to use the pre
1111
1. Install prerequisites listed in our [Installing on Windows](https://nvidia.github.io/TensorRT-LLM/installation/windows.html) document.
1212
2. Install [CMake](https://cmake.org/download/), version 3.27.7 is recommended, and select the option to add it to the system path.
1313
3. Download and install [Visual Studio 2022](https://visualstudio.microsoft.com/).
14-
4. Download and unzip [TensorRT 10.1.0.27](https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.1.0/zip/TensorRT-10.1.0.27.Windows10.win10.cuda-12.4.zip).
14+
4. Download and unzip [TensorRT 10.0.1.6](https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.0.1/zip/TensorRT-10.0.1.6.Windows10.win10.cuda-12.4.zip).
1515

1616
## Building a TensorRT-LLM Docker Image
1717

@@ -65,7 +65,7 @@ git submodule update --init --recursive
6565
2. Build TensorRT-LLM. This command generates `build\tensorrt_llm-*.whl`.
6666

6767
```bash
68-
python .\scripts\build_wheel.py -a "89-real" --trt_root C:\workspace\TensorRT-10.1.0.27\
68+
python .\scripts\build_wheel.py -a "89-real" --trt_root C:\workspace\TensorRT-10.0.1.6\
6969
```
7070

7171
3. Copy or move `build\tensorrt_llm-*.whl` into your mounted folder so it can be accessed on your host machine. If you intend to use the C++ runtime, you'll also need to gather various DLLs from the build into your mounted folder. For more information, refer to [C++ Runtime Usage](#c-runtime-usage).
@@ -103,7 +103,7 @@ python .\scripts\build_wheel.py -a "89-real" --trt_root C:\workspace\TensorRT-10
103103
104104
1. Install [CMake](https://cmake.org/download/), version 3.27.7 is recommended, and select the option to add it to the system path.
105105
2. Download and install [Visual Studio 2022](https://visualstudio.microsoft.com/). When prompted to select more Workloads, check **Desktop development with C++**.
106-
3. Download and unzip [TensorRT 10.1.0.27](https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.1.0/zip/TensorRT-10.1.0.27.Windows10.win10.cuda-12.4.zip). Move the folder to a location you can reference later, such as `%USERPROFILE%\inference\TensorRT`.
106+
3. Download and unzip [TensorRT 10.0.1.6](https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.0.1/zip/TensorRT-10.0.1.6.Windows10.win10.cuda-12.4.zip). Move the folder to a location you can reference later, such as `%USERPROFILE%\inference\TensorRT`.
107107
108108
1. Add the libraries for TensorRT to your system's `Path` environment variable. Your `Path` should include a line like this:
109109

docs/source/release-notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ All published functionality in the Release Notes has been fully tested and verif
88
## TensorRT-LLM Release 0.10.0
99

1010
### Announcements
11-
- TensorRT-LLM supports TensorRT 10.1.0 and NVIDIA NGC 24.03 containers.
11+
- TensorRT-LLM supports TensorRT 10.0.1 and NVIDIA NGC 24.03 containers.
1212

1313
### Key Features and Enhancements
1414
- The Python high level API
@@ -81,7 +81,7 @@ All published functionality in the Release Notes has been fully tested and verif
8181
### Infrastructure changes
8282
- Base Docker image for TensorRT-LLM is updated to `nvcr.io/nvidia/pytorch:24.03-py3`.
8383
- Base Docker image for TensorRT-LLM backend is updated to `nvcr.io/nvidia/tritonserver:24.03-py3`.
84-
- The dependent TensorRT version is updated to 10.1.0.
84+
- The dependent TensorRT version is updated to 10.0.1.
8585
- The dependent CUDA version is updated to 12.4.0.
8686
- The dependent PyTorch version is updated to 2.2.2.
8787

requirements-windows.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ h5py==3.10.0
1515
pywin32
1616
StrEnum
1717
sentencepiece>=0.1.99
18-
tensorrt==10.1.0
18+
tensorrt==10.0.1
1919
tokenizers>=0.14
2020
# Default torch is CPU-only on Windows, so need to specify a torch version with GPU support
2121
torch @ https://download.pytorch.org/whl/cu121/torch-2.2.0%2Bcu121-cp310-cp310-win_amd64.whl#sha256=8f54c647ee19c8b4c0aad158c73b83b2c06cb62351e9cfa981540ce7295a9015

windows/setup_build_env.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,21 @@ if (-not $skipVSBuildTools) {
4545
Write-Output "Skipping Visual Studio Build Tools installation"
4646
}
4747

48-
# Install TensorRT 10.1.0 for TensorRT-LLM
48+
# Install TensorRT 10.0.1 for TensorRT-LLM
4949
if (-not $skipTRT) {
5050
Write-Output "Downloading TensorRT"
51-
Invoke-WebRequest -Uri 'https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.1.0/zip/TensorRT-10.1.0.27.Windows10.win10.cuda-12.4.zip' -OutFile 'TensorRT-10.1.0.27.zip'
51+
Invoke-WebRequest -Uri 'https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.0.1/zip/TensorRT-10.0.1.6.Windows10.win10.cuda-12.4.zip' -OutFile 'TensorRT-10.0.1.6.zip'
5252
Write-Output "Extracting TensorRT"
5353
# Get path
5454
$absolutePath = Resolve-Path $TRTPath
55-
Expand-Archive -Path '.\TensorRT-10.1.0.27.zip' -DestinationPath $absolutePath
55+
Expand-Archive -Path '.\TensorRT-10.0.1.6.zip' -DestinationPath $absolutePath
5656
Write-Output "Removing TensorRT zip"
57-
Remove-Item -Path 'TensorRT-10.1.0.27.zip' -Force
57+
Remove-Item -Path 'TensorRT-10.0.1.6.zip' -Force
5858
Write-Output "Adding TensorRT to system Path"
59-
[Environment]::SetEnvironmentVariable('Path', "$env:Path;$absolutePath\TensorRT-10.1.0.27\lib", [EnvironmentVariableTarget]::Machine)
59+
[Environment]::SetEnvironmentVariable('Path', "$env:Path;$absolutePath\TensorRT-10.0.1.6\lib", [EnvironmentVariableTarget]::Machine)
6060
Write-Output "Installing TensorRT Python wheel"
61-
python3 -m pip install $absolutePath\TensorRT-10.1.0.27\python\tensorrt-10.1.0-cp310-none-win_amd64.whl
62-
Write-Output "Done TensorRT installation at '$absolutePath\TensorRT-10.1.0.27'"
61+
python3 -m pip install $absolutePath\TensorRT-10.0.1.6\python\tensorrt-10.0.1-cp310-none-win_amd64.whl
62+
Write-Output "Done TensorRT installation at '$absolutePath\TensorRT-10.0.1.6'"
6363
} else {
6464
Write-Output "Skipping TensorRT installation"
6565
}

windows/setup_env.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ if (-not ($skipTRT)) {
176176
Write-Output "Grabbing TensorRT..."
177177
$ProgressPreference = 'SilentlyContinue'
178178
New-Item -Path .\TensorRT -ItemType Directory
179-
Invoke-WebRequest -Uri 'https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.1.0/zip/TensorRT-10.1.0.27.Windows10.win10.cuda-12.4.zip' -OutFile .\TensorRT\trt.zip
179+
Invoke-WebRequest -Uri 'https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/10.0.1/zip/TensorRT-10.0.1.6.Windows10.win10.cuda-12.4.zip' -OutFile .\TensorRT\trt.zip
180180
Expand-Archive -Path .\TensorRT\trt.zip -DestinationPath .\TensorRT\
181181
Remove-Item -Path .\TensorRT\trt.zip -Force
182-
$trtPath = Join-Path $TRT_BASE TensorRT-10.1.0.27
182+
$trtPath = Join-Path $TRT_BASE TensorRT-10.0.1.6
183183
Write-Output "TensorRT installed at ${trtPath}"
184184

185185
$trtSubPaths = @{

0 commit comments

Comments
 (0)