Giter VIP home page Giter VIP logo

Comments (12)

ShinkoNet avatar ShinkoNet commented on August 10, 2024

There's this writeup/tutorial here to use windows binaries of these libraries without resorting to WSL:
https://gist.github.com/geocine/e51fcc8511c91e4e3b257a0ebee938d0
maybe something similar can be done for this extension?

from sd_dreambooth_extension.

d8ahazard avatar d8ahazard commented on August 10, 2024

There's this writeup/tutorial here to use windows binaries of these libraries without resorting to WSL: https://gist.github.com/geocine/e51fcc8511c91e4e3b257a0ebee938d0 maybe something similar can be done for this extension?

Yes, theoretically, this wouldn't be too hard to schlep into the install.py script with a check for the OS. I'll see what time I have to tinker with this today. I don't particularly need 8bit adam, but happy to include it for those that want it.

from sd_dreambooth_extension.

d8ahazard avatar d8ahazard commented on August 10, 2024

I've now added a bit to the installer that checks if running on windows, and if so, checks for the .dll file specified in the gist. If they're not found, they will be copied to venv, similar to the other script.

159a336

from sd_dreambooth_extension.

ShinkoNet avatar ShinkoNet commented on August 10, 2024

ok. I'll test this. Last time I did this manually and it couldn't import cudasetup in the cextensions py though.
I'll have to test tomorrow though since it's 2am here

from sd_dreambooth_extension.

sgsdxzy avatar sgsdxzy commented on August 10, 2024

I think the dlls only work for pytorch+cu116, and by default you will get pytorch+cu113 when installing webui. Manual upgrading might be required.
I am looking for a way to compile these dlls, but I know nothing about Windows, or marchine learning pipelines or tools in the first place. Can we check if these dlls are safe?

from sd_dreambooth_extension.

d8ahazard avatar d8ahazard commented on August 10, 2024

I think the dlls only work for pytorch+cu116, and by default you will get pytorch+cu113 when installing webui. Manual upgrading might be required. I am looking for a way to compile these dlls, but I know nothing about Windows, or marchine learning pipelines or tools in the first place. Can we check if these dlls are safe?

I can force it to install specific version of pytorch with the extension - we just need to confirm that updating to cu116 won't break anything else.

from sd_dreambooth_extension.

sgsdxzy avatar sgsdxzy commented on August 10, 2024

I think the dlls only work for pytorch+cu116, and by default you will get pytorch+cu113 when installing webui. Manual upgrading might be required. I am looking for a way to compile these dlls, but I know nothing about Windows, or marchine learning pipelines or tools in the first place. Can we check if these dlls are safe?

I can force it to install specific version of pytorch with the extension - we just need to confirm that updating to cu116 won't break anything else.

I did the upgrade and haven't notice anything broken. Further tests needed.

from sd_dreambooth_extension.

sgsdxzy avatar sgsdxzy commented on August 10, 2024

But it is still better if we can let the users compile their own versions of these dlls, for any cuda version they have installed.

from sd_dreambooth_extension.

d8ahazard avatar d8ahazard commented on August 10, 2024

But it is still better if we can let the users compile their own versions of these dlls, for any cuda version they have installed.

Well, the one used natively by SD is cu113, so I think I'd rather precompile and distribute as many versions as possible, then select based on the right CUDA toolkit. Building is probably going to take some backflips, which is why I'm not leaning that way.

from sd_dreambooth_extension.

d8ahazard avatar d8ahazard commented on August 10, 2024

I'm going to close this and link it up with #7, as they're the same issue.

from sd_dreambooth_extension.

swumagic avatar swumagic commented on August 10, 2024

Bitsandbytes was not supported windows before, but my method can support windows.(yuhuang)
1 open folder J:\StableDiffusion\sdwebui,Click the address bar of the folder and enter CMD
or WIN+R, CMD 。enter,cd /d J:\StableDiffusion\sdwebui
2 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes

3 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes-windows

4 J:\StableDiffusion\sdwebui\py310\python.exe -m pip install https://github.com/jllllll/bitsandbytes-windows-webui/releases/download/wheels/bitsandbytes-0.41.1-py3-none-win_amd64.whl

Replace your SD venv directory file(python.exe Folder) here(J:\StableDiffusion\sdwebui\py310)

from sd_dreambooth_extension.

swumagic avatar swumagic commented on August 10, 2024

OR you are Linux distribution (Ubuntu, MacOS, etc.)system ,AND CUDA Version: 11.X.

Bitsandbytes can support ubuntu.(yuhuang)
1 open folder J:\StableDiffusion\sdwebui,Click the address bar of the folder and enter CMD
or WIN+R, CMD 。enter,cd /d J:\StableDiffusion\sdwebui
2 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes

3 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes-windows

4 J:\StableDiffusion\sdwebui\py310\python.exe -m pip install https://github.com/TimDettmers/bitsandbytes/releases/download/0.41.0/bitsandbytes-0.41.0-py3-none-any.whl

Replace your SD venv directory file(python.exe Folder) here(J:\StableDiffusion\sdwebui\py310)

from sd_dreambooth_extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.