Skip to main content

Running ComfyUI on AMD Ryzen AI Max 395 (Strix Halo)

How to install and run ComfyUI for AI image generation on AMD's newest Strix Halo APU with ROCm support.

S

SmartTechLabs

SmartTechLabs - Intelligent Solutions for IoT, Edge Computing & AI

3 min read

Update, November 2026

The situation described below has changed.

  • Official support: AMD’s ROCm Core SDK 10.2.0 release notes (2026-11-18) list gfx1151 (Ryzen AI Max 300 series) as supported hardware and PyTorch 2.15.0 for Python 3.11 to 3.14. ROCm 7.x numbering has been replaced by 10.x, and since 7.14 ROCm is built with TheRock. AMD also publishes ComfyUI-on-ROCm install guides. Try AMD’s own PyTorch wheels first; see AMD’s PyTorch install page for the index that matches your platform and ROCm release.
  • The wheel used here is a community build from scottt’s rocm-TheRock fork, tagged v6.5.0rc-pytorch, for Python 3.11 only. It is a fallback, not the recommended path anymore.
  • Kernel: AMD’s Strix Halo guide requires Ubuntu 24.04 HWE 6.17.0-19.19~24.04.2 or later (OEM kernel 6.14.0-1018 or later), or kernel 6.18.4 or later on other distributions. Older kernels are unstable or unsupported.
  • Memory: by default the GPU can address about 50% of system RAM (GTT). AMD recommends a small BIOS reservation and raising the shared limit with amd-ttm --set <GB> (reboot required).
  • Community reports for ComfyUI on gfx1151 recommend starting with --disable-mmap (kyuz0 toolbox).

The Challenge

AMD’s Ryzen AI Max 395 (Strix Halo) represents a new era in APU computing with its powerful integrated RDNA 3.5 GPU. However, running AI workloads like ComfyUI on this architecture requires specific ROCm configurations that aren’t yet mainstream.

The main challenge at the time: the gfx1151 architecture was not included in the standard PyTorch ROCm wheels, which fail with HIP error: invalid device function.


Our Solution

We’ve created strix-halo-comfyui, an installation toolkit that gets ComfyUI running on Strix Halo APUs with minimal friction.

Key Features

FeatureDescription
gfx1151 SupportUses scottt’s self-contained PyTorch wheel with native Strix Halo support
Automated SetupSingle-script installation with all dependencies
Virtual EnvironmentPython 3.11 virtual environment in ~/ComfyUI/venv
Launcherrun_comfy_amd_ryzen_ai.sh sets the HIP environment variables

How It Works

The installation uses a specially compiled PyTorch wheel that includes gfx1151 support:

1
2
3
4
git clone https://github.com/smarttechlabs-projects/strix-halo-comfyui.git
cd strix-halo-comfyui
chmod +x install_comfyui_amd_ryzen.sh
./install_comfyui_amd_ryzen.sh

The script handles:

  1. Checks: Python 3.11, rocminfo, rocm-smi and GPU visibility
  2. ComfyUI Clone: Downloads ComfyUI into ~/ComfyUI (override with COMFY_DIR)
  3. Environment Setup: Creates a Python 3.11 virtual environment
  4. PyTorch Installation: Installs the gfx1151 wheel, and reinstalls it at the end so that dependencies cannot replace it with a CUDA build
  5. Dependencies: Installs the remaining packages, some with --no-deps

Start ComfyUI with ~/ComfyUI/run_comfy_amd_ryzen_ai.sh and open http://localhost:8188/.

Ubuntu 24.04 ships Python 3.12, so Python 3.11 has to be installed first (for example from the deadsnakes PPA). If imports fail after installation, the repository README lists the packages to add by hand (typing-inspection, kornia_rs, httpx).


Requirements

RequirementDetails
HardwareAMD Ryzen AI Max 395 or compatible Strix Halo APU
OSUbuntu 22.04/24.04 with ROCm installed (written against ROCm 6.x)
PythonVersion 3.11 (required for PyTorch wheel compatibility)
Memory32GB+ unified memory recommended, 20GB+ free disk

Why This Matters

Strix Halo APUs offer an interesting proposition for AI workloads:

  • Unified Memory: CPU and GPU share system RAM (up to 128GB on the Ryzen AI Max+ 395). The share the GPU can address is set by the GTT limit, not the full amount
  • Power Efficiency: Lower power draw than a high-end discrete GPU
  • Cost: No discrete GPU needed for image generation, at lower speed than a large discrete card

With the installation script you can run ComfyUI workflows on this hardware without sorting out the wheel and dependency conflicts by hand.


Get Started

Check out the repository: smarttechlabs-projects/strix-halo-comfyui

We welcome contributions and feedback. If you encounter issues or have improvements, please open an issue or pull request.


Building AI solutions on AMD hardware? Contact us to discuss your project requirements.

Share this article
S

SmartTechLabs

Building Intelligent Solutions: IoT, Edge Computing, AI & LLM Integration