Hi everyone,
I’ve successfully configured Ollama to run on a dual AMD Radeon RX 9060 XT (RDNA 4) setup on Windows 11. Since these cards require ROCm 7.1+, but Ollama currently expects ROCm 6.x naming conventions, a specific manual “bridge” is required.
The Solution: Version Mapping & Library Cleanup
The key is to force Ollama to use the newer amdhip64_7.dll by creating a symbolic link, but crucially, you must first remove any existing legacy DLLs that might interfere with the loading process.
Step-by-Step Configuration:
-
Library Cleanup & Mapping: Open CMD as Administrator and navigate to your ROCm bin directory. You must delete older versioned DLLs and create a link to the current version:
DOS
:: 1. Navigate to Ollama's internal ROCm library
cd /d "%LOCALAPPDATA%\Programs\Ollama\lib\ollama\rocm"
:: Cleanup legacy files
del amdhip64_*.dll
rmdir /s /q rocblas
-
:: Create Symbolic Links to ROCm 7.1
mklink amdhip64_6.dll "C:\Program Files\AMD\ROCm\7.1\bin\amdhip64_7.dll"
mklink /D rocblas "C:\Program Files\AMD\ROCm\7.1\bin\rocblas"
-
Environment Variables: Set these variables to force RDNA 4 support and point Ollama to the correct runtime:
PowerShell
$env:HSA_OVERRIDE_GFX_VERSION="12.0.0"
$env:HIP_VISIBLE_DEVICES="0,1"
$env:OLLAMA_LIBRARY_PATH="C:\Program Files\AMD\ROCm\7.1\bin"
-
Verify Execution: When running ollama serve, you should now see the GPUs correctly identified as gfx1200: level=INFO source=types.go:42 msg="inference compute" id=0 library=ROCm compute=gfx1200 total="15.9 GiB" level=INFO source=types.go:42 msg="inference compute" id=1 library=ROCm compute=gfx1200 total="15.9 GiB"
Why this works: By deleting the other amdhip64_*.dll files, you ensure the system only sees your new symbolic link. This forces the runner to load the ROCm 7.1 entry points which are compatible with the RX 9000 series ISA.
Combined with the 31.8 GiB of VRAM, I’m seeing excellent performance on Codestral 22B and Llama 3.1 70B.
Hope this helps anyone setting up the new RDNA 4 cards!
1 Like
Hi, nice catch on the DLL cleanup. Ollama’s internal files usually cause a lot of version conflicts during ROCm updates. One big downside to watch for is that if Ollama auto-updates, it’ll likely overwrite your symlinks and you’ll have to set it up all over again. Have you noticed any weird memory-leak issues or driver crashes when splitting that Llama 70B model across two cards?
If you are getting good response times with Llama 3 70B on your setup, I’d love to hear what configuration or environment variables you’re using. Are you using any specific ROCm flags or memory-limit overrides? what version of Llama 3 70B you are running and for what purpose? and what is the agent you are working with against Ollama ?
Regarding the updates: I’ve disabled auto-updates for exactly that reason. I keep a backup of the working DLLs and the folder structure. Before any manual update, I ensure I can quickly restore the references if they get overwritten.
Llama 3 70B Performance: It’s stable and doesn’t crash, but the performance is quite poor when used with my agent. Even though about 30GB is loaded into the VRAM across both cards, the remaining 40-50GB spills over into the system RAM. This hybrid allocation causes massive latency—it takes about 2 minutes to get a response, which makes it impractical for real-time agent workflows.
Stability Issues: I did encounter a “Green Screen” issue previously, specifically when running MS Treasure Hunt (during ads). After some aggressive tweaking in the AMD Software settings and some Registry edits, the issue seems to have disappeared. It was likely a TDR or power-state conflict between the two cards.
Overall: The dual RX 9060 XT setup is a beast for models that fit entirely in VRAM, but the overhead of system RAM swapping for larger models is still a major bottleneck on Windows.
Hi Hakob,
Just a quick update on this: I need to correct my previous observation about the Llama 3 70B performance. It turns out the 2-minute latency wasn’t a hardware or backend bottleneck at all—it was actually a streaming/parsing bug in my custom agent’s client implementation.
After refactoring the agent logic, the model runs beautifully entirely on the GPUs! I am now getting incredibly snappy response times of 5 to 7 seconds for the initial tokens.
For anyone trying to replicate a smooth local 70B inference workflow on Windows via ROCm 7.1 with a dual RX 9060 XT setup, save this as a Modelfile.
Note: Setting num_gpu to 75 ensures that the vast majority of the model sits in VRAM, while about 4,900 MB spills over and runs on the system RAM, leaving just enough headroom for Windows and the UI to remain perfectly smooth without crashing the driver.
FROM llama3.1:70b-instruct-q2_K
# Force layers onto the GPUs while leaving a bit of headroom for the OS
PARAMETER num_gpu 75
# Set Context to 16K (avoiding 32K on this specific quantization to save VRAM)
PARAMETER num_ctx 16384
# System prompt for C# optimization
SYSTEM """
You are an expert .NET 8 and WPF developer.
When analyzing build errors always suggest modern C# features.
"""
Then, build and run it using the following command in your terminal:
ollama create llama3-70b-custom -f ./Modelfile
This configuration hits the absolute sweet spot for my setup. Thanks again for the insights on the auto-updates and DLL conflicts, I’ll definitely keep my backup script handy!
1 Like
thanks alot for the follow up, will definitly check it out
Nowadays - after updating Olama version - steps 1 and 2 are not needed. Only in setting the environment variables.