adding rocm7.2 to ollama #12457
Replies: 5 comments 13 replies
This comment was marked as disruptive content.
This comment was marked as disruptive content.
This comment was marked as disruptive content.
This comment was marked as disruptive content.
|
so youve got a working config with ollama running on your gpu via rocm? you installed with the script and then took the steps outlined above? |
1 reply
This comment was marked as disruptive content.
This comment was marked as disruptive content.
|
Using the PVE scripts and some tweaking, I have ollama running with rocm. The PVE ollama script installs rocm 7.2.0 in it's default location under /opt, however ollama's rocm (https://docs.ollama.com/linux#amd-gpu-install) expects to untar those overlaying them in /usr. If you do that, then rocm ought work. You may wish to customize ollama.service too. My setup is dual R9700, and I'm able to run gemma4-31b using rocm w/ 64k context window. Still tuning, but this works for me: Custom Gemma4 (Gemma4.Modelfile): |
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
🌟 Briefly describe the feature
Add rocm to ollama
📝 Detailed description
Currently, the Ollama LXC installation script primarily caters to CPU or NVIDIA (CUDA) environments. I am requesting an update to the script to include support for AMD GPUs by integrating the ROCm backend (specifically ROCm 7.2 or the latest compatible version).
Ideally, the script could include an interactive prompt during setup (e.g., "Would you like to install AMD ROCm support?") or auto-detect an AMD GPU that has been passed through to the container. The script would then need to handle the installation of the necessary AMD GPU drivers and ROCm libraries required by Ollama for hardware acceleration.
💡 Why is this useful?
While CPU inference is great, hardware acceleration is essential for running larger LLMs with usable generation speeds. Expanding on "AMD GPUs":
Massive Performance Boost: ROCm support allows Ollama to utilize AMD GPUs, drastically increasing token-per-second (t/s) inference speeds compared to CPU-only setups.
Homelab Hardware Diversity: Many Proxmox users and homelabbers utilize AMD GPUs due to their price-to-performance ratio or availability.
Native Ollama Support: Ollama already officially supports ROCm for AMD GPUs. Adding this to the Proxmox helper script bridges the gap, saving users from having to manually configure complex ROCm environments and driver dependencies inside their LXC containers.
All reactions