Update June 2026: Fix Cuda Error Nvidia 50 Series ForgeUI (Patreon)
Content
Hey there, Friends! 🔧Having trouble getting Forge UI up and running for your Stable Diffusion setup? No worries—I’ve got your back! Below are all the links and commands you need to get it fixed and running smooth like butter. 🍞⚙️
💛 Supporter Perk (Paying Supporters Only)I wrote a software for you. super easy installer for RTX 5090 / CUDA 12.8 and older GPU's that does everything, Can install Forge, ComfyUI, Fooocus, AIToolkit... Currently Windows Only:https://www.patreon.com/posts/ltx-2-3-is-here-152723801
You can find the Video here:https://www.youtube.com/watch?v=PtGgjdw5koA
🔗 1) Download Python 3.10.x (64-bit)Forge UI plays best with Python 3.10.11. Grab it from the official site:https://www.python.org/downloads/release/python-31011/
During install: check “Install launcher for all users” and “Add python.exe to PATH”.
🐍 List all Python versions you havepy -0p
✅ Confirm Python 3.10 is availablepy -3.10 -V
🔗 2) Get Git (if you haven’t already)https://git-scm.com/
🧪 Check Gitgit --version
📦 3) Clone the Forge UI Repository(Choose a folder first, e.g. E:\AI)git clone https://github.com/lllyasviel/stable-diffusion-webui-forge.git
cd stable-diffusion-webui-forge
🧰 4) Create and Activate a fresh Python 3.10 venvpy -3.10 -m venv venvvenv\Scripts\activatepython -m pip install --upgrade pip "setuptools<82" wheel
⚡ 5) Install PyTorch for CUDA 12.8 (cu128)install cuda 12.8python -m pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128 --extra-index-url https://pypi.org/simple
🔎 Quick CUDA check (you want “CUDA avail: True”)python -c "import sys, torch; print('Torch', torch.version, 'CUDA', getattr(torch.version,'cuda',None), 'CUDA avail:', torch.cuda.is_available()); sys.exit(0 if torch.cuda.is_available() else 1)"
🕵️6) Constraints file — the part that makes everything stick
echo setuptools^<82> pip-constraints.txt echo numpy==1.26.2>> pip-constraints.txt echo pydantic==2.8.2>> pip-constraints.txt echo pydantic-core==2.20.1>> pip-constraints.txt echo albumentations^<2>> pip-constraints.txt set "PIP_CONSTRAINT=%CD%\pip-constraints.txt"
🏃➡️7) Run Forge's setup with --exit
python launch.py --exit
should look like this:
📌 8) Pin Python & Torch behavior in webui-user.batCreate a file named: webui-user.bat in the Forge folder with this content:
@echo offcd /d "%~dp0"set "PYTHON=%~dp0venv\Scripts\python.exe"set "VENV_DIR=venv"set "TORCH_COMMAND=pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128 --extra-index-url https://pypi.org/simple"> "%~dp0pip-constraints.txt" echo setuptools^<82>> "%~dp0pip-constraints.txt" echo numpy==1.26.2>> "%~dp0pip-constraints.txt" echo pydantic==2.8.2>> "%~dp0pip-constraints.txt" echo pydantic-core==2.20.1>> "%~dp0pip-constraints.txt" echo albumentations^<2set "PIP_CONSTRAINT=%~dp0pip-constraints.txt"set "COMMANDLINE_ARGS="call webui.bat
🚀 9) First Run - double clickwebui-user.bat
Default URL:
🧯 Troubleshooting• INCOMPATIBLE PYTHON VERSION (shows 3.13.x):rmdir /s /q venvpy -3.10 -m venv venvvenv\Scripts\activate
• Torch installed but CUDA not available (CUDA avail: False):Make sure you used the cu128 index. If stable fails, use the nightly cu128 line above.
• Windows CMD error “and was unexpected at this time.”That’s a batch parser quirk. Use the plain commands above as written (no fancy blocks), or grab my one-click installer if you’re a supporter.
💥 That’s it! You’re now set up and ready to roll with Forge UI on your local machine.If this helped, drop a like—or join as a supporter to get the one-click installer & extras. 🎬🖼️
Stay creative and break things (in a good way)! 👨💻💡— Chris