e42.uk Circle Device

 

Quick Reference

ComfyUI on Fedora

ComfyUI on Fedora

The hardware used is an AMD Radeon XT 7090 RX 16GiB VRAM on an AMD CPU with 32GiB System RAM. This is an RDNA4 card (AMD Arch: gfx1201).

Installation

For some reason this stuff does not work well with Python 3.13 (which is the default Fedora 42 version of Python) so we have to install Python 3.12.

curl -L -O https://www.python.org/ftp/python/3.12.11/Python-3.12.11.tgz

Then compile and install, be sure to have development libraries for various dependecies of pytorch:

dnf install libffi-devel bzip2-devel

tar -xf Python-3.12.11.tgz
cd Python-3.12.11
./configure --enable-optimizations --prefix=${HOME}/.local
make
mkdir -P ${HOME}/.local
make install

Ensure that you have ${HOME}/.local/bin in your path. You can alter your bashrc file to include permanently.

export PATH="${HOME}/.local/bin:${PATH}"

(it may already be present, check with echo $PATH

Install pytorch, this is a big download and to check how to do it have a look at the pytorch website. Also, be sure to do this in a virtual environment. Remember that I am using an AMD Radeon GPU so I need the ROCm libraries.

$ python3 --version
Python 3.12.11
$ mkdir ~/comfyui
$ cd ~/comfyui
$ python3 -m venv venv
$ . venv/bin/activate
$ pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.3

The download is rather large and probably installs a lot of stuff that was already installed if you installed the ROCm development libraries for llama.cpp (which I did).

Install can now take one of two paths, if you want to look at and edit the source code for comfyui then you can use the repository technique but most will just want to use the comfyui-cli variant, it is simpler and allows easier management of ComfyUI Manager (which you almost definitely want).

Using comfyui-cli

The venv is already created, now we will install comfyui-cli with pip and start ComfyUI:

$ pip install comfyui-cli
$ comfy-cli install
$ comfy launch

Yes, that is all!

Using Github Repository

Clone comfyui from the repository:

$ git clone --depth=1 https://github.com/comfyanonymous/ComfyUI repo
$ cd repo
$ pip3 install -r requirements.txt
$ python3 main.py

If you see

To see the GUI go to: http://127.0.0.1:8188

Then you have got it working... visit the URL :-)

Quick Links: Techie Stuff | General | Personal | Quick Reference