Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

docs(docker): document running the ROCm image (#10205)

Lincoln Stein02e2498651a6
diff --git a/docker/README.md b/docker/README.md
index 5e94521126..6a740378f3 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -19,9 +19,13 @@ docker run --runtime=nvidia --gpus=all --publish 9090:9090 ghcr.io/invoke-ai/inv
**ROCm (AMD GPU):**
```bash
-docker run --device /dev/kfd --device /dev/dri --publish 9090:9090 ghcr.io/invoke-ai/invokeai:main-rocm
+docker run --device /dev/kfd --device /dev/dri \
+ --env RENDER_GROUP_ID=$(getent group render | cut -d: -f3) \
+ --publish 9090:9090 ghcr.io/invoke-ai/invokeai:main-rocm
```
+`RENDER_GROUP_ID` must match the host's `render` group. Without it, Invoke can't access the GPU.
+
Open `http://localhost:9090` in your browser once the container finishes booting, install some models, and generate away!
### Data persistence
diff --git a/docs/src/content/docs/configuration/02.docker.mdx b/docs/src/content/docs/configuration/02.docker.mdx
index 64614a61fb..046bff6fc7 100644
--- a/docs/src/content/docs/configuration/02.docker.mdx
+++ b/docs/src/content/docs/configuration/02.docker.mdx
@@ -33,6 +33,20 @@ docker run --runtime=nvidia --gpus=all --publish 9090:9090 ghcr.io/invoke-ai/inv
Once the container starts up, open [http://localhost:9090](http://localhost:9090) in your browser, install some models, and start generating.
+### AMD GPUs (ROCm)
+
+Use a `-rocm` image: `main-rocm`, or `<version>-rocm` for a release. Pass both GPU devices and your host's `render` group ID:
+
+```bash
+docker run --device /dev/kfd --device /dev/dri \
+ --env RENDER_GROUP_ID=$(getent group render | cut -d: -f3) \
+ --publish 9090:9090 ghcr.io/invoke-ai/invokeai:main-rocm
+```
+
+- `/dev/kfd` is the ROCm compute interface and `/dev/dri` holds the GPU's render nodes. Invoke needs both.
+- Invoke runs as an unprivileged user inside the container, and the devices keep their host group. The entrypoint adds that user to a `render` group with the ID from `RENDER_GROUP_ID`. Without it, PyTorch can't open the GPU and Invoke runs on the CPU.
+- The image includes kernels for every GPU that AMD's ROCm 10 PyTorch build supports (see [AMD](/start-here/system-requirements/#amd)). Those GPUs don't need `HSA_OVERRIDE_GFX_VERSION`.
+
## Build-It-Yourself
All the docker materials are located inside the [docker](https://github.com/invoke-ai/InvokeAI/tree/main/docker) directory in the Git repo.
@@ -67,6 +81,7 @@ The image includes the driver for a [MySQL or MariaDB database](/configuration/e
| `INVOKEAI_ROOT` | `~/invokeai` | **Required** - the location of your InvokeAI root directory. It will be created if it does not exist. |
| `HUGGING_FACE_HUB_TOKEN` | | InvokeAI will work without it, but some of the integrations with HuggingFace (like downloading from models from private repositories) may not work |
| `GPU_DRIVER` | `cuda` | Optionally change this to `rocm` to build the image for AMD GPUs, or `cpu` for CPU-only builds (required on ARM64 / `aarch64` hosts such as the Raspberry Pi 5). NOTE: Use the `build.sh` script to build the image for this to take effect. |
+| `RENDER_GROUP_ID` | | AMD GPUs only. The ID of the host's `render` group, from `getent group render`. Without it, Invoke can't access the GPU. |
#### Build the Image
diff --git a/invokeai/frontend/webv2/src/workbench/palette/docsSearchIndex.json b/invokeai/frontend/webv2/src/workbench/palette/docsSearchIndex.json
index 186ef8e56e..91a5e3cd75 100644
--- a/invokeai/frontend/webv2/src/workbench/palette/docsSearchIndex.json
+++ b/invokeai/frontend/webv2/src/workbench/palette/docsSearchIndex.json
@@ -71,7 +71,7 @@
{"s":"users-guide/models/local-models/z-image","t":"Z-Image","d":"Generate images with Z-Image Turbo and Z-Image Base, including the GGUF, NVFP4, int8 and SDNQ builds, ControlNets and regional prompting.","c":2,"h":[["license","License"],["hardware","Hardware"],["installing","Installing"],["choosing-components","Choosing components"],["generation-settings","Generation settings"],["controlnet","ControlNet"],["regional-prompting","Regional prompting"],["lora","LoRA"],["seed-variance-enhancer","Seed Variance Enhancer"],["pid-decoding","PiD decoding"]]},
{"s":"users-guide/models/model-families","t":"Model Formats and Families","d":"An overview of the models InvokeAI supports — checkpoint, Diffusers and quantized formats, the components that make up a model, and the model families with their licenses.","c":2,"h":[["checkpoints-vs-diffusers-formats","Checkpoints vs Diffusers Formats"],["quantized-formats","Quantized formats"],["converting-to-diffusers","Converting to Diffusers"],["submodels","Submodels"],["model-families","Model Families"]]},
{"s":"users-guide/models/model-format-support","t":"Model Format Support","d":"Which file formats and quantizations InvokeAI loads for every model family, text encoder, VAE and adapter.","c":2,"h":[["main-models","Main models"],["text-encoders","Text encoders"],["text-llms","Text LLMs"],["vaes","VAEs"],["preview-decoders-tiny-autoencoders","Preview decoders (Tiny AutoEncoders)"],["loras-and-adapters","LoRAs and adapters"]]},
-{"s":"configuration/docker","t":"Docker","c":3,"h":[["tldr","TL;DR"],["build-it-yourself","Build-It-Yourself"],["prerequisites","Prerequisites"],["setup","Setup"],["troubleshooting--faq","Troubleshooting / FAQ"]]},
+{"s":"configuration/docker","t":"Docker","c":3,"h":[["tldr","TL;DR"],["amd-gpus-rocm","AMD GPUs (ROCm)"],["build-it-yourself","Build-It-Yourself"],["prerequisites","Prerequisites"],["setup","Setup"],["troubleshooting--faq","Troubleshooting / FAQ"]]},
{"s":"configuration/external-database","t":"MySQL and MariaDB","c":3,"h":[["requirements","Requirements"],["creating-the-database","Creating the database"],["configuring-invokeai","Configuring InvokeAI"],["moving-an-existing-install","Moving an existing install"],["going-back-to-sqlite","Going back to SQLite"],["limits","Limits"]]},
{"s":"configuration/invokeai-yaml","t":"YAML Config","c":3,"h":[["invokeai-root-directory","InvokeAI Root Directory"],["invokeai-configuration-file","InvokeAI Configuration File"],["environment-variables","Environment Variables"],["cli-args","CLI Args"],["low-vram-mode","Low-VRAM Mode"],["all-settings","All Settings"]]},
{"s":"configuration/multi-user-mode/admin-guide","t":"Multi-User Administrator Guide","d":"Turn on multi-user mode, manage accounts, and keep a shared InvokeAI server safe.","c":3,"h":[["roles","Roles"],["turn-on-multi-user-mode","Turn on multi-user mode"],["what-happens-to-existing-data","What happens to existing data"],["upgrading-from-v6","Upgrading from v6"],["manage-users","Manage users"],["deleting-a-user","Deleting a user"],["the-shared-queue","The shared queue"],["security","Security"],["passwords","Passwords"],["sessions","Sessions"],["signing-key","Signing key"],["model-downloads","Model downloads"],["node-filesystem-access","Node filesystem access"],["https-and-internet-access","HTTPS and internet access"],["backups","Backups"],["troubleshooting","Troubleshooting"],["not-supported","Not supported"],["more","More"]]},