Hardware support
Revised
NVIDIA1
Ollama supports NVIDIA GPUs with compute capability 5.0+ and driver version 550 and newer.2X14?1 NVIDIA3 GPUs with compute capability 5.0 through 6.2 require driver version 570 or newer.
To see whether your card is supported, check its compute capability on the NVIDIA CUDA GPUs page.45
| Compute capability6 | Family | Cards |
|---|---|---|
| 12.1 | NVIDIA | GB10 (DGX Spark) |
| 12.0 | GeForce RTX 50xx | RTX 5060 RTX 5060 Ti RTX 5070 RTX 5070 Ti RTX 5080 RTX 5090 |
| 12.0 | NVIDIA Professional | RTX PRO 4000 Blackwell RTX PRO 4500 Blackwell RTX PRO 5000 Blackwell RTX PRO 6000 Blackwell |
| 9.0 | NVIDIA | H200 H100 |
| 8.9 | GeForce RTX 40xx | RTX 4090 RTX 4080 SUPER RTX 4080 RTX 4070 Ti SUPER RTX 4070 Ti RTX 4070 SUPER RTX 4070 RTX 4060 Ti RTX 4060 |
| 8.9 | NVIDIA Professional | L4 L40 RTX 6000 |
| 8.6 | GeForce RTX 30xx | RTX 3090 Ti RTX 3090 RTX 3080 Ti RTX 3080 RTX 3070 Ti RTX 3070 RTX 3060 Ti RTX 3060 RTX 3050 Ti RTX 3050 |
| 8.6 | NVIDIA Professional | A40 RTX A6000 RTX A5000 RTX A4000 RTX A3000 RTX A2000 A10 A16 A2 |
| 8.0 | NVIDIA | A100 A30 |
| 7.5 | GeForce GTX/RTX | GTX 1650 Ti TITAN RTX RTX 2080 Ti RTX 2080 RTX 2070 RTX 2060 |
| 7.5 | NVIDIA Professional | T4 RTX 5000 RTX 4000 RTX 3000 T2000 T1200 T1000 T600 T500 |
| 7.5 | Quadro | RTX 8000 RTX 6000 RTX 5000 RTX 4000 |
| 7.0 | NVIDIA | TITAN V V100 Quadro GV100 |
| 6.1 | NVIDIA TITAN | TITAN Xp TITAN X |
| 6.1 | GeForce GTX | GTX 1080 Ti GTX 1080 GTX 1070 Ti GTX 1070 GTX 1060 GTX 1050 Ti GTX 1050 |
| 6.1 | Quadro | P6000 P5200 P4200 P3200 P5000 P4000 P3000 P2200 P2000 P1000 P620 P600 P500 P520 |
| 6.1 | Tesla | P40 P4 |
| 6.0 | NVIDIA | Tesla P100 Quadro GP100 |
| 5.2 | GeForce GTX | GTX TITAN X GTX 980 Ti GTX 980 GTX 970 GTX 960 GTX 950 |
| 5.2 | Quadro | M6000 24GB M6000 M5000 M5500M M4000 M2200 M2000 M620 |
| 5.2 | Tesla | M60 M40 |
| 5.0 | GeForce GTX | GTX 750 Ti GTX 750 NVS 810 |
| 5.0 | Quadro | K2200 K1200 K620 M1200 M520 M5000M M4000M M3000M M2000M M1000M K620M M600M M500M |
To build Ollama locally with support for older GPUs, see development.7X26X28
GPU selection8
If you have multiple NVIDIA GPUs and want to limit Ollama to a subset, set CUDA_VISIBLE_DEVICES to a comma-separated list of GPUs. You can use numeric IDs, but their order may vary, so UUIDs are more reliable. To find the UUID of your GPUs, run nvidia-smi -L. To ignore the GPUs and force CPU usage, use an invalid GPU ID, for example -1.9
Linux suspend resume10
On Linux, after a suspend/resume cycle, Ollama sometimes fails to discover your NVIDIA GPU and falls back to running on the CPU. To work around this driver bug, reload the NVIDIA UVM driver with sudo rmmod nvidia_uvm && sudo modprobe nvidia_uvm.11X38
AMD Radeon
Ollama supports the following AMD GPUs through12 the ROCm library:
Note:13 The Vulkan library provides additional AMD GPU support. See the Vulkan GPU support section.14
Linux support15
Ollama requires the AMD ROCm version 716 driver on Linux.X18 You can install or upgrade
using the amdgpu-install utility from
AMD's ROCm documentation.?3
| Family | Cards and accelerators |
|---|---|
| AMD Radeon RX | 9070 XT 9070 GRE 9070 9060 XT 9060 XT LP 9060 7900 XTX 7900 XT 7900 GRE 7800 XT 7700 XT 7700 7600 XT 7600 6950 XT 6900 XTX 6900XT 6800 XT 6800 |
| AMD Radeon AI PRO | R9700 R9600D |
| AMD Radeon PRO | W7900 W7800 W7700 W7600 W7500 W6900X W6800X Duo W6800X W6800 V620 |
| AMD Ryzen AI | Ryzen AI Max+ 395 Ryzen AI Max 390 Ryzen AI Max 385 Ryzen AI 9 HX 475 Ryzen AI 9 HX 470 Ryzen AI 9 465 Ryzen AI 9 HX 375 Ryzen AI 9 HX 370 Ryzen AI 9 365 |
| AMD Instinct | MI350X MI300X MI300A MI250X MI250 MI210 MI100 |
Windows support17
Ollama requires an AMD ROCm version 718 / HIP7-capable driver stack on Windows.
| Family | Cards and accelerators |
|---|---|
| AMD Radeon RX | 7900 XTX 7900 XT 7900 GRE 7800 XT 7700 XT 7600 XT 7600 |
| AMD Radeon PRO | W7900 W7800 W7700 W7600 W7500 |
Overrides on Linux
Ollama uses the AMD ROCm library, which doesn't support all AMD GPUs. In some cases, you can force the system to try a similar LLVM target. For example, the Radeon RX 5400 is gfx1034 (also known as 10.3.4), but ROCm doesn't currently support this target. The closest support is gfx1030. Use the environment variable HSA_OVERRIDE_GFX_VERSION with x.y.z syntax. For example, to force the system to run on the RX 5400, set HSA_OVERRIDE_GFX_VERSION="10.3.0" as an environment variable for the server. If you have an unsupported AMD GPU, you can experiment with the supported types in the table that follows.19?2
If you have multiple GPUs with different GFX versions, append the numeric device
number to the environment variable to set them individually. For example,
HSA_OVERRIDE_GFX_VERSION_0=10.3.0 and HSA_OVERRIDE_GFX_VERSION_1=11.0.0.20
At this time, the known supported GPU types on Linux are the following LLVM targets. This table shows some example GPUs that map to these LLVM targets:21
| LLVM target | Example GPU |
|---|---|
| gfx908 | Radeon Instinct MI100 |
| gfx90a | Radeon Instinct MI210/MI250 |
| gfx942 | Radeon Instinct MI300X/MI300A |
| gfx950 | Radeon Instinct MI350X |
| gfx1030 | Radeon PRO V620 |
| gfx1100 | Radeon PRO W7900 |
| gfx1101 | Radeon PRO W7700 |
| gfx1102 | Radeon RX 7600 |
| gfx1150 | Ryzen AI 9 HX 375 |
| gfx1151 | Ryzen AI Max+ 395 |
| gfx1200 | Radeon RX 9070 |
| gfx1201 | Radeon RX 9070 XT |
Reach out on Discord or file an issue for additional help.
GPU selection22
If you have multiple AMD GPUs and want to limit Ollama to a subset, set ROCR_VISIBLE_DEVICES to a comma-separated list of GPUs. To see the list of devices, run rocminfo. To ignore the GPUs and force CPU usage, use an invalid GPU ID, for example -1. When available, use the Uuid to identify the device instead of its numeric value.23
Container permission24
In some Linux distributions, SELinux can prevent containers from accessing the AMD GPU devices. To allow containers to use devices, run sudo setsebool container_use_devices=1 on the host system.25
Metal (Apple GPUs)
Ollama supports GPU acceleration on Apple devices through26 the Metal API.
Vulkan GPU support27
Vulkan provides additional GPU support on Windows and Linux. Vulkan is enabled by default when the backend is installed. On Windows, most GPU vendors' drivers come bundled with Vulkan support and require no additional setup steps. Most Linux distributions require installing additional components, and you may have multiple options for Vulkan drivers, from Mesa or from GPU vendor-specific packages. The following pages have instructions:28
For AMD GPUs on some Linux distributions, you may need to add the ollama user to the render group.
The Ollama scheduler uses available VRAM data reported by the GPU libraries to make optimal scheduling decisions. Vulkan requires additional capabilities or running as root to expose this available VRAM data. If neither root access nor this capability is granted, Ollama uses approximate model sizes to make best-effort scheduling decisions. To grant the capability, run the following command:31X13
sudo setcap cap_perfmon+ep /usr/local/bin/ollama
GPU selection32
To select specific Vulkan GPUs, set the environment variable GGML_VK_VISIBLE_DEVICES to one or more numeric IDs on the Ollama server, as described in the FAQ. If you encounter any problems with Vulkan-based GPUs, you can turn off all Vulkan GPUs by setting OLLAMA_VULKAN=0 or GGML_VK_VISIBLE_DEVICES=-1.33
On mixed iGPU/dGPU systems where the Vulkan iGPU is unstable, keep Vulkan
enabled and set GGML_VK_VISIBLE_DEVICES to the discrete GPU index. For
example, use GGML_VK_VISIBLE_DEVICES=1 when Vulkan1 is the discrete
GPU.
Notes on this page
1 Wording Audit: improved NVIDIA spells its name in capitals, as the table on this page does.
Was:
Nvidiacap-product-names-exactAuditor: Correctly capitalizes NVIDIA’s name.
2 Wording Audit: neutral NVIDIA's spelling; the version numbers are unchanged.
Was:
Ollama supports Nvidia GPUs with compute capability 5.0+ and driver version 550 and newer.cap-product-names-exact3 Wording Audit: improved NVIDIA's spelling.
Was:
Nvidiacap-product-names-exactAuditor: Correctly capitalizes NVIDIA’s name.
4 Wording Audit: improved The link text now names the destination instead of repeating the URL, and 'compute capability' replaces 'compute compatibility' so one term names one thing. The link target is unchanged.
Was:
Check your compute compatibility to see if your card is supported: https://developer.nvidia.com/cuda-gpuslink-descriptive-textlink-no-raw-urlterm-one-term-per-thingAuditor: Uses a descriptive link and the page’s existing term, “compute capability.”
5 Structure Audit: improved Table rows that left the first cell empty now repeat the compute capability from the row above, so every row has the same shape. The checker's advice to write 'None' would be wrong here, since the cell means 'same as above'.
Was:
| | NVIDIA Professional |RTX PRO 4000 BlackwellRTX PRO 4500 BlackwellRTX PRO 5000 BlackwellRTX PRO 6000 Blackwell|table-accessible-markuptype-ref-same-shapeAuditor: Repeats the capability value in table rows so each GPU family is easier to interpret on its own.
6 Wording Audit: improved Table headers use sentence case.
Was:
Compute Capabilitytable-header-and-unitscap-sentence-case-headingsAuditor: Uses sentence case for the table header.
7 Wording Audit: neutral States the goal first; the link is unchanged.
Was:
For building locally to support older GPUs, see development.prin-lead-with-the-answer8 Wording Audit: improved Sentence case; the anchor stays the same.
Was:
GPU Selectioncap-sentence-case-headingsAuditor: Uses sentence case for the heading.
9 Wording Audit: improved Imperative sentences, a missing period after the command, 'for example' instead of 'e.g.', and the value in code font; the settings and values are unchanged.
Was:
If you have multiple NVIDIA GPUs in your system and want to limit Ollama to use a subset, you can setCUDA_VISIBLE_DEVICESto a comma separated list of GPUs. Numeric IDs may be used, however ordering may vary, so UUIDs are more reliable. You can discover the UUID of your GPUs by runningnvidia-smi -LIf you want to ignore the GPUs and force CPU usage, use an invalid GPU ID (e.g., "-1")prin-one-idea-per-sentencelist-run-in-limitLatinAuditor: Breaks up the instructions and clarifies how to find UUIDs and force CPU use.
10 Wording Audit: neutral Sentence case; the wording is kept so the heading's anchor stays the same.
Was:
Linux Suspend ResumeHeadingCase11 Wording Audit: improved Capitalizes Linux, fixes 'fallback' and 'workaround' used as verbs, uses the present tense, and puts the command on one line with a final period.
Was:
On linux, after a suspend/resume cycle, sometimes Ollama will fail to discover your NVIDIA GPU, and fallback to running on the CPU. You can workaround this driver bug by reloading the NVIDIA UVM driver withsudo rmmod nvidia_uvm && sudo modprobe nvidia_uvmvoice-present-tenseusage-nonstandard-wordsAuditor: Fixes grammar and makes the recovery instruction easier to follow.
12 Wording Audit: improved 'Through' is the plain word.
Was:
viaLatinAuditor: Replaces “via” with plainer wording.
13 Wording Audit: improved The callout label is 'Note:', not capitals for emphasis.
Was:
NOTE:CapsForEmphasisAuditor: Uses sentence case for the note label.
14 Wording Audit: improved Active voice, and the section is named instead of 'see below'.
Was:
Additional AMD GPU support is provided by the Vulkan Library - see below.SectionPositionvoice-active-in-instructionsAuditor: Names the destination section instead of referring vaguely to “below.”
15 Wording Audit: improved Sentence case; the anchor stays the same.
Was:
Linux Supportcap-sentence-case-headingsAuditor: Uses sentence case for the heading.
16 Wording Audit: improved In prose, write 'version 7'.
Was:
v7VersionWordAuditor: Spells out the version marker in prose.
17 Wording Audit: improved Sentence case; the anchor stays the same.
Was:
Windows Supportcap-sentence-case-headingsAuditor: Uses sentence case for the heading.
18 Wording Audit: improved In prose, write 'version 7'.
Was:
v7VersionWordAuditor: Spells out the version marker in prose.
19 Wording Audit: regression 'Uses' for 'leverages', contractions, imperative sentences, a fixed comma splice before 'however', and the table named instead of 'below'. The names, versions and values are unchanged.
Was:
Ollama leverages the AMD ROCm library, which does not support all AMD GPUs. In some cases you can force the system to try to use a similar LLVM target that is close. For example The Radeon RX 5400 isgfx1034(also known as 10.3.4) however, ROCm does not currently support this target. The closest support isgfx1030. You can use the environment variableHSA_OVERRIDE_GFX_VERSIONwithx.y.zsyntax. So for example, to force the system to run on the RX 5400, you would setHSA_OVERRIDE_GFX_VERSION="10.3.0"as an environment variable for the server. If you have an unsupported AMD GPU you can experiment using the list of supported types below.Usevoice-contractionsprin-one-idea-per-sentenceAuditor: The example now tells readers to set an environment variable to force the RX 5400 to run, although the original only describes that as an example override; it also changes “similar LLVM target that is close” into a different explanation.
20 Wording Audit: improved Adds the missing final period.
Was:
HSA_OVERRIDE_GFX_VERSION_1=11.0.0list-terminal-punctuationAuditor: Adds the missing final punctuation.
21 Structure Audit: improved Adds the blank line the table needs to render, capitalizes Linux, and uses sentence case in the table headers and 'LLVM targets'.
Was:
At this time, the known supported GPU types on linux are the following LLVM Targets. This table shows some example GPUs that map to these LLVM targets: | LLVM Target | An Example GPU |table-accessible-markupcap-sentence-case-headingsAuditor: Separates the table from its lead-in and fixes capitalization and header case.
22 Wording Audit: improved Sentence case; the anchor stays the same.
Was:
GPU Selectioncap-sentence-case-headingsAuditor: Uses sentence case for the heading.
23 Wording Audit: improved Imperative sentences, 'for example' instead of 'e.g.', the value in code font, and a hyphen in 'comma-separated'.
Was:
If you have multiple AMD GPUs in your system and want to limit Ollama to use a subset, you can setROCR_VISIBLE_DEVICESto a comma separated list of GPUs. You can see the list of devices withrocminfo. If you want to ignore the GPUs and force CPU usage, use an invalid GPU ID (e.g., "-1"). When available, use theUuidto uniquely identify the device instead of numeric value.prin-one-idea-per-sentenceLatinAuditor: Makes the device-list and CPU-selection instructions clearer and fixes “numeric value” to “its numeric value.”
24 Wording Audit: improved Sentence case; the anchor stays the same.
Was:
Container Permissioncap-sentence-case-headingsAuditor: Uses sentence case for the heading.
25 Wording Audit: improved States the goal, then the command to run.
Was:
In some Linux distributions, SELinux can prevent containers from accessing the AMD GPU devices. On the host system you can runsudo setsebool container_use_devices=1to allow containers to use devices.prin-lead-with-the-answerproc-imperativeAuditor: Puts the action needed to allow container access in a direct instruction.
26 Wording Audit: improved 'Through' is the plain word.
Was:
viaLatinAuditor: Replaces “via” with plainer wording.
27 Wording Audit: improved Sentence case; the anchor stays the same.
Was:
Vulkan GPU Supportcap-sentence-case-headingsAuditor: Uses sentence case for the heading.
28 Wording Audit: improved Active voice, a possessive fixed ('vendors' drivers'), a final period, and a lead-in for the list that follows; the link is unchanged.
Was:
Additional GPU support on Windows and Linux is provided via Vulkan. Vulkan is enabled by default when the backend is installed. On Windows most GPU vendors drivers come bundled with Vulkan support and require no additional setup steps. Most Linux distributions require installing additional components, and you may have multiple options for Vulkan drivers between Mesa and GPU Vendor specific packagesvoice-active-in-instructionslink-descriptive-textlist-lead-inAuditor: Improves the lead-in and fixes the possessive and punctuation.
29 Wording Audit: improved The raw URL became a named link to the same address.
Was:
Linux Intel GPU Instructions - https://dgpu-docs.intel.com/driver/client/overview.htmllink-no-raw-urllink-descriptive-textAuditor: Replaces a raw URL with descriptive link text while preserving its target.
30 Wording Audit: improved The raw URL became a named link to the same address.
Was:
Linux AMD GPU Instructions - https://amdgpu-install.readthedocs.io/en/latest/install-script.html#specifying-a-vulkan-implementationlink-no-raw-urllink-descriptive-textAuditor: Replaces a raw URL with descriptive link text while preserving its target.
31 Wording Audit: regression 'Uses' for 'leverages', present tense, 'neither ... nor', one space after sentences, and a lead-in to the command that follows.
Was:
The Ollama scheduler leverages available VRAM data reported by the GPU libraries to make optimal scheduling decisions. Vulkan requires additional capabilities or running as root to expose this available VRAM data. If neither root access or this capability are granted, Ollama will use approximate sizes of the models to make best effort scheduling decisions.Usevoice-contractionsAuditor: “If neither root access nor this capability is granted” changes the original agreement and leaves it unclear whether one or both are needed; “make optimal scheduling decisions” also preserves an unsupported absolute claim rather than the standard’s call to claim only what can be proved.
32 Wording Audit: improved Sentence case; the anchor stays the same.
Was:
GPU Selectioncap-sentence-case-headingsAuditor: Uses sentence case for the heading.
33 Wording Audit: regression Imperative, 'turn off' for 'disable', and 'Vulkan-based' hyphenated; the link target is unchanged.
Was:
To select specific Vulkan GPU(s), you can set the environment variableGGML_VK_VISIBLE_DEVICESto one or more numeric IDs on the Ollama server as described in the FAQ. If you encounter any problems with Vulkan based GPUs, you can disable all Vulkan GPUs by settingOLLAMA_VULKAN=0orGGML_VK_VISIBLE_DEVICES=-1.TurnOnprin-plain-wordsAuditor: “Turn off all Vulkan GPUs” is less precise than disabling them and may imply a change to the GPUs themselves rather than to Ollama’s use of them.
Questions for the owner
?1 Which Ollama version does this page describe, so the reference can state it?
About: “Ollama supports NVIDIA GPUs with compute capability 5.0+ and driver version 550 and newer.”
?2 Is the Radeon RX 5400 the intended example for
gfx1034?About: “the Radeon RX 5400 is
gfx1034”?3 Should
6900XTin the Linux table be6900 XT, like the other entries?About: “
6900XT”X13 Path of the Linux ollama binary. The Linux install extracts to /usr and the service runs /usr/bin/ollama, but the Hardware support page's setcap command targets /usr/local/bin/ollama. Which path should the setcap example use, or should it use
$(which ollama)?X14 Minimum NVIDIA driver version. The Hardware support page says 550 and newer (570 for compute 5.0 to 6.2), while the Windows page says 551.61 or newer. What are the current minimum NVIDIA driver versions on Windows and Linux?
X18 ROCm versions referenced. Hardware support and Troubleshooting say Ollama uses ROCm v7, while the FAQ still describes ROCm v5.7 and v6.2 limits and Troubleshooting's sample log lists rocm_v5 and rocm_v6. Does the FAQ's Windows Radeon one-model limit still apply under ROCm v7, and should the sample log line be updated?
Pages: Hardware support, Troubleshooting, Local FAQ
X26 Hardware support links to a development page not in the set. The relative link points to development.md, which is not among the pages. Where should readers go for building locally, and should this link be absolute or removed?
Pages: Hardware support
X28 FAQ, Troubleshooting and Hardware support use relative file links. These links use relative paths, some with source file extensions, unlike the root-relative page links used elsewhere, and may not resolve on the published site. Should these become root-relative page links such as /troubleshooting and /gpu?
Pages: Local FAQ, Troubleshooting, Hardware support
X38 NVIDIA UVM reload in Hardware support and Troubleshooting. Both pages give the same rmmod/modprobe workaround for a lost NVIDIA GPU. Should one page own this workaround?
Pages: Hardware support, Troubleshooting
Original
Nvidia
Ollama supports Nvidia GPUs with compute capability 5.0+ and driver version 550 and newer. Nvidia GPUs with compute capability 5.0 through 6.2 require driver version 570 or newer.
Check your compute compatibility to see if your card is supported: https://developer.nvidia.com/cuda-gpus
| Compute Capability | Family | Cards |
|---|---|---|
| 12.1 | NVIDIA | GB10 (DGX Spark) |
| 12.0 | GeForce RTX 50xx | RTX 5060 RTX 5060 Ti RTX 5070 RTX 5070 Ti RTX 5080 RTX 5090 |
| NVIDIA Professional | RTX PRO 4000 Blackwell RTX PRO 4500 Blackwell RTX PRO 5000 Blackwell RTX PRO 6000 Blackwell |
|
| 9.0 | NVIDIA | H200 H100 |
| 8.9 | GeForce RTX 40xx | RTX 4090 RTX 4080 SUPER RTX 4080 RTX 4070 Ti SUPER RTX 4070 Ti RTX 4070 SUPER RTX 4070 RTX 4060 Ti RTX 4060 |
| NVIDIA Professional | L4 L40 RTX 6000 |
|
| 8.6 | GeForce RTX 30xx | RTX 3090 Ti RTX 3090 RTX 3080 Ti RTX 3080 RTX 3070 Ti RTX 3070 RTX 3060 Ti RTX 3060 RTX 3050 Ti RTX 3050 |
| NVIDIA Professional | A40 RTX A6000 RTX A5000 RTX A4000 RTX A3000 RTX A2000 A10 A16 A2 |
|
| 8.0 | NVIDIA | A100 A30 |
| 7.5 | GeForce GTX/RTX | GTX 1650 Ti TITAN RTX RTX 2080 Ti RTX 2080 RTX 2070 RTX 2060 |
| NVIDIA Professional | T4 RTX 5000 RTX 4000 RTX 3000 T2000 T1200 T1000 T600 T500 |
|
| Quadro | RTX 8000 RTX 6000 RTX 5000 RTX 4000 |
|
| 7.0 | NVIDIA | TITAN V V100 Quadro GV100 |
| 6.1 | NVIDIA TITAN | TITAN Xp TITAN X |
| GeForce GTX | GTX 1080 Ti GTX 1080 GTX 1070 Ti GTX 1070 GTX 1060 GTX 1050 Ti GTX 1050 |
|
| Quadro | P6000 P5200 P4200 P3200 P5000 P4000 P3000 P2200 P2000 P1000 P620 P600 P500 P520 |
|
| Tesla | P40 P4 |
|
| 6.0 | NVIDIA | Tesla P100 Quadro GP100 |
| 5.2 | GeForce GTX | GTX TITAN X GTX 980 Ti GTX 980 GTX 970 GTX 960 GTX 950 |
| Quadro | M6000 24GB M6000 M5000 M5500M M4000 M2200 M2000 M620 |
|
| Tesla | M60 M40 |
|
| 5.0 | GeForce GTX | GTX 750 Ti GTX 750 NVS 810 |
| Quadro | K2200 K1200 K620 M1200 M520 M5000M M4000M M3000M M2000M M1000M K620M M600M M500M |
For building locally to support older GPUs, see development.
GPU Selection
If you have multiple NVIDIA GPUs in your system and want to limit Ollama to use
a subset, you can set CUDA_VISIBLE_DEVICES to a comma separated list of GPUs.
Numeric IDs may be used, however ordering may vary, so UUIDs are more reliable.
You can discover the UUID of your GPUs by running nvidia-smi -L If you want to
ignore the GPUs and force CPU usage, use an invalid GPU ID (e.g., "-1")
Linux Suspend Resume
On linux, after a suspend/resume cycle, sometimes Ollama will fail to discover
your NVIDIA GPU, and fallback to running on the CPU. You can workaround this
driver bug by reloading the NVIDIA UVM driver with sudo rmmod nvidia_uvm && sudo modprobe nvidia_uvm
AMD Radeon
Ollama supports the following AMD GPUs via the ROCm library:
NOTE: Additional AMD GPU support is provided by the Vulkan Library - see below.
Linux Support
Ollama requires the AMD ROCm v7 driver on Linux. You can install or upgrade
using the amdgpu-install utility from
AMD's ROCm documentation.
| Family | Cards and accelerators |
|---|---|
| AMD Radeon RX | 9070 XT 9070 GRE 9070 9060 XT 9060 XT LP 9060 7900 XTX 7900 XT 7900 GRE 7800 XT 7700 XT 7700 7600 XT 7600 6950 XT 6900 XTX 6900XT 6800 XT 6800 |
| AMD Radeon AI PRO | R9700 R9600D |
| AMD Radeon PRO | W7900 W7800 W7700 W7600 W7500 W6900X W6800X Duo W6800X W6800 V620 |
| AMD Ryzen AI | Ryzen AI Max+ 395 Ryzen AI Max 390 Ryzen AI Max 385 Ryzen AI 9 HX 475 Ryzen AI 9 HX 470 Ryzen AI 9 465 Ryzen AI 9 HX 375 Ryzen AI 9 HX 370 Ryzen AI 9 365 |
| AMD Instinct | MI350X MI300X MI300A MI250X MI250 MI210 MI100 |
Windows Support
Ollama requires an AMD ROCm v7 / HIP7-capable driver stack on Windows.
| Family | Cards and accelerators |
|---|---|
| AMD Radeon RX | 7900 XTX 7900 XT 7900 GRE 7800 XT 7700 XT 7600 XT 7600 |
| AMD Radeon PRO | W7900 W7800 W7700 W7600 W7500 |
Overrides on Linux
Ollama leverages the AMD ROCm library, which does not support all AMD GPUs. In
some cases you can force the system to try to use a similar LLVM target that is
close. For example The Radeon RX 5400 is gfx1034 (also known as 10.3.4)
however, ROCm does not currently support this target. The closest support is
gfx1030. You can use the environment variable HSA_OVERRIDE_GFX_VERSION with
x.y.z syntax. So for example, to force the system to run on the RX 5400, you
would set HSA_OVERRIDE_GFX_VERSION="10.3.0" as an environment variable for the
server. If you have an unsupported AMD GPU you can experiment using the list of
supported types below.
If you have multiple GPUs with different GFX versions, append the numeric device
number to the environment variable to set them individually. For example,
HSA_OVERRIDE_GFX_VERSION_0=10.3.0 and HSA_OVERRIDE_GFX_VERSION_1=11.0.0
At this time, the known supported GPU types on linux are the following LLVM Targets. This table shows some example GPUs that map to these LLVM targets:
| LLVM Target | An Example GPU |
|---|---|
| gfx908 | Radeon Instinct MI100 |
| gfx90a | Radeon Instinct MI210/MI250 |
| gfx942 | Radeon Instinct MI300X/MI300A |
| gfx950 | Radeon Instinct MI350X |
| gfx1030 | Radeon PRO V620 |
| gfx1100 | Radeon PRO W7900 |
| gfx1101 | Radeon PRO W7700 |
| gfx1102 | Radeon RX 7600 |
| gfx1150 | Ryzen AI 9 HX 375 |
| gfx1151 | Ryzen AI Max+ 395 |
| gfx1200 | Radeon RX 9070 |
| gfx1201 | Radeon RX 9070 XT |
Reach out on Discord or file an issue for additional help.
GPU Selection
If you have multiple AMD GPUs in your system and want to limit Ollama to use a
subset, you can set ROCR_VISIBLE_DEVICES to a comma separated list of GPUs.
You can see the list of devices with rocminfo. If you want to ignore the GPUs
and force CPU usage, use an invalid GPU ID (e.g., "-1"). When available, use the
Uuid to uniquely identify the device instead of numeric value.
Container Permission
In some Linux distributions, SELinux can prevent containers from
accessing the AMD GPU devices. On the host system you can run
sudo setsebool container_use_devices=1 to allow containers to use devices.
Metal (Apple GPUs)
Ollama supports GPU acceleration on Apple devices via the Metal API.
Vulkan GPU Support
Additional GPU support on Windows and Linux is provided via Vulkan. Vulkan is enabled by default when the backend is installed. On Windows most GPU vendors drivers come bundled with Vulkan support and require no additional setup steps. Most Linux distributions require installing additional components, and you may have multiple options for Vulkan drivers between Mesa and GPU Vendor specific packages
- Linux Intel GPU Instructions - https://dgpu-docs.intel.com/driver/client/overview.html
- Linux AMD GPU Instructions - https://amdgpu-install.readthedocs.io/en/latest/install-script.html#specifying-a-vulkan-implementation
For AMD GPUs on some Linux distributions, you may need to add the ollama user to the render group.
The Ollama scheduler leverages available VRAM data reported by the GPU libraries to make optimal scheduling decisions. Vulkan requires additional capabilities or running as root to expose this available VRAM data. If neither root access or this capability are granted, Ollama will use approximate sizes of the models to make best effort scheduling decisions.
sudo setcap cap_perfmon+ep /usr/local/bin/ollama
GPU Selection
To select specific Vulkan GPU(s), you can set the environment variable
GGML_VK_VISIBLE_DEVICES to one or more numeric IDs on the Ollama server as
described in the FAQ. If you
encounter any problems with Vulkan based GPUs, you can disable all Vulkan GPUs
by setting OLLAMA_VULKAN=0 or GGML_VK_VISIBLE_DEVICES=-1.
On mixed iGPU/dGPU systems where the Vulkan iGPU is unstable, keep Vulkan
enabled and set GGML_VK_VISIBLE_DEVICES to the discrete GPU index. For
example, use GGML_VK_VISIBLE_DEVICES=1 when Vulkan1 is the discrete
GPU.
What Changed
The page keeps its vendor-by-vendor structure. Changes fix NVIDIA's spelling, repeat the compute capability in table cells that were left empty, replace raw URLs with named links, turn headings into sentence case without changing their anchors, and tighten prose (plain verbs, contractions, 'version 7', 'for example'). Statements that other pages give differently were kept as written and raised as questions.
Content type: reference. The page is a lookup of supported GPUs, driver versions and environment variables for each hardware family, organized by vendor.
Automated check, original: 0 errors, 35 warnings, 2 suggestions. Revised: 0 errors, 9 warnings, 0 suggestions.
Independent audit (GPT-6): mixed. The revision improves readability, link text, headings, and several awkward instructions. It also changes a few technical statements or instructions, and it leaves some clear style issues unresolved.
Regressions:
- In c19, the revised RX 5400 example makes a stronger operational claim about forcing that GPU to run; the owner’s question about the example does not resolve this change.
- In c31, the revised condition about root access or a capability is grammatically unclear, and “optimal scheduling decisions” is an unqualified claim the standard says to avoid unless it can be proved.
- In c33, “turn off all Vulkan GPUs” makes the setting sound like it turns off the GPUs, rather than disabling Vulkan GPU use in Ollama.
What the revision missed:
- The standard says to spell out an abbreviation on first use unless readers are expected to know it; the page still uses unexplained terms including ROCm, HIP, LLVM, GFX, VRAM, SELinux, and iGPU/dGPU.
- The standard calls for short sentences and one idea per paragraph, but several revised paragraphs remain long and combine multiple instructions or explanations, particularly c19 and c28.
- The c19 example still contains unresolved factual uncertainty about whether the Radeon RX 5400 is the intended example, as acknowledged by q2; asking the question does not prevent the revision from presenting that example as fact.
Structure (2)
- 5 Table rows that left the first cell empty now repeat the compute capability from the row above, so every row has the same shape. The checker's advice to write 'None' would be wrong here, since the cell means 'same as above'. improved
- 21 Adds the blank line the table needs to render, capitalizes Linux, and uses sentence case in the table headers and 'LLVM targets'. improved
Wording (31)
- 1 NVIDIA spells its name in capitals, as the table on this page does. improved
- 2 NVIDIA's spelling; the version numbers are unchanged. neutral
- 3 NVIDIA's spelling. improved
- 4 The link text now names the destination instead of repeating the URL, and 'compute capability' replaces 'compute compatibility' so one term names one thing. The link target is unchanged. improved
- 6 Table headers use sentence case. improved
- 7 States the goal first; the link is unchanged. neutral
- 8 Sentence case; the anchor stays the same. improved
- 9 Imperative sentences, a missing period after the command, 'for example' instead of 'e.g.', and the value in code font; the settings and values are unchanged. improved
- 10 Sentence case; the wording is kept so the heading's anchor stays the same. neutral
- 11 Capitalizes Linux, fixes 'fallback' and 'workaround' used as verbs, uses the present tense, and puts the command on one line with a final period. improved
- 12 'Through' is the plain word. improved
- 13 The callout label is 'Note:', not capitals for emphasis. improved
- 14 Active voice, and the section is named instead of 'see below'. improved
- 15 Sentence case; the anchor stays the same. improved
- 16 In prose, write 'version 7'. improved
- 17 Sentence case; the anchor stays the same. improved
- 18 In prose, write 'version 7'. improved
- 19 'Uses' for 'leverages', contractions, imperative sentences, a fixed comma splice before 'however', and the table named instead of 'below'. The names, versions and values are unchanged. regression
- 20 Adds the missing final period. improved
- 22 Sentence case; the anchor stays the same. improved
- 23 Imperative sentences, 'for example' instead of 'e.g.', the value in code font, and a hyphen in 'comma-separated'. improved
- 24 Sentence case; the anchor stays the same. improved
- 25 States the goal, then the command to run. improved
- 26 'Through' is the plain word. improved
- 27 Sentence case; the anchor stays the same. improved
- 28 Active voice, a possessive fixed ('vendors' drivers'), a final period, and a lead-in for the list that follows; the link is unchanged. improved
- 29 The raw URL became a named link to the same address. improved
- 30 The raw URL became a named link to the same address. improved
- 31 'Uses' for 'leverages', present tense, 'neither ... nor', one space after sentences, and a lead-in to the command that follows. regression
- 32 Sentence case; the anchor stays the same. improved
- 33 Imperative, 'turn off' for 'disable', and 'Vulkan-based' hyphenated; the link target is unchanged. regression