Repository navigation
Experience with APU Ryzen 7 6850H 680m #7199
Replies: 8 comments 35 replies
|
Update on comfyUI sdxl It takes 10 minutes to load the sdxl model, 2 minutes to iterate 20 steps, 10 minutes to load the sdxl refiner model, 2 minutes to iterate 5 steps... and takes over 30 minutes to load the autoencoderKL... I pressed ctrl-c I tried the --disable-smart-memory option and adding "import torch \ torch.backends.cudnn.enabled = False" in the main.py... and it didn't help. :( Only sd1.5 works well. |
|
Update: I used these improvements and now ComfyUI is excellent.
Due to dynamic vram, the SDXL Ksampler iterations seem to start before the model is completely loaded Each SDXL generation: 1024x1024+lcmloras+stylelora+openpose * 8 steps, and direct VAE without falling to tiled VAE = 40 seconds Without openpose, same size and 8 steps: 31 seconds I still haven't tried the sage-attention advice. When you are done with comfyUI, restore the GUI with |
|
Just as a sanity check, and for anyone trying to install in the future: https://github.com/ROCm/TheRock/blob/main/cmake/therock_amdgpu_targets.cmake |
|
My sageatten fork has supported gfx1035, and it run faster than triton backend on sdxl/anima. Tested on windows, and i'm not sure whether it can run on linux. You can have a try. |
|
Has anybody experienced what seems like "model corruption" after generating one image? Explanation: when I generate for the first time after starting comfyUI, the image generates OK. But the second run generates RGB noise. I can fix this by unloading the model (hotkey=U). This prevents me from generating a batch of 2 images or more. It happens with Pony models, SDXL+controlnet... but interestingly it doesn't happen with SDXL pure T2I, and Anima. |
|
Instructions for installing rocm 10.0 and comfyui for 680m/gfx1035 Same as the first post, but change the rocm-gfx1035 specific install command: python -m pip install --index-url https://rocm.nightlies.amd.com/whl-multi-arch/ "rocm[libraries,device-gfx1035]==10.0.0a20260730" Then, install rocm's pytorch: pip install --index-url https://rocm.nightlies.amd.com/whl-multi-arch/ "torch[device-gfx1035]" "torchvision[device-gfx1035]" torchaudio Interestingly, it uninstalled rocm-10.0 and installed all rocm-10.1 wheels. Testing pytorch loading and version:
:( We need to specify 10.0 variant of pytorch in pip install: pip install --index-url https://rocm.nightlies.amd.com/whl-multi-arch/ "torch[device-gfx1035]==2.14.0a0+rocm10.0.0a20260730" pip install --index-url https://rocm.nightlies.amd.com/whl-multi-arch/ "torchvision[device-gfx1035]==0.29.0a0+rocm10.0.0a20260730" If you get a disk quota error, run pip cache purge and add --no-cache-dir at the end of the pip command |
|
I tried Qwen-2511-edit-image with the lighting lora (4 steps instead of 40) and the special rdna2 sage attention accelerator. Without sage attention enabled: 1024x1024 edit takes 455 seconds Has anybody tried Qwen-2511 in 680m or 780m? update: Qwen 2.1 edit with viggle turbo lora, sage attention, 1 megapixel image: 372 seconds (130 for clip+242 sampler) Note: still pending installation of node https://github.com/patientx/ComfyUI-INT8-Fast-ROCM, which can speed up int8 model quantization, with --enable-triton-backend update on comfyint8 : the new nodes didnt improve generation times. I used both the loadclip and loadmodel int8 that appeared after installing in custom_Nodes. Models anima-int8-turbo and clip was int8 too Also pending experimenting with: Update about NVME: i got a bigger faster NVME, to get space for more models, and hoping that going from PCIE3 to PCIE4 would help in generation times. IT DIDNT. Then I started watching my disk activity during the run. It barely uses the potential read speed. And comfyUI reads the NVME continuously... and my VRAM is used 4% to 10% all the time. I found the comfyUI options responsible for this and made these changes:
I still haven't seen speedups from the INT8 GPU kernel, and haven't changed the triton/hip/cuda/eager priority. |
|
I realized I made a mistake in configuring the new ck-attention: I missed updating the "--use-sageattention" to "--use-ckattention". I am away from home and can test tonight Also, which performance are you getting per step?
What is the place inside the comfyUI folder to apply this change? Would this advice change, if I upgrade to ROCM 10.1 and ComfyUI 0.39? Thank you! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I wanted to share my experience with a Ryzen 7 mini computer, described here:
https://www.notebookcheck.net/Aoostar-intros-refreshed-Maco-mini-PC-with-capable-AMD-CPU-and-OCuLink.1157841.0.html
After several trials, with instructions that were close, but no cigar, I finally was able to use ROCm with ComfyUI.
Steps:
Install these debian packages (Ubuntu 26.04 has them, find your equivalent pkgs for your distrib)
$ sudo apt install libatomic1 libquadmath0
Become part of these groups: render, video
$ sudo usermod -a -G render,video yourusername
git-clone the comfyUI project
$ git clone https://github.com/comfy-org/comfyui
$ cd comfyui
Use pyenv to make sure you use python 3.13
$ sudo apt install pyenv
$ pyenv install 3.13.2
$ pyenv shell 3.13.2
$ python -V (to make sure that it worked, verify that the python command replies 3.13.2)
make a new venv, to prevent experimenting with your whole OS-wide libraries
$ python -m venv venv (others like env or .env, but I like venv)
$ source venv/bin/activate
install the pip libraries specific to your GPU (ROCm 7.14)
$ python -m pip install --index-url https://repo.amd.com/rocm/whl-multi-arch/ "rocm[libraries,device-gfx1035]==7.14.0"
(change gfx1035 (680m) to your GPU or APU model)
Reference: https://github.com/comfy-org/comfyui#amd-gpus-linux
Always check that you are in the python venv environment, for installing comfyUI libraries and running comfyUI
If you close the terminal window and open another, you won't see the "(venv)" at the left of the command prompt
In that case, get back in the comfy folder and type $ source venv/bin/activate
Now install the newest ROCm pytorch
$pip install --index-url https://rocm.nightlies.amd.com/whl-multi-arch/ "torch[device-gfx1035]" "torchvision[device-gfx1035]" torchaudio
If you get disk quotas or download errors, there are mitigations for that. I will share if someone asks for it
verify torch version
(venv)$ python
There was no need to install amdgpu driver. Ubuntu already installed it.
(Can anyone comment whether this is true?)
Install the other ComfyUI dependencies
$ modify requirements.txt and comment out (with #) torch, torchvision and torchaudio
$ pip install -r requirements.txt
Reference: https://github.com/comfy-org/comfyui#amd-gpus-linux
start ComfyUI
$ python main.py --listen
(the listen option is good to access the app from your laptop in the same wifi network)
In my case ComfyUI started normally...
I tried the basic "Universe in a bottle", 512x512px, Sd15 workflow, and it completed it quickly... 1.5 iterations per second. 25 steps and both before and after steps.
The first inference completed in 68 seconds...
All following inferences: in 15 seconds.
I keep getting this warning: MIOpen: Warning [OpenRuntimeLibraryForDevice] CK grouped conv library not found for device gfx1035: libMIOpenCKGroupedConv_gfx1035.so: cannot open shared object file: No such file or directory
Is it something to worry about?
And this warning occured 4 times in the first run:
warning: xnack 'off' was requested for a processor that does not support it!
But it completes the Sd1.5 task ok.
Next, I started with the comfy template "SDXL simple example". I still haven't downloaded both models. But I managed to make it work by deleting the second phase nodes... just working with the SDXL model (6 GB), not the refinement model (6GB).
It takes an absurdly long amount of time to load the checkpoint. I will update this from home, where I have the exact time it took.
Is it normal that the checkpoint will take over 5 minutes to load in SDXL (the SD1.5 didn't have this problem at all)
I will update later with all my findings.
All reactions