aboutsummarylogtreecommitdiffstats
path: root/README.md
blob: 7f7a6f06b3dc0cab71174a1e9f9dcfcb04012b76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# comfyui (AUR)

Arch Linux package for [ComfyUI](https://github.com/Comfy-Org/ComfyUI), a powerful and modular diffusion model GUI with a graph/nodes interface.

## Installation

The install script automatically detects your GPU via `lspci` and installs the appropriate PyTorch variant:

| GPU          | PyTorch variant |
|--------------|-----------------|
| AMD (Radeon) | ROCm 7.2        |
| NVIDIA       | CUDA 13.0       |
| Other / None | CPU-only        |

### Overriding GPU detection

To force a specific GPU backend, set `COMFYUI_GPU` before installing:

```bash
COMFYUI_GPU=cuda makepkg -sf comfyui
```

Valid values: `rocm`, `cuda`, `cpu`.

## Usage

Run directly:

```bash
comfyui
```

Or enable the systemd service:

```bash
systemctl enable --now comfyui
```

The web UI is available at `http://localhost:8188`.

## Configuration

### Model paths

Edit `/etc/comfyui/extra_model_paths.yaml` to configure model directories. This file is protected by pacman (`backup=()`), so your changes are preserved on upgrade.

Example:

```yaml
comfyui:
    base_path: /var/lib/comfyui/models
    diffusion_models: diffusion_models/
    loras: loras/
    text_encoders: text_encoders/
    vae: vae/
    is_default: true
```

**Note:** You must list each subdirectory explicitly — `base_path` alone is not sufficient.

### Installation prefix

The default installation directory is `/opt/comfyui`. To install elsewhere (e.g., a larger drive), set `_prefix` as an environment variable when building:

```bash
_prefix="/var/remise/comfyui" makepkg -sf
```

Alternatively, edit `_prefix` directly in the `PKGBUILD`.

## Uninstall

The Python venv and user data are preserved on removal to avoid re-downloading ~6 GB of PyTorch. To clean up manually:

```bash
sudo rm -rf /opt/comfyui        # or your custom _prefix
sudo rm -rf /var/lib/comfyui
```