llamacpp-rocm
We provide nightly builds of llama.cpp with AMD ROCm™ acceleration from TheRock's nightly builds - delivering the freshest, cutting-edge builds available. Our automated pipeline specifically targets seamless integration with 🍋 Lemonade and similar AI applications requiring high-performance GPU inference.
Important
Contribution & Support Notice: While this project currently focuses on integrating llama.cpp+ROCm in a specific production context, our broader goal is to contribute meaningfully to the llama.cpp+ROCm ecosystem. We're not set up to provide comprehensive technical support, but we welcome collaborations, idea exchanges, or contributions that help advance this space.
🎯 Supported Devices
This build specifically targets the following GPU architectures:
- gfx1151 (RDNA3.5 APU) - Radeon 8065S/8060S/8050S/8040S (e.g. Ryzen AI Max+ 395, Ryzen AI Max 390)
- gfx1150 (RDNA3.5 APU) - Radeon 890M/880M (e.g. Ryzen AI 9 HX 370, Ryzen AI 9 365)
- gfx1152 (RDNA3.5 APU) - Radeon 860M/840M (e.g. Ryzen AI 7 350, Ryzen AI 5 340)
- gfx1153 (RDNA3.5 APU) - Radeon 820M (e.g. Ryzen AI 5 330)
- gfx117X (gfx1170, gfx1171)
- gfx120X (RDNA4 GPUs: gfx1200, gfx1201) - includes AMD Radeon RX 9070 XT/9070 GRE/9070, RX 9060 XT/9060, RX 9050 and Radeon AI PRO R9700/R9700S/R9600/R9600D
- gfx110X (RDNA3 GPUs: gfx1100, gfx1101, gfx1102, gfx1103) - includes AMD Radeon dGPUs: RX 7900 XTX/XT/GRE, RX 7800 XT, RX 7700 XT/7700, RX 7600 XT/7600, PRO W7900/W7800/W7700, PRO V710 and iGPUs: Radeon 780M/760M/740M
- gfx103X (RDNA2 GPUs: gfx1030, gfx1031, gfx1032, gfx1034) - includes AMD Radeon dGPUs: RX 6900 XT, RX 6800 XT/6800, RX 6700 XT, PRO W6800, PRO V620. Discrete GPUs only; RDNA2 APUs such as gfx1033, gfx1035 and gfx1036 are not included
- gfx90a (CDNA2 GPU) - AMD Instinct MI250X/MI250/MI210
- gfx908 (CDNA GPU) - AMD Instinct MI100
A GPU whose gfx target is listed above is covered even if its name is not.
All builds include ROCm™ built-in - no separate ROCm™ installation required! The exact TheRock nightly version is listed in each release's notes.
🚀 Automated Builds
Our automated GitHub Actions workflow creates nightly builds for:
- Windows and Ubuntu operating systems
- Multiple GPU targets:
gfx1151,gfx1152,gfx1153,gfx1150,gfx117X,gfx110X,gfx120X,gfx103X,gfx90a,gfx908 - ROCm™ built-in - complete runtime libraries included
| GPU Target | Ubuntu | Windows |
|---|---|---|
| gfx110X | ||
| gfx1150 | ||
| gfx1151 | ||
| gfx1152 | ||
| gfx1153 | ||
| gfx117X | ||
| gfx120X | ||
| gfx103X | ||
| gfx90a | ||
| gfx908 |
⚡ Ready to Run: All releases include complete ROCm™ runtime libraries - just download and go!
Linux (gfx1150/APU): OOM despite free VRAM? Add
ttm.pages_limit=12582912(48 GB) to the kernel cmdline (e.g. GRUB), runupdate-grub, then reboot. See TheRock FAQ for more.
🧪 Quick Smoketest
To verify your download is working correctly:
- Download the appropriate build for your GPU target from our latest releases
- Extract the archive to your preferred directory
- Test with any GGUF model from Hugging Face:
llama-server -m YOUR_GGUF_MODEL_PATH -ngl 99
💡 Tip: Use
-ngl 99to offload all layers to GPU for maximum acceleration. The exact number of layers may vary by model, but 99 ensures all available layers are offloaded.
🍋 Lemonade Integration: You can also test these builds directly with Lemonade for a seamless AI application experience (coming soon!)
✅ Release Qualification
A release is published only when every archive in it passes:
- Static checks on every archive - the GPU code really covers every gfx target of its family, nothing it needs comes from outside the archive, the Linux binaries start on Ubuntu 22.04 and look for libraries only next to themselves,
llama-serverstill accepts the flags Lemonade uses, and every archive was built from the same llama.cpp commit and ROCm nightly. - Inference on real hardware - the gfx1151 archives (Windows and Linux) are run on Strix Halo machines, and the run must prove the GPU did the work and that ROCm was loaded from the archive itself.
If any archive fails, there is no release that night, so every release always contains every GPU target on both Windows and Ubuntu.
Each release also carries:
qualification-<archive>.jsonfor every archive: which gfx targets it contains, which were tested on hardware, the exact ROCm and llama.cpp versions, and the result of every check.checksums.txt: the SHA-256 of every archive, so you can confirm a download withsha256sum -c checksums.txt --ignore-missing.
Details of every check are in .github/qualify-rocm/README.md.
📦 Dependencies
This project relies on the following external software and tools:
Core Dependencies
- Llama.cpp - Efficient, cross-platform inference engine for running GGUF models locally.
- ROCm SDK (TheRock) - AMD’s open-source platform for GPU-accelerated computing.
- HIP - C++ API for writing portable GPU code within the ROCm ecosystem.
Build Tools & Compilers
- Visual Studio 2022 Build Tools - Microsoft C++ build tools
- CMake - Cross-platform build system (version 3.31.0)
- Ninja - Small build system with focus on speed
- Clang/Clang++ - C/C++ compiler (bundled with ROCm)
🏗️ Code and Artifact Structure
Note
Active Development: This project is under active development. Code and artifact structure are subject to change as we continue to improve and expand functionality.
Key Components
docs/- Contains build documentation and setup guidesutils/- Houses utility scripts for build automation and dependency management- GitHub Actions Workflows - Located in
.github/workflows/(automated build pipeline) - Build Artifacts - Generated during CI/CD and published as releases
The build process is primarily handled through GitHub Actions, with the repository serving as the source for automated compilation and packaging of llama.cpp with ROCm™ support.
📋 Manual Build Instructions
For detailed manual build instructions, please see: docs/manual_instructions.md
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.