Skip to content

# Update 20250501 #17112

@cjhScotland

Description

@cjhScotland

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 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

  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 #16818

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions