If you are using AI applications and installed software like InsightFace, XPose which you need to compile on your PC, you know that accurate CUDA and C++ tools is a nightmare. This post will help you to understand the fundamental concepts and fix your issues.
========
Patreon exclusive posts index to find our scripts easily, Patreon scripts updates history to see which updates arrived to which scripts and amazing Patreon special generative scripts list that you can use in any of your task.
Join discord to get help, chat, discuss and also tell me your discord username to get your special rank : SECourses Discord
Please also Star, Watch and Fork our Stable Diffusion & Generative AI GitHub repository and join our Reddit subreddit and follow me on LinkedIn (my real profile)
========
Now we are moving to Torch 2.8 and CUDA 12.9.1 for all GPUs starting from RTX 1000 series
We won't use CUDA 11.8, 12.4 or 12.8 anymore
In most cases if you installed these or not won't matter since I will try to compile myself and add compiled versions to installers i made
But if you want to compile on your system such as InsightFace, XPose etc it will matter
Also for using DeepSpeed library proper installation is still mandatory
Moreover, we will be moving to cuDNN 9.12.0 and TensorRT 10.13.2 GA
Install Visual Studio Build Tools first then Visual Studio Community Edition and then CUDA and then Python
We are moving to v14 latest
Official Page :
The one we use 17.14.13 :
You can uninstall all previous (Visual Studio Build Tools) and install this one if you are upgrading like me

Which checkboxes to check

This is needed as MSVC still some libraries requiring this
Visual Studio Community edition install link : https://visualstudio.microsoft.com/downloads/
Which checkboxes to check - Simply select all except Incredibuild - Build Acceleration
I am using Visual Studio 17.14.13

C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC
Find the latest folder named like 14.44.35207
And find this folder \bin\Hostx64\x64
So full path on my PC
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\bin\Hostx64\x64
Here screenshot

Then add that path to both Environment Variables into System Variables Path and User Variables Path
We duplicate everything both in system and user path don't forget
After click ok and close open a powershell (not cmd) and type below and see if working
cl
Screenshot of cl result

If you want to uninstall older versions here how

CUDA 12.9.1 download link for Windows 10 and Windows 11 :
Alternative Link on Hugging Face
Install selection as below

After installation restart PC
Then open a cmd and type nvcc --version and make sure you see as below

We are moving to cuDNN 9.12.0
There is 1 extra path you need to add here don't forget that
To download it use here https://developer.nvidia.com/cudnn-archive
Here direct backup on Hugging Face : https://huggingface.co/MonsterMMORPG/Wan_GGUF/resolve/main/cudnn_9.12_cuda_12.9.zip
We install as default
It is installed into here by default : C:\Program Files\NVIDIA\CUDNN
Therefore you have to manually add it into both Environment Variables into System Variables Path and User Variables Path
The folder you need to add to the paths is \bin\12.9 and main folder
e.g. C:\Program Files\NVIDIA\CUDNN\v9.12\bin\12.9
and C:\Program Files\NVIDIA\CUDNN\v9.12

Extra Path you have to add is CUDNN_PATH
Add it into System Variables directly like below
e.g. : Variable name : CUDNN_PATH
Value : C:\Program Files\NVIDIA\CUDNN\v9.12\bin\12.9

We are still using Python 3.10.11 as a default since this is the most widely supported and best working version
However, we will install other versions too because if necessary, my automatic installers will generate a VENV (virtual enviroment) with that specific Python version and use it automatically
Don't forget to install as in tutorial video directly into C drive with Python Launcher and don't forget to make Python 3.10.11 added to Environment Variables into System Variables Path and User Variables Path and set as top - check path variables screenshots at the very bottom of the post
3.10.11: https://www.python.org/downloads/release/python-31011/
3.11.9 : https://www.python.org/downloads/release/python-3119/
3.12.10 : https://www.python.org/downloads/release/python-31210/
3.13.17 (this is the worst one right now least supported) : https://www.python.org/downloads/release/python-3137/

https://github.com/BtbN/FFmpeg-Builds/releases
Use this specific version for now to not have any issues :
Extract exe files into C:\ffmpeg_latest
Add C:\ffmpeg_latest into your both Environment Variables into System Variables Path and User Variables Path
Then open a CMD and type ffmpeg and see like below

Download link : https://git-scm.com/downloads
Download and install just with next next next
After installing add these 2 folder into your both Environment Variables into System Variables Path and User Variables Path
C:\Program Files\Git\cmd
C:\Program Files\Git\bin
You must setup at least 100 GB virtual RAM on your fastest drive
Tutorial Windows 10 : https://www.windowscentral.com/how-change-virtual-memory-size-windows-10
Tutorial Windows 11 : https://www.windowscentral.com/software-apps/windows-11/how-to-manage-virtual-memory-on-windows-11
This is super important since when loading an AI model initially, virtual RAM may be used
In some cases TensorRT is necessary therefore we will also download and install it
Download link : https://developer.nvidia.com/tensorrt/download
It requires a free NVIDIA account
We are using TensorRT 10.13.2 GA
Alternative link on Hugging Face : https://huggingface.co/MonsterMMORPG/Wan_GGUF/resolve/main/TensorRT-10.13.2.6.Windows.win10.cuda-12.9.zip?download=true
Extract the zip file into C drive like C:\TensorRT_10_13_2_6 and enter inside \lib
You must see nvinfer_10.dll and such files
Now add this path C:\TensorRT_10_13_2_6\lib and this path C:\TensorRT_10_13_2_6 into your both Environment Variables into System Variables Path and User Variables Path

Full article here : https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#enable-long-paths-in-windows-10-version-1607-and-later
Reg file just download and run : Enable_Windows_Long_Paths.reg
Also install NodeJS 22.20 since some apps need it like Ostris
When installing install all as default / next no changes
Download link : https://nodejs.org/en/download
Direct link : https://nodejs.org/dist/v22.20.0/node-v22.20.0-x64.msi
If you get Triton related errors we need to delete the Triton cache folder
e.g. C:\Users\Furkan\.triton
So we clear whatever inside C:\Users\Furkan\.triton
I made a bat file for this so use this zip file, extract anywhere and double click and execute the bat file - don't run any of my bat files as administrators
Download clear cache zip file : Clear_Triton_Cache.zip
Updated 3 September 2025
Main Screen

User Variables

System Variables

Furkan Gözükara
2025-09-25 09:33:12 +0000 UTCMark Molesworth
2025-09-25 00:25:47 +0000 UTCFurkan Gözükara
2025-08-09 07:55:40 +0000 UTCAdriano Bregu
2025-08-08 21:33:16 +0000 UTCFurkan Gözükara
2025-07-10 22:03:10 +0000 UTClion king
2025-07-10 17:50:49 +0000 UTCFurkan Gözükara
2025-06-08 23:50:48 +0000 UTCKevin Merlos
2025-06-03 11:54:04 +0000 UTCkalayan rao
2025-05-09 08:15:57 +0000 UTCFurkan Gözükara
2025-03-29 11:55:34 +0000 UTCJürgen Mayr
2025-03-29 11:41:01 +0000 UTCFurkan Gözükara
2025-03-20 21:47:10 +0000 UTCJT Eberhard
2025-03-20 21:41:26 +0000 UTCStephen Murphy
2024-11-25 22:06:51 +0000 UTCFurkan Gözükara
2024-11-25 21:54:22 +0000 UTCStephen Murphy
2024-11-25 21:52:49 +0000 UTCFurkan Gözükara
2024-11-25 21:27:07 +0000 UTCStephen Murphy
2024-11-25 21:23:20 +0000 UTCFurkan Gözükara
2024-11-25 21:16:19 +0000 UTCStephen Murphy
2024-11-25 21:06:30 +0000 UTCFurkan Gözükara
2024-10-08 19:54:25 +0000 UTCtrsh3r
2024-10-08 19:49:48 +0000 UTCFurkan Gözükara
2024-10-03 21:15:19 +0000 UTCShepard4k
2024-10-02 18:12:08 +0000 UTCFurkan Gözükara
2024-09-17 03:16:02 +0000 UTCDavid
2024-09-17 03:05:50 +0000 UTC