-
Notifications
You must be signed in to change notification settings - Fork 29.5k
Description
Update 20250501
Official PyTorch 2.7.0 wheels with Blackwell 50 series support and xFormers have been released
Pull Request have been merged into dev branch
Updated instructions on how to install for 50 series (also work for non 50 series)
For casual windows users
follow the instructions of Install-and-Run-on-NVidia-GPUs#windows-method-1
the newly updated sd.webui.zip includes a new switch-branch-toole.bat that can simplify switching branch
use switch-branch-toole.bat to switch to dev branch
Advance users
For new install clone the webui branch dev
git clone --filter=blob:none -b dev https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
-b devto clones the desired a branch directly
--filter=blob:nonesave around 30MB of disk space
or if you prefer you can do it in separate steps
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui
git switch dev
For existing installations you can switch to dev branch without re-cloneing
may have to run
git pullaftergit switch dev
cd stable-diffusion-webui
git switch dev
git pull
if you're already on the
devbranch then justgit pullshould work
after switching launch webui with COMMANDLINE_ARGS --reinstall-torch to tell it to reinstall PyTorch
also launch with
--reinstall-xformersif you are usingxFormers
remember to remove--reinstall-torch--reinstall-xformersafterwards
revelant wiki How-to-switch-to-different-versions-of-WebUI
Outdated info
As PyTorch have not yet released a compatible builds for Blackwell GPUs
we have been allowed to publish Early Access PyTorch wheels by Nvidia
There are several methods to run on Blackwell 50XX GPUs
Method 1: use the a new standalone release
Recommended for new install or for those not familiar with terminals / commands)
we have prepared a standalone release for Windows which can be downloaded here sd.webui-1.10.1-blackwell.7z (1.8GB)
- Download sd.webui-1.10.1-blackwell.7z
- Extract using 7z
Windows 11 seems to have it added native 7z support
- Click
run.batto launch webui
note: do not enable xformers v0.0.29.post2 is released, see below for instructions--xformers, currently it is not compatible
Method 2: use the latest dev branch
Recommended for those who are migrating from existing installation and for those who are familiar with commands and terminals
- As of Blackwell compatibility (Windows only) #16817 the dev branch have been update with auto detection of blackwell GPUs, when detected it will automatically install the appropriate PyTorch which version
- Follow the guide on how to switch branches see wiki How to switch to different versions of WebUI
instead of the
release_candidatein the example substituted withdevto switch to dev branch
- Add
--reinstall-torchtoCOMMANDLINE_ARGSto tell webui to reinstall PyTorch - Launch webui
remember to remove
--reinstall-torchfromCOMMANDLINE_ARGSafter it's done reinstalling PyTorch
Method 3: manual upgrade
Meant for developers
The PyTorch wheels are provided at https://huggingface.co/w-e-w/torch-2.6.0-cu128.nv
This should be all the info you need
xformers (may not work)
to use xformers
you need you need to set the environment variable XFORMERS_PACKAGE to xformers==0.0.29.post2
on windows this can be done by adding the following line to to webui-user.bat before call webui.bat
set XFORMERS_PACKAGE=xformers==0.0.29.post2the webui-user.bat should look like something this (click to expand)
@echo off
set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--xformers
set XFORMERS_PACKAGE=xformers==0.0.29.post2
call webui.batnote: if you have previously used --xformers then you will need to add --reinstall-xformers to tell webui to reinstall xformers
similer to
--reinstall-torch, remeber to remove--reinstall-xformersafter it's done