this post was submitted on 16 Mar 2024
263 points (74.2% liked)

linuxmemes

21263 readers
674 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.

  • Please report posts and comments that break these rules!

    founded 1 year ago
    MODERATORS
     

    It's necessary for my very important hobby of generating anime nudes.

    you are viewing a single comment's thread
    view the rest of the comments
    [–] hperrin@lemmy.world 44 points 8 months ago (4 children)

    I run Stable Diffusion with ROCm. Who needs CUDA?

    [–] HakFoo@lemmy.sdf.org 8 points 8 months ago (7 children)

    What distro are you using? Been looking for an excuse to strain my 6900XT.

    I started looking at getting it running on Void and it seemed like (at the time) there were a lot of specific version dependencies that made it awkward.

    I suspect the right answer is to spin up a container, but I resent Docker's licensing BS too much for that. Surely by now there'd be a purpose built live image- write it to a flash drive, reboot, and boom, anime ~~vampire princes~~ hot girls

    [–] PumpkinEscobar@lemmy.world 7 points 8 months ago

    If you don’t like docker take a look at containerd and podman. I haven’t done any cuda with podman but it is supposed to work

    [–] Shareni@programming.dev 3 points 8 months ago (1 children)

    I resent Docker's licensing BS too much for that.

    Pay us if you're a mid+ sized compan is BS?

    [–] HakFoo@lemmy.sdf.org 3 points 8 months ago (1 children)

    I think people don't like dramatic changes in business model. I had installed it for like 3 days, long before the switchover, to test out something from another dev. When they made the announcements, the hammer went down in our org not to use it. But that didn't stop them from sending sales-prospecting/vaguely threateningly worded email to me, who has no cheque-writing authority anyway.

    Plus, I'm not a fan of containers.

    STOP DOING CONTAINERS.

    • Machines were not meant to contain other smaller machines.
    • Years of virtualization yet no real-world use found for anything but SNES emulation
    • Wanted to "ship your machine to the end-user" anyway for a laugh? We had a tool for that. It was called "FedEx".
    • "Yes, Please give me docker compose up meatball-hero of something. Please give me Alpine Linux On Musl of it" -- Statements dreamed up by the utterly deranged.

    "Hello, I would like 7.5GB of VM worth of apples please"

    THEY HAVE PLAYED US FOR ABSOLUTE FOOLS.

    [–] Shareni@programming.dev 1 points 8 months ago

    Poor capitalists need to pay for the tools that make them money. Stop it, I'll break down in tears just thinking about the horror of it.

    Do you use some different solution, or did you completely avoid containers and orchestration?

    But that didn’t stop them from sending sales-prospecting/vaguely threateningly worded email to me, who has no cheque-writing authority anyway.

    They only spam me with promotional material. You used the business email I'm guessing?

    [–] ichbinjasokreativ@lemmy.world 1 points 8 months ago (1 children)

    I use stable diffusion on rocm in an ubuntu distrobox container. Super easy to set up and there's a good guide in the opensuse forum for it.

    [–] russjr08@bitforged.space 1 points 8 months ago

    That is exactly what I do too and it works perfectly! This is a link to said guide.

    It's effectively install distrobox, save the config, run distrobox assemble and then distrobox enter rocm and clone the Automatic1111 stable diffusion webui somewhere and run bash webui.sh to launch it.

    [–] anarchy79@lemmy.world 1 points 8 months ago
    [–] Dkarma@lemmy.world 1 points 8 months ago

    Ubuntu native for me..no containers needed.

    [–] Fubarberry@sopuli.xyz 1 points 8 months ago

    I set mine up on arch. There's an aur package, but it didn't work for me.

    After some failed attempts, I ended up having success following this guide.

    Some parts are out of date though, so if it fails to install something you'll need to have it target a newer available package. Main example of this is inside the webui-user.sh file, it tells you to replace an existing line with export TORCH_COMMAND="pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/rocm5.1.1". This will fail because that version of pytorch is no longer available. So instead you need to replace the download URL with an up to date one from the pytorch website. They've also slightly changed the layout of the file. Right now the correct edit should be to find the # install command for torch line and change the command under it to: pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm5.7

    You may need to swap pip to pip3 too, if you get a pip error. Overall it takes some troubleshooting, look at any errors you get and see if it's calling for a package you don't have or anything like that.

    [–] hperrin@lemmy.world 0 points 8 months ago

    I use Fedora. It works great, with some tweaks to the startup script.

    [–] carl@upload.chat 7 points 8 months ago* (last edited 8 months ago)

    I can confirm that it works just fine for me. In my case I'm on Arch Linux btw and a 7900XTX, but it needed a few tweaks:

    - Having xformers installed at all would sometimes break startup of stable-diffusion depending on the fork
    - I had an internal and an external GPU, I want to set HIP_VISIBLE_DEVICE so that it only sees the correct one
    - I had to update torch/torchvision and set HSA_OVERRIDE_GFX_VERSION

    I threw what I did into https://github.com/icedream/sd-multiverse/blob/main/scripts/setup-venv.sh#L381-L386 to test several forks.

    [–] fidodo@lemmy.world 4 points 8 months ago

    Then show us your anime titty pics!

    [–] anarchy79@lemmy.world 4 points 8 months ago

    CUDA?! I barely even know'a!