stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

# Update 20250501

Open cjhScotland opened this issue 4 months ago • 2 comments

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

  • https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/16972

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 dev to clones the desired a branch directly --filter=blob:none save 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 pull after git switch dev

cd stable-diffusion-webui
git switch dev
git pull

if you're already on the dev branch then just git pull should work

after switching launch webui with COMMANDLINE_ARGS --reinstall-torch to tell it to reinstall PyTorch

also launch with --reinstall-xformers if you are using xFormers remember to remove --reinstall-torch --reinstall-xformers afterwards


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)

  1. Download sd.webui-1.10.1-blackwell.7z
  2. Extract using 7z

Windows 11 seems to have it added native 7z support

  1. Click run.bat to launch webui

~~note: do not enable --xformers, currently it is not compatible~~ xformers v0.0.29.post2 is released, see below for instructions

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 https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/16817 the dev branch have been update with auto detection of blackwell GPUs, when detected it will automatically install the appropriate PyTorch which version
  1. Follow the guide on how to switch branches see wiki How to switch to different versions of WebUI

instead of the release_candidate in the example substituted with dev to switch to dev branch

  1. Add --reinstall-torch to COMMANDLINE_ARGS to tell webui to reinstall PyTorch
  2. Launch webui

remember to remove--reinstall-torch from COMMANDLINE_ARGS after 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.post2
the 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.bat

note: 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-xformers after it's done

Originally posted by @w-e-w in https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/16818

cjhScotland avatar Aug 26 '25 18:08 cjhScotland

Hi, I have tried to install AutomaticIIII following the instructions in Windows Method 1. I have an Nvidia RTX 5080 and so followed the instructions and ran swich-branch-toole.bat with option 3, dev.

Q. I ran the switch-branch-toole.bat file AFTER update.bat. Is this correct?

run.bat aappeared to run correctly and displayed the UI at the end. However, when I click 'Generate' two grey buttons appear then immediately disappear. No image is created.

can someone please help me. Screendumps of the CMD screens follow (on a subsequent run of run.bat). Windows is up to date and I have downloaded the latest Nvidia drivers.

THanks (hopefully!) in advance

Chris

Image Image Image Image

cjhScotland avatar Aug 26 '25 18:08 cjhScotland

I followed this video and it worked for me

https://youtu.be/gVQD2OqX0ZU

pocketpoetry avatar Sep 12 '25 07:09 pocketpoetry