March 2024 - Stable Diffusion with AMD on windows -- use zluda ;)

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 2024
  • SD is so much better now using Zluda!
    Here is how to run automatic1111 with zluda on windows, and get all the features you were missing before!
    ** Only GPU's that are fully supported or partially supported with ROCm can run this, check if yours is fully or partially supported before starting! **
    check if your gpu is fully supported on windows here:
    rocm.docs.amd....
    Links to files and things:
    Git for windows: gitforwindows....
    Python: www.python.org...
    Zluda: github.com/lsh...
    AMD HIP SDK: rocm.docs.amd....
    Add PATH for HIP SDK and wherever you copies Zluda files to
    %HIP_PATH%bin
    C:\path\to\zluda\folder
    Start Automatic 1111 webui
    webui.bat
    copy zluda cublas and cusparse to
    ...\stable-diffusion-webui-directml\venv\Lib\site-packages\torch\lib
    delete cublas64_11 and cusparse64_11
    rename zluda files
    cublas.dll to cublas64_11.dll
    cusparse to cusparse64_11.dll
    back in terminal run webui
    webui.bat --use-zluda
    If you have issues with cudnn
    ...\stable-diffusion-webui-directml\modules\shared_init.py
    Add this after def initialize
    torch.backends.cudnn.enabled = False
    If you have a GPU that is not fully supported in hip SDK follow these instructions
    github.com/vla...

ความคิดเห็น • 737

  • @taffyware1059
    @taffyware1059 6 หลายเดือนก่อน +29

    Performance better, worse or equal to Linux ROCm?

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน +19

      about 20% - 25% worse than ROCm on linux I would say...but has all the normal features of automatic without any ONNX or Olive stuff that were very irritating.

    • @taffyware1059
      @taffyware1059 6 หลายเดือนก่อน +1

      @@FE-Engineer ​ Ig its better than having to the all the optimization stuff over and over again, also likely a lot less space is consumed compared to duel booting linux

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน +2

      Yes. If you hate the idea of dual booting Linux. Or have other reasons why Linux ROCm is not an option. This is a reasonable work around.

    • @ml-qq5ek
      @ml-qq5ek 6 หลายเดือนก่อน +9

      ​@@FE-EngineerI am only getting 1-2it/s on 6900xt with zluda. What is wrong

    • @HamguyBacon
      @HamguyBacon 6 หลายเดือนก่อน +2

      @@FE-Engineer I used ventoy to run linux and i don't see where people say its easier to install and use, i had a hard time trying to get SD to even run.

  • @swietypiotrprzykurwiciel6488
    @swietypiotrprzykurwiciel6488 6 หลายเดือนก่อน +20

    I just bought a new card and once again I am back to your tutorials. Your videos helped me before, your tutorials are extremely up to date and easy to follow. Thanks man, you're doing a great job here!

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน +2

      Whahoo! Glad it worked and went smoothly! :). Thanks for watching!

  • @FormalPluto
    @FormalPluto 6 หลายเดือนก่อน +18

    Very nice tutorial. I've moved onto the NVidia side, but your tutorials were extremely helpful with setting up SD with Olive when I was still using my RX 7800XT.
    Thank you for making it easier for AMD users stuck in windows who are curious about trying SD.

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน +2

      Thank you :)

    • @matthewfuller9760
      @matthewfuller9760 5 หลายเดือนก่อน +1

      are you seeing better performance when considering price? This is skewed by location of course and the used gpu market. I guess windows is easier. But wont you get better performance with linux?

    • @f1amezof
      @f1amezof 5 หลายเดือนก่อน +1

      Very nice, because it doesn’t work?

    • @FE-Engineer
      @FE-Engineer  5 หลายเดือนก่อน +2

      This goes back and forth. About a year ago price / performance was on the side of amd mostly but due to continued improvements now nvidia likely has an edge if you can get a good price for like a 3080 or even maybe a 4070 super.
      With AMD. Yes. Linux will give you better performance 99% of the time because full ROCm.

  • @shefu689
    @shefu689 6 หลายเดือนก่อน +5

    THANKS A LOT MATE! This is so awesome. I have played with directML and its settings before like hell. My command webui-user.bat argument lines were almost one A4 page.
    i noticed that you need to restart your PC to get new PATH directions to work on WIN11. Without restart you end up getting "failed to load zluda path automatically" and "use skip-cuda-torch-test" info. Also first install will download cublas64_12 and cusparse64_12 instead of 64_11 without using --use-zluda argument with user.bat.Idk why.
    My 6750XT results:
    1.
    1.5 SD models: txt2img 1024x1024: 3.75s/it /average and 1:05min generation time.
    SDXL models: txt2img 1024x1024: 3.50s/it average and 1:10 minutes.
    NOTE: without zluda this was impossible task because instant memory error. and SDXL models generated over 2 minutes with 512x512 resolution.
    2. Memoryusage is now calibrated. With zluda SD using only 10.2gb/12Gb memory and it will free up memory after generation. 15min 1024x1024 -> 2048 upscaling did not encounter memory error. With directML you cant use more than 1.5x upscale and controlnet. No you dont need a control net with zluda. This is awesome.
    3. ControlNet works just fine
    4. Ultimate Upscaler works normally
    5. Inpaint works normally
    AMD pro drivers are slight faster than adrealine version. There is sligh 5-15s delay with adrealine when press "generate" and no delay with ProDrivers. IDK what cause this.

    • @SanyaWoFloride-k5u
      @SanyaWoFloride-k5u หลายเดือนก่อน +2

      How it worked for you.. i've got
      Cannot read C:\Program Files\AMD\ROCm\6.1\bin\/rocblas/library/TensileLibrary.dat: No such file or directory for GPU arch : gfx1031
      rx6700xt, with no working workaround on that shlt

    • @МишаЛысенко-я3ю
      @МишаЛысенко-я3ю หลายเดือนก่อน

      @@SanyaWoFloride-k5u you need ROCm 5.7.1 and change files in \ROCM\5.7\

  • @matthew78917
    @matthew78917 หลายเดือนก่อน +2

    I “sidegraded” from an RTX 3070 to an RX 6800. Mainly did it because I wanted that extra VRAM and I found a really good deal. Thank you for this tutorial! Very well put together

    • @CapaUno1322
      @CapaUno1322 26 วันที่ผ่านมา

      Me too, just found a bargain rx6800, this is my best ever card and apart from the bells and whistles this card punches well above it's weight....

  • @LeshaKhaletskiy
    @LeshaKhaletskiy 3 หลายเดือนก่อน +1

    You are the only person who have workable SD XL AMD guide , also whole other stuff like torch, torch-cu, tensor work well, and this rare

  • @horrid8024
    @horrid8024 6 หลายเดือนก่อน +6

    OMG! Thank you so much for this one! I tried for so long to get this running... All the text tutorials were just too complicated.

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน

      You are welcome! I’m glad it helped. Thanks for watching!

  • @jakkard5026
    @jakkard5026 8 วันที่ผ่านมา +1

    Works beautifully, thanks man!

  • @TrackmaniaKaiser
    @TrackmaniaKaiser 3 หลายเดือนก่อน +1

    Thaaanks a lot for your video! After I spend about 24h bricking everything I finally stumbled across your channel! You helped me get my SD to run so much better than before! I'am looking forwared to your next video with some more SD otpmizations for windows users :)
    Up to that point? Is there a paypal or something where I can buy you a coffee? You safed me from insanity!

  • @jinxPad
    @jinxPad 6 หลายเดือนก่อน +9

    great stuff! Great tutorial as always, thank you.

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน +1

      Thank you so much for watching :)

  • @koxu857
    @koxu857 6 หลายเดือนก่อน +5

    can't even imagine how tough was that to work it out. Thanks!

  • @MathieuCruzel
    @MathieuCruzel 6 หลายเดือนก่อน +6

    Thanks a lot for the tutorial. I could not for the life of me get it to work on Fedora and finally this works really well. I moved from a RTX 2060 to anew 7900XT recently and I was getting 1.5x 2x performance on Comfyui but with this I get at last x5 x6 speed when generating with XL Models.

    • @CapaUno1322
      @CapaUno1322 หลายเดือนก่อน

      Hi there, I'm looking at a rx6800 and so just to ask you're quite satisfied with the performance and capabilities of your 7900XT as opposed to the 2060? I have an rx5700 which I am really happy with though for the AI I need more Vram....

    • @MathieuCruzel
      @MathieuCruzel หลายเดือนก่อน

      @@CapaUno1322 yes definitively. With the 20G of Vram I can run 7B params local AI in Vram with LM Studio and for ComfyUi it's night and day but moving from a 5700XT to a 6800XT I'm not sure the difference will be as big as the gap between a 2060 and a 7900XT. That's a 2 or 3 generation gap for me.

  • @krizo96
    @krizo96 6 หลายเดือนก่อน +12

    You're a blessing upon this world.

  • @Klaster_1
    @Klaster_1 5 หลายเดือนก่อน +2

    Thank you for the video, took me a while to figure it out, but I finally managed to get a decent generation improvement on my setup - to about 11 it/s in SD1.5 on 7900XTX. If others read this, try out the "--use-zluda" flag in stable-diffusion-webui-directml and SD.next do the patching for you and install the correct torch version - much easier this way.

    • @matthewfuller9760
      @matthewfuller9760 5 หลายเดือนก่อน

      how does that figure translate to time? I am guessing around an image every 5 or 10 seconds at lowish resolution?

    • @Klaster_1
      @Klaster_1 5 หลายเดือนก่อน

      @@matthewfuller9760 you multiply the it/s to the iteration count. That gives 2s for 20it of SD1.5 512x512 or 12s for SDXL base at 25 its 1024x1024. More if you swap models, i.e. if you run an SDXL refiner, but AFAIK that mostly depends on your SSD speed.

    • @erwins_arm
      @erwins_arm 5 หลายเดือนก่อน +2

      how do i install the correct torch version and get it installed into the right folder? complete newbie here and having issues

  • @OfficialJohnnyHartmann
    @OfficialJohnnyHartmann 4 หลายเดือนก่อน

    You are the best, sir. I have been struggling with getting my 7900 XTX to work with anything. Only one I got to work with Windows was Amuse, which is very lackluster, and it seems like it's dead at this point, and SD.Next with a workaround, which is not great. With the workaround it lacks the ability to run bigger batches, upscaling, inpainting, the pics look choppy, and a lot more. Not great, tbh. And with Linux, that was just a mess. Most wont open, and the few that works will only work of my cpu.
    But with your help, I can finally generate pictures with all the features.
    All hail the king!

  • @jk-ze2bo
    @jk-ze2bo 5 หลายเดือนก่อน

    This was a lifesaver! Fiddled 2 days to get Olive ONNX etc working at at least useable level, and after installing zluda using this tutorial (almost) all works out of box without constant tinkering.
    Inpaint sketch does not work proper (renders whole image instead mask area) but it is prob -directml fork issue

    • @FE-Engineer
      @FE-Engineer  5 หลายเดือนก่อน +2

      Overall if users don’t want to go Linux and for real rocm. And until complete rocm is on windows. I think zluda is an excellent compromise that still provides tons of functionality for folks in windows. Thanks for watching!

  • @Gawdzend
    @Gawdzend 6 หลายเดือนก่อน +1

    I started with one of your other videos, but this one got me officially up and running (on a 6600XT). Much appreciated!

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน

      Glad it helped and worked without issue (hopefully). :) thank you for watching!

    • @White-yz4kw
      @White-yz4kw 6 หลายเดือนก่อน +1

      What is the generation rate of it/s with zluda? Is the generation faster than with directml? Interested to know before installing, I have a rx6600.

    • @Torva01
      @Torva01 6 หลายเดือนก่อน

      ​@@White-yz4kwsame doubt

    • @ottomanherox
      @ottomanherox 6 หลายเดือนก่อน +2

      @@Torva01 sounds like if you've ❌ on HIP SDK it's about 3 times slower than Linux ROCM, atleast according to one test with 6700 XT.
      Safe to say it'd be memory efficient regardless and I'm tempted to try on 6700 but I've to check if it's useful for something else like DLSS maybe because that speed gain is not worth it alone.

    • @matthewfuller9760
      @matthewfuller9760 5 หลายเดือนก่อน

      same gpu. is it too slow to use with expectations of say an image every 1 or 2 minutes?

  • @bernardy91
    @bernardy91 6 หลายเดือนก่อน +1

    Finally, after days of trying, i found your video...really good explanation, and i was finally able to make it run

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน

      I’m glad it helped! :) thank you for watching!

  • @jimmyjupanu
    @jimmyjupanu 6 หลายเดือนก่อน +5

    How to uninstall torch-2.2.0+cu121 and install torch-2.2.0+cu112 , i think that is my problem because when i run sd i run with cpu

  • @CapaUno1322
    @CapaUno1322 หลายเดือนก่อน +2

    I just got a bargain rx6800 as I heard that you can do the AI stuff without mortguaging your house to Nvidia, and rx6800 is only 20% slower than an rtx3090 and a new one is half the price of a used 3090 so eh, so here I am trying to get it to work....thanks for your videos....good work! ;D

    • @koltendavis969
      @koltendavis969 23 วันที่ผ่านมา +1

      Did you get this to work with the latest SD Direct ML? This tutorial as is is too old and I am getting errors.

  • @PSYCHOPATHiO
    @PSYCHOPATHiO 6 หลายเดือนก่อน +2

    Excuse my language... HOLY SHIT, This is good. I gave up on Windows & been on Linux for a while but now after testing ths on Windows... oooh i love u. I can finally utilize my 7900 XT to its potential. Thank you for the easy tutorial

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน

      I know right? It’s sooooo good! While it isn’t perfect. And I still want full rocm on windows. This is in my opinion a very reasonable not quite full rocm alternative finally!

    • @PSYCHOPATHiO
      @PSYCHOPATHiO 6 หลายเดือนก่อน

      Having to juggle between windows for gaming and Linux for AI was frustrating, but this just so fast, even more than when I was on Linux. Thanx for the work, as I'm sure I'm saying on behalf of the whole AMD community :)

  • @darthilli
    @darthilli 5 หลายเดือนก่อน +8

    [WinError 126] The specified module could not be found. Error loading "C:\Users\___\ZLUDA\stable-diffusion-webui-directml\venv\lib\site-packages\torch\lib\cublas64_11.dll" or one of its dependencies. please help

    • @sujimayne
      @sujimayne 4 หลายเดือนก่อน

      Just FYI, you can use a Windows variable %userprofile% to provide an actual full ksth that can be zsed in Windows without exposing your username.

    • @silvermoonk9121
      @silvermoonk9121 3 หลายเดือนก่อน

      Make sure u copied the 2 files he mentioned and renamed them correctly.

    • @darthilli
      @darthilli 12 วันที่ผ่านมา

      @@silvermoonk9121I worked it out, all good 😊

  • @MortisDG
    @MortisDG 5 หลายเดือนก่อน +1

    I was really getting frustrated with all that shit.. Thank you so much for this video! Finally I can use SD properly again 🙏

  • @darkenblade986
    @darkenblade986 6 หลายเดือนก่อน +2

    thanks you so much for this tutorial. this worked for me and i have an unsupported 6700xt. first time i got inpaints and sdxl working properly. you do a good job explaining things but the best is how u put the links to everything in the description. makes my life so much easier.

    • @Eminic112
      @Eminic112 6 หลายเดือนก่อน

      what's your performance like with the 6700xt im curious

    • @2ndGear
      @2ndGear 6 หลายเดือนก่อน

      My 6600 XT does 2/its it sucks. Shouldn't have cheaped out on a card lol.

    • @Jay-js6zr
      @Jay-js6zr 6 หลายเดือนก่อน +2

      I also have a 6700xt and am struggling to make it work, would you be able to share any issues you had while setting this up and how you overcame them please? :)

    • @darkenblade986
      @darkenblade986 4 หลายเดือนก่อน

      @@Eminic112 between 1 to 2 iters per sec it depends on the prompt. More tokens takes longer.

    • @darkenblade986
      @darkenblade986 4 หลายเดือนก่อน

      @@Jay-js6zr I just followed the guide. Wasn't to hard. Make sure you are following it to the letter.

  • @jokinbv5715
    @jokinbv5715 6 หลายเดือนก่อน +1

    Thank you so much.
    10 images at 1024x1536 (Hires fix from 512x768) 7900XT
    With previous directml: 16min
    Now with Zluda: 5min 30s

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน

      Whoah. That’s way better! Nice!

  • @terrestrialman
    @terrestrialman 6 หลายเดือนก่อน +2

    thank you so much, this was actually not too bad to set up!

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน

      Yea, it is not exactly straight forward, but it is not that bad either. Thank you for watching and the kind words :)

  • @lifekraft
    @lifekraft 4 หลายเดือนก่อน +1

    Ty so much for putting time and effort to help random people figure these things. Almost every single one of your recent video helped me navigate this new world of technology and i wouldnt even be able to try it without you. Ty infinitly

    • @FE-Engineer
      @FE-Engineer  4 หลายเดือนก่อน +1

      You are very welcome! I am glad they helped! Thank you for watching!

  • @RimZeime
    @RimZeime 6 หลายเดือนก่อน +2

    Got it running atlast all thanks to you!!

  • @andresalcaino7570
    @andresalcaino7570 6 หลายเดือนก่อน +1

    It work using a rx 7600 xt, thanks for this amazing tutorial, the only one that really worked for me. Like and sub.

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน

      You are very welcome! Thank you for watching!

  • @corneduplessis6337
    @corneduplessis6337 6 หลายเดือนก่อน +3

    I appreciate your content. Its so frustrating that it cant just work for AMD on windows like it does for Nvidia cards. Im hoping that'll change in the near future but for now I use my 3070 for SD and my 7800XT for gaming and I'm good with that

    • @featy2671
      @featy2671 6 หลายเดือนก่อน

      do u know how much it/s i should get with a rx 7800xt if i dont all right?

  • @fmenguy
    @fmenguy 6 หลายเดือนก่อน +1

    Thanks for your tutorials, they are really well explained.
    For others like me who have an old config:
    I tried, even though I knew very well that my gpu wasn't on the list. If you get this message: "rocBLAS error: Cannot read C:\Program Files\AMD\ROCm\5.7\bin\/rocblas/library/TensileLibrary.dat: No such file or directory for GPU" it's dead!

    • @tolly_HD
      @tolly_HD 6 หลายเดือนก่อน

      What exactly do you mean with its dead? I also get this error even tho I have an RX 7900 xtx which is most definitely completely supported

    • @daveroff4389
      @daveroff4389 2 หลายเดือนก่อน

      I knew my RX580 wasn't anywhere on the list, but it's 8GB VRAM, so I tried it anyway, and it works! Had to replace those library files (third option), put in a couple of ARGS in user.bat (--use-zluda and --no-half), but that got it working. Only issue is how long the image generation takes, which is like 10-15 minutes. I know it's running on the GPU instead of the CPU, because I can hear the GPU's fans working harder, but is there a good way to speed it up, without breaking it?

  • @konstabelpiksel182
    @konstabelpiksel182 6 หลายเดือนก่อน +2

    the last time i followed your comfyui + windows with directml guide, it worked like a charm for my rx6600 for sd15. wondered if this is any faster. got myself a 4070s now tho 😁

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน

      I believe this should be a decent bit faster than just directml -- if I am remembering correctly, this might be about double the performance of directml alone.

  • @MegaGranj
    @MegaGranj 6 หลายเดือนก่อน +2

    Great tutorial!
    P.S For my 7900XTX perfect argumatent for SDXL, with minimum crashes(one out of ~500 generations) for 1024x1024 is:
    set COMMANDLINE_ARGS=--use-zluda --disable-nan-check --no-half-vae
    set PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True,max_split_size_mb:512

    • @badis103
      @badis103 5 หลายเดือนก่อน

      👍👏

  • @jovabre
    @jovabre 6 หลายเดือนก่อน +3

    Excellent work. Thanks!!!

  • @darthilli
    @darthilli 5 หลายเดือนก่อน +1

    Okay, I finally got it working thank you so much, you’ve earned a sub

    • @FE-Engineer
      @FE-Engineer  5 หลายเดือนก่อน +1

      Glad it’s up and running! Thank you for watching! :)

    • @darthilli
      @darthilli 5 หลายเดือนก่อน

      @@FE-Engineerkeep up the good work, so much faster now 😌

  • @SvenKloevekorn
    @SvenKloevekorn 6 หลายเดือนก่อน +3

    Very nice work, thanks a lot!

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน

      You are welcome! Thanks for watching!

  • @Cessna-172
    @Cessna-172 6 หลายเดือนก่อน +1

    Such a tutorial has been waiting for a long time. Thank you so much for your service to the Amd community, which is so hated by the AI community

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน +2

      You are welcome. I’m glad finally on windows something with relatively decent performance that seems to not be seriously lacking in something.

  • @dididipradoul9132
    @dididipradoul9132 7 วันที่ผ่านมา +1

    works perfectly on 6800xt thx

  • @rtchannel8171
    @rtchannel8171 5 หลายเดือนก่อน +1

    Thank you, Work perfectly on my Rx6800 so fast. Amazing.

    • @FE-Engineer
      @FE-Engineer  5 หลายเดือนก่อน +1

      Fantastic! I’m glad to hear that. Thank you for watching :)

  • @danielitsfine9818
    @danielitsfine9818 5 หลายเดือนก่อน

    Thank you for this. Using onnx and olive was kind of great, getting faster it/s but not being able to use loras and converting models made it not that enjoyable, but it was still good to learn and practice with.

  • @LighthouseLeads
    @LighthouseLeads 6 หลายเดือนก่อน +3

    your the best. hope your family is all good

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน +1

      Thank you so much! Family is getting there. My son has a lot of medical issues. So long road there. But thank you for asking! :)

  • @TheSnow.
    @TheSnow. 4 หลายเดือนก่อน

    as a 7900 xtx owner i was getting so mad that i couldn't do any proper AI generation, bless you for your tutorials man. You are amazing, the true hero of AMD.
    but you should consider telling people about Compatibility with other models on the beginning of the video to be honest.

    • @FE-Engineer
      @FE-Engineer  4 หลายเดือนก่อน

      That’s fair. I will try to include something at the beginning about this.

  • @Sbill.
    @Sbill. 3 หลายเดือนก่อน

    Man, this is mind boggling. I've been running SD for over a year now with a 6700XT, and I've been kicking myself for picking AMD over NVIDIA on my last upgrade. This is a game changer. Even getting something like ~3.00it/s is so much faster than I was getting before. And I'm getting hi-res fix running, which I could barely do before. This is awesome!

    • @sei_asagiri
      @sei_asagiri 3 หลายเดือนก่อน

      how did you get it working on a 6700xt? HIP SDK is not compatible with the 6700xt (according to amd) and i get an error 215 every time i try to install it. Are you using CPU only or something else?

    • @Sbill.
      @Sbill. 3 หลายเดือนก่อน

      @@sei_asagiri I was able to get the SDK installation to complete. Then I replaced the library files with the alternate library files provided at the link at the bottom of the video description. If you're getting an error when installing the SDK, I'm not sure what the cause would be.

    • @sei_asagiri
      @sei_asagiri 3 หลายเดือนก่อน

      @@Sbill. I'm going to purchase a nvidia gpu to replace my amd gpu instead. amd feels like its only exclusively designed for linux people while nvidia is exclusively designed for windows people.

  • @bigdeutsch5588
    @bigdeutsch5588 5 หลายเดือนก่อน

    Finally one that worked. My iterations/ seconds increased about 500% in speed. Thank you!! I do have a question, does soft inpainting work with this implementation of SD? I have not had success running soft inpainting. Thanks

  • @sturmritter1
    @sturmritter1 3 หลายเดือนก่อน +1

    What version of PyTorch are you using? I saw 2.2.0 on the screen in passing, but is +cu also included? The reason I'm asking is that I'm getting SD to run fine, with gpu recognized, but when I attempt to load a model I get an error:
    20:14:51-079163 ERROR Diffusers failed loading:
    model=D:\stablediffusion\SDNext\automatic\models\Stable-diffusion\dreamshaper_8.safetensors
    pipeline=Autodetect/NoneType Building PyTorch extensions using ROCm and Windows is not
    supported.
    20:14:51-083150 ERROR loading
    model=D:\stablediffusion\SDNext\automatic\models\Stable-diffusion\dreamshaper_8.safetensors
    pipeline=Autodetect/NoneType: OSError
    ┌───────────────────────────────────────── Traceback (most recent call last)
    I'm currently using PyTorch 2.3.0+cu118 (I'm currently using the Vladmantic folk, but this also occurs on my ishggytiger fork as well.)

  • @auchucknorris
    @auchucknorris 5 หลายเดือนก่อน

    jsut got stable difusion installed, failed cuda test then you poped up, thanks heaps

  • @KalidrethBaelric-o1c
    @KalidrethBaelric-o1c หลายเดือนก่อน

    In case this helps anyone else... I ended up having to redo my installation. The second time I installed, I copied in AlbedoBase XL and used it for the first inference. I worked immediately without the 30 minutes of doing nothing that I got with the default model. Anyway, good luck out there everyone :)

  • @Whyidk
    @Whyidk 6 หลายเดือนก่อน +1

    this video is a blessing thank you!!

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน

      You are welcome :) thanks for watching!

  • @tippiebekfast
    @tippiebekfast 4 วันที่ผ่านมา +1

    i went from 14 seconds per iteration to 3 iterations per second on my 7800xt lol thanks

  • @alanreynolds4262
    @alanreynolds4262 3 หลายเดือนก่อน

    Thank you so much for this video. I was pulling out my hair trying to get this to work. Went through so many guides, but your worked!

  • @afilthyweeb8684
    @afilthyweeb8684 4 หลายเดือนก่อน

    Damn you were not lying about that first run. I ended up at nearly 30 minutes

  • @f1amezof
    @f1amezof 5 หลายเดือนก่อน +1

    RX 7900 XTX
    I followed step by step, but getting this error:
    “rocBLAS error: Cannot read C:\Program Files\AMD\ROCm\5.7\bin\/rocblas/library/TensileLibrary.dat: No such file or directory for GPU arch : gfx1036”

    • @FE-Engineer
      @FE-Engineer  5 หลายเดือนก่อน +1

      …its seeing your integrated GPU…
      Either disable it. Or put in hip visible devices = 1

    • @f1amezof
      @f1amezof 5 หลายเดือนก่อน +1

      @@FE-Engineer Hah, I guessed it before seing the actual answer (gfx1036 is not 7000 series), and it works now. But thank you anyway :)

    • @nenadm5747
      @nenadm5747 5 หลายเดือนก่อน

      ​@@FE-EngineerWhere to put that?

  • @hexxt_
    @hexxt_ หลายเดือนก่อน +1

    i love how he just forgets what hes doing in the middle of the video

  • @kingyizzus4108
    @kingyizzus4108 3 หลายเดือนก่อน +1

    Thank you very much for the detailed tutorial❤, but I have a little problem which is that the Karras type samplers do not appear. Any solution? 😢

  • @Mike-ss1ju
    @Mike-ss1ju 6 หลายเดือนก่อน

    Thank you so much for this. 7900xtx is finally worth it. I had to disable intigrated graphics in bios to get this to work. Excellent instructional video. This shit is crazy.

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน +3

      Ah yes. You could likely set it in windows variables I think it is hip gfx visible devices and then set it to 1 but it works disabling bios as well.

  • @jozopako
    @jozopako 4 หลายเดือนก่อน +1

    When installing with running user.bat file, it says error 1/2 no space left on device. I have 437GB free space.

  • @theknightowl2137
    @theknightowl2137 2 วันที่ผ่านมา

    Any ideas how to fix the "Failed to create model quickly; will retry using slow method" ?

  • @mike_purple
    @mike_purple 29 วันที่ผ่านมา

    Well, i just got this to work, but it seems the original source advanced so much, that this video is kinda outdated a bit. For example, i didnt need to replace and rename files, got no errors with my 7800xt.
    Speed is great, i bet its almost as fast as 3070ti i was using prior, but honestly i may be confusing things since i used that card like 8 months ago.
    Anyway, my biggest problem is that i started all of this to try and use ponyXL(v6), and its actually working! The thing is i cant get it to make high quality images, even im following some advices i read in the description or got from yt vids. It is, for some reason, producing pastel-drawn-like images, even though i'm pretty sure i set clipskip correctly to 2 and set vae to recommended one. Hope u have time to help me out on this, or, if i figure this out myself, i'll try to not forget to put my solution here as another comment.

  •  6 หลายเดือนก่อน +2

    Gracias , hasta ahora encuentro un tutorial funcional, funcionando con una RX6650XT . Saludos en español comprendo el ingles pero no tengo buena dicción. Gracias

  • @skinnyd_tk6795
    @skinnyd_tk6795 12 วันที่ผ่านมา

    if i try to open it, it just says "models failed to load"
    and when i try to run it as admin, i get the Error: "C:\User\Myname\Appdata\\Local\Programs\Python\Python310\python.exe can't open file 'C:\\Windows\\System32\\launch.py' :[Errno 2] no such file or directory
    what do i do guys? i tried running it that way as well:
    @echo off
    set PYTHON=C:\Users\Myname\AppData\Local\Programs\Python\Python310\python.exe
    set GIT=
    set VENV_DIR=
    set COMMANDLINE_ARGS=--disable-safe-unpickle

  • @ferluisch
    @ferluisch 2 หลายเดือนก่อน

    I'd be really cool to do a benchmark between an amd card using Zluda (or ROCm) vs nvidia using cuda

  • @randomrandom7724
    @randomrandom7724 3 หลายเดือนก่อน

    Best tutorial, this worked for me. Too bad the rx6800 doesn't have the "ai matrix" improvements the rdna3 have, so for
    that same test prompt I only got around 2.6it/sec...
    Also... it is just an impression or it is more vram--hungry than running on nvidia hardware?

  • @Karambolagemusic
    @Karambolagemusic 5 หลายเดือนก่อน +2

    RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check.
    Any clues? Do I need to install another version of pytorch? If so, how? Thanks in advance!

    • @limear
      @limear หลายเดือนก่อน

      Did you run "./webui.bat --use-zluda" in the terminal

  • @DanDanceMotion
    @DanDanceMotion 6 หลายเดือนก่อน

    There were a lot of mess errors, but I finally succeeded
    Thank you!!

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน

      Yea. It’s kind of crazy how many things say error and don’t matter. But it only takes one to wreck everything.

  • @crocknroll
    @crocknroll 3 หลายเดือนก่อน

    this tutorial is awasome, finals the 7900xtx is usable in a1111, haleluia

  • @SanyaWoFloride-k5u
    @SanyaWoFloride-k5u หลายเดือนก่อน

    Not working at all!
    Cannot read C:\Program Files\AMD\ROCm\6.1\bin\/rocblas/library/TensileLibrary.dat: No such file or directory for GPU arch : gfx1031
    Help!

    • @FE-Engineer
      @FE-Engineer  หลายเดือนก่อน

      Code gets updated. It’s possible it doesn’t work anymore. Although I imagine it’s less to do with it not working and more likely putting in a bad path to rocm…
      The path you have shown has both forward and back slashes \ / and it should not…

    • @SanyaWoFloride-k5u
      @SanyaWoFloride-k5u หลายเดือนก่อน

      @@FE-Engineer it was a compatibility problem.. Worked after compatibility checking for ZLUDA version, HIP SDK version and Torch version. Thanks!

    • @dudiebug
      @dudiebug 27 วันที่ผ่านมา

      @@SanyaWoFloride-k5u Can you please go into more detail? i am experiencing the same exact error.

  • @KapitanAI.
    @KapitanAI. 4 หลายเดือนก่อน

    you are a legend

  • @zygimantastauras
    @zygimantastauras 6 หลายเดือนก่อน +1

    Thank you very much, it generates pictures on AMD 6800 with around 5it/s

    • @jony_tough
      @jony_tough 2 วันที่ผ่านมา

      How is rocm compared to SD Amd fork, that's been around? Sorry if mybquestion is incompetent.

  • @user-yingshubo
    @user-yingshubo 5 หลายเดือนก่อน

    我一直用directml,看这个真的是太棒了,非常感谢作者,我竟然配置成功了!!!

  • @ajschwartz3924
    @ajschwartz3924 2 หลายเดือนก่อน

    At around the 8:25 mark is where you lose me. Because I get this weird clang error message when it's compiling the package and it wont launch the webui. I'm on a 7900XT, but so far this tutorial has taken me further than all the others ever have.

  • @luisoterom-b2c
    @luisoterom-b2c 6 วันที่ผ่านมา +1

    hey man just installing this to test with my 6800xt, is this still usable?

  • @jcdenton23
    @jcdenton23 3 วันที่ผ่านมา

    Thanks for the video. How do you start over if you mess up the steps? Is there a way to uninstall every thing and start over?

  • @DrivEDrivinginEurope
    @DrivEDrivinginEurope 6 หลายเดือนก่อน +3

    hi, I have this error after launching webui.bat to install everything:
    rocBLAS error: Cannot read C:\Program Files\AMD\ROCm\5.7\bin\/rocblas/library/TensileLibrary.dat: No such file or directory for GPU arch : gfx1036
    rocBLAS error: Could not initialize Tensile host:
    regex_error(error_backref): The expression contained an invalid back reference.
    Press any key to continue . . .
    Any idea what to do? Thanks for your help

    • @banned-user
      @banned-user 6 หลายเดือนก่อน

      same error

    • @banned-user
      @banned-user 6 หลายเดือนก่อน +2

      hey I just fixed it. disable your integrated gpu in device manager and wait a while as it loads and eventually downloads

    • @DrivEDrivinginEurope
      @DrivEDrivinginEurope 6 หลายเดือนก่อน

      @@banned-user thank you, I will try it later. I'm not too sure though how to disable the integrated graphics

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน +1

      Can do it from bios for one.
      But you can also set it as an export variable for being used. By rocm and tell it to ignore the igpu

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน

      I can tell you something is wrong. See how slashes go from back slashes to forward slashes? And at one spot there is a backslash next to a forward slash? Look at your env variables and check to see if something is weird.

  • @browse7288
    @browse7288 5 หลายเดือนก่อน

    Holy shit it actually worked., big thanks man!

    • @FE-Engineer
      @FE-Engineer  5 หลายเดือนก่อน

      😂😂 you are welcome. I’m glad it worked :). Thank you for watching!

  • @udinmoklet
    @udinmoklet 6 หลายเดือนก่อน

    Thank you so much bro, it's working on RX 6700 XT!
    took 23 mins+ on first generation

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน

      You are very welcome! Thanks for watching :)

    • @joris2032
      @joris2032 5 หลายเดือนก่อน

      very nicee! can it generate fast now?

    • @udinmoklet
      @udinmoklet 5 หลายเดือนก่อน

      @@joris2032 well kinda fast, under 15 seconds maybe? depends on the resolution

    • @joris2032
      @joris2032 5 หลายเดือนก่อน

      @@udinmoklet sound okeay! I am trying to install it for my 6700xt aswell but de hip sdk isn't working for my card, im now trying an other version. 5.5.1

    • @udinmoklet
      @udinmoklet 5 หลายเดือนก่อน

      @@joris2032 there's extra steps that you have to do, read the documentation

  • @tushkan4ik111
    @tushkan4ik111 6 หลายเดือนก่อน +1

    It worked! Thanks!

  • @taylormurphy2551
    @taylormurphy2551 3 หลายเดือนก่อน

    can you please provide exact version numbers for both zluda and stable-diffusion-webui-directml? Newer versions of both have been released and I'm getting errors when I try to run webui.bat at the end of the installation process. I assume this is because I'm using incompatible versions of different packages? Thank you!

  • @chaz-e
    @chaz-e 4 หลายเดือนก่อน

    How fast is this compared to Olive approach?
    Zluda is not officially supported by AMD but they have partnered with Microsoft for Olive and other improvements.

  • @derarkserveristscheie1095
    @derarkserveristscheie1095 หลายเดือนก่อน +1

    Hi i have an amd 6800xt which is supported on the list but when i typed in "webui" in cmd to download some stuff i got this error at the end "ImportError: DLL load failed while importing onnxruntime_pybind11_state: A dynamic link library (DLL) initialization routine failed." does anyone know what i can do to fix this?

    • @opensourcer1
      @opensourcer1 หลายเดือนก่อน

      i have this same error with 6800

  • @victorivanov5667
    @victorivanov5667 6 หลายเดือนก่อน

    Hey, thanks for the ongoing amazing videos, worked like a charm the first time, but after the 2nd try I get the skip torch cuda error ; adding the --skip-torch-cuda only results in an error several people in the comments are expieriencing.
    EDIT: Found the solution, had to open cmd in the zluda dir then navigate to the folder with the webui.bat and start it like in the video!

    • @tiago7063
      @tiago7063 6 หลายเดือนก่อน

      For me was that i didin't started zluda.exe or didn't open amd as admin, idk what solved

  • @ratchetI2606
    @ratchetI2606 3 หลายเดือนก่อน

    Hey, I'm on the step where you type in webui.bat. When I type it in it says 'webui.bat' is not recognized as an internal or external command,
    operable program or batch file.

  • @unitrixbase5221
    @unitrixbase5221 5 หลายเดือนก่อน

    Hi, I did everything the same as you, but the CPU still handles the generation of images. the speed is extremely low, the GPU is not used (in my pc rx6800)

  • @TheLegendaryHacker
    @TheLegendaryHacker 6 หลายเดือนก่อน +1

    OSError: [WinError 126] The specified module could not be found. Error loading "C:\Documents\Stable Diffusion\stable-diffusion-webui-directml\venv\lib\site-packages\torch\lib\cublas64_11.dll" or one of its dependencies.

    • @ВалерийЯкимчук-р9о
      @ВалерийЯкимчук-р9о 6 หลายเดือนก่อน

      I have the same error

    • @xedor993
      @xedor993 6 หลายเดือนก่อน

      I had the same error and managed to figure it out this
      Step 1: Make sure you have 3.10.11 installed
      Step 2: do the pip cache purge
      Step 3: Delete the vevn folder
      Step 4: Open webui and let it download and install everything.

    • @xedor993
      @xedor993 6 หลายเดือนก่อน

      @@ВалерийЯкимчук-р9о I had the same error and managed to figure it out this
      Step 1: Make sure you have 3.10.11 installed
      Step 2: do the pip cache purge
      Step 3: Delete the vevn folder
      Step 4: Open webui and let it download and install everything.

    • @ВалерийЯкимчук-р9о
      @ВалерийЯкимчук-р9о 6 หลายเดือนก่อน

      followed your instructions - it didn't work@@xedor993

  • @MRrDoctorWho
    @MRrDoctorWho 4 หลายเดือนก่อน

    Can u help???
    What is the problem? I have an RX6750 XT, installed libraries, tried different ways, the error does not go away. Either the Stable Diffusion defines the graphics card on the gfx90c architecture
    "RuntimeError: invalid argument to reset_peak_memory_stats"

  • @ChrisBuffam
    @ChrisBuffam 5 หลายเดือนก่อน

    I'm having an issue during installing. I'm using Automatic1111 for DirectML, the latest version. When running the webui.bat it errors out with RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper_CUDA__index_select). I'm using XFX 7900XTX and Ryzen 7950XT.

  • @ChuckieChuck3677
    @ChuckieChuck3677 5 หลายเดือนก่อน

    i have a problem here. This method works fine with me UNTILL i restart my PC. And then the good old error "torch can't use this GPU" pop up again. I need to delete all the setup and start fresh again like this in order to use SD. Any solutions ?

  • @drorian
    @drorian 4 หลายเดือนก่อน

    I've always had very long loading times, but with zluda I have ridiculously long loading times when I see the hdd constantly reading/writing, and the python system ram usage goes up to 12GB, it takes like 30s to start generating, 30s to generate an image and then 3 mins to finish the process with my pc almost completely frozen by the high load... maybe there's a command line to avoid all these loads? If I launch webui with only use zluda I get bsod, so I used some of my old directml command args. I have a radeon rx6800 with 16gB ram and a ryzen 5 2600x, before I had a nvidia 2060 which was better in automatic1111 even if it's less than half the ram and half the overall speed of the 6800.. I use this command line arguments --use-zluda --medvram --opt-sub-quad-attention --no-half --no-half-vae --disable-nan-check --theme dark --autolaunch.. any suggestions?

  • @Jay-js6zr
    @Jay-js6zr 6 หลายเดือนก่อน +1

    Thank you for making these, however I’ve done all of the steps very closely and correctly. My AMD card wasn’t supported so I did that thing with the files, getting the Torch is not able to use GPU error. I added the skip-torch thing, then had an error saying no NVIDIA card found so took that out. I’m using zluda all the time, still not working, added the stuff to the env, still not working. I’ve also done the pip cache purge thing and deleted the venv file etc, no luck.

    • @doseofjean
      @doseofjean 6 หลายเดือนก่อน

      i have the same error

    • @Jay-js6zr
      @Jay-js6zr 6 หลายเดือนก่อน

      @@doseofjeanI’ve got it working, make sure you fully install the rocm thing and i also installed the AMD driver that is usually turned off. Also make sure zluda is actually installed and in your environment variable by going to cmd and typing zluda -help

    • @doseofjean
      @doseofjean 6 หลายเดือนก่อน

      @@Jay-js6zr how many it/s? When i installed rocm with everything enabled including the drivers I had an issue where installing the visual portion error’d out the install

    • @Jay-js6zr
      @Jay-js6zr 6 หลายเดือนก่อน

      I also did that thing with the rocblas files

  • @fabear4022
    @fabear4022 6 หลายเดือนก่อน

    Noice, works. The only thing different I did from this video is downloaded the latest version of zluda. It's slow though on RX 6700 XT 12GB. I guess my card isn't as good as I thought it was. At least it freaking works.

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน

      I did change to the latest version. Overall I did not honestly see any noticeable difference. But for some it might provide a more noticeable change? Or perhaps it supports more cuda functions?

    • @fabear4022
      @fabear4022 6 หลายเดือนก่อน

      @@FE-Engineer Yes, it's about the functions. Everything I would like appears to work, as previously it would just break. And there definitely is a performance increase.

  • @TinnyFacexD
    @TinnyFacexD หลายเดือนก่อน

    is there any way to do LORA training with this set up at the moment? Or is it only available for hypernetworks built in to Automatic1111?

  • @luxiland6117
    @luxiland6117 หลายเดือนก่อน +1

    Hi thx! for the tutvideo, can u make a tut for install reforge+reactor or flux using zluda?

    • @FE-Engineer
      @FE-Engineer  หลายเดือนก่อน +1

      Will take a look. I have been moving across the country and dealing with some family issues but I am looking for some new things to do so I will put it on my list.

  • @philjancik4601
    @philjancik4601 4 หลายเดือนก่อน

    im assuming for this to work your gpu compatability must be able to support the runtime and the HIP SDK right?

  • @agx4035
    @agx4035 4 หลายเดือนก่อน +1

    will this hip sdk fuck with my adrenalin driver for gaming ?

  • @octaviorojas4052
    @octaviorojas4052 3 หลายเดือนก่อน

    Hi!, i have a error to try generate image, " RuntimeError: mat1 and mat2 must have the same dtype, but got Float and Half", you can helpme please??

  • @davitmodebadze9707
    @davitmodebadze9707 5 หลายเดือนก่อน +1

    Hey thanks for the video. Managed to use Zluda on 6900XT. However I am randomly getting this error:
    "NansException: A tensor with all NaNs was produced in Unet. Use --disable-nan-check commandline argument to disable this check."
    I have tried:
    1) --no-half and --no-half-vae
    2) --med-vram
    3) Enabling "Upcast cross attention layer to float32"
    4) --disable-nan-check. Ignores errors, but instead produces black images.
    5) Switching between diffrent models, including SDXL.
    6) Disabling GPU overclock
    Does anyone have similar issues?

    • @FE-Engineer
      @FE-Engineer  5 หลายเดือนก่อน

      Have you done
      Enable upcast cross attention layer to float32
      And also
      -no-half-vae
      Together?

  • @AmosKito
    @AmosKito 5 หลายเดือนก่อน

    I got it working and ran plenty of models and then it stopped working the next day after PC sleep?? somehow cusparce deleted itself, very strange...

  • @phelix88
    @phelix88 6 หลายเดือนก่อน

    Thanks for the video! Got it up and running with barely any issues. Only question I have is about model training. Is that feature still only an Nvidia thing? When I try to create an embedding it seems to create one but the dropdown in the training tab doesn't seem to function. I also see errors referring to embeddings in command prompt.

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน

      That is possible. Zluda seems to correctly translate a decent amount of cuda functionality correctly and accurately. But even as a translation layer it is definitely not a 1:1 map of all cuda functionality. It is more than reasonable to assume as you get into more complex cuda functionality that the translation layer may not function properly or accurately. Both would result in failures or crashes.
      You might try dreambooth. I have not tested. It might work? Likely you will run into the same or even more issues though. Hard to say without trying.

  • @farzinv1053
    @farzinv1053 4 หลายเดือนก่อน

    Expecting value: line 1 column 1 (char 0) what do i do for this error????????

  • @finn9552
    @finn9552 4 หลายเดือนก่อน

    Thank you, easy and good guide

  • @bigwinboy
    @bigwinboy 6 หลายเดือนก่อน +1

    Successfully installed and started SD, but failed to load the model, my python versions is 3.10.11, my Rocm versions is 5.7.1, my graphics board is 7900XTX

    • @FE-Engineer
      @FE-Engineer  6 หลายเดือนก่อน

      hard to say, if you can start and run SD, and you did things in the order that I did, I don't know what the problem would be especially loading the model...might turn the machine off and on again, and retry?

    • @bigwinboy
      @bigwinboy 6 หลายเดือนก่อน

      ​@@FE-Engineer Thanks, it's already working and generating images successfully, I had skipped your instructions about it taking 10-20 minutes to generate the first time, so I mistakenly thought it failed!