Local AI on Linux

Written by Jakub Rusinowski · Last updated July 21, 2026

The fastest and most memory-efficient platform, and the only one where every serving stack runs natively — at the cost of doing your own driver work.

Runtimes that work on Linux

RuntimeHow to installAccelerationWatch out for
OllamaOfficial install script.
curl -fsSL https://ollama.com/install.sh | sh
CUDA (NVIDIA), ROCm (AMD), Vulkan, CPU
llama.cppBuild from source with the backend flag for your GPU.
cmake -B build -DGGML_CUDA=ON && cmake --build build --config Release
CUDA (NVIDIA), ROCm (AMD), Vulkan, SYCL (Intel), CPUBuild flags decide the backend — a default build is CPU-only and will be an order of magnitude slower than it should be.
vLLMpip, ideally into a clean virtual environment.
pip install vllm
CUDA (NVIDIA), ROCm (AMD)Built for concurrent serving, and it pre-allocates most of the GPU's memory on startup. For a single user it uses far more memory than llama.cpp for no benefit.
LM StudioAppImage.CUDA (NVIDIA), Vulkan, CPU

What Linux is good at

Linux limitations

Hardware and models on Linux

Linux supports NVIDIA, AMD, Intel accelerators — 37 of the 55 in our hardware database, up to 128 GB.

MemoryHardware on this platformModels to run
8 GBNVIDIA GeForce RTX 3080 (10GB)
Intel Arc B570
NVIDIA GeForce RTX 5060 Ti 8GB
Qwen 3 8B
GLM-6 9B
GLM-4.7 9B
16 GBAMD Radeon RX 7900 XT
NVIDIA GeForce RTX 5080
NVIDIA GeForce RTX 5070 Ti
Mistral Small 3.1 24B
Qwen 3.5 14B
Qwen 3.5 14B
24 GBNVIDIA GeForce RTX 4090
NVIDIA GeForce RTX 3090
AMD Radeon RX 7900 XTX
Gemma 4 27B ⭐
Mistral Small 3.1 24B
Qwen 3.7 35B-A3B
48 GBNVIDIA RTX 6000 Ada Generation
NVIDIA L40S
Nemotron 70B Instruct
GLM-5.1 72B
Qwen 3.5 72B
96 GBAMD Ryzen AI Max+ 395
NVIDIA RTX PRO 6000 Blackwell
GPT-oss 120B
Nemotron 70B Instruct
Qwen 3.5 122B-A10B (MoE)

Machines that run Linux

MachineMemory for modelsForm factorUpgradeable
RTX 4090 Desktop (24 GB VRAM, 64 GB RAM)24 GB VRAMDesktopYes
RTX 5090 Desktop (32 GB VRAM, 64 GB RAM)32 GB VRAMDesktopYes
RTX 3090 Desktop (24 GB VRAM, 64 GB RAM)24 GB VRAMDesktopYes
RTX 5080 Desktop (16 GB VRAM, 32 GB RAM)16 GB VRAMDesktopYes
RTX 3060 12 GB Desktop (12 GB VRAM, 32 GB RAM)12 GB VRAMDesktopYes
RTX 5060 Ti 16 GB Desktop (16 GB VRAM, 32 GB RAM)16 GB VRAMDesktopYes
Framework Desktop (Ryzen AI Max+ 395, 128 GB)128 GB unifiedMini PCNo
RTX 4060 Laptop (8 GB VRAM, 16 GB RAM)8 GB VRAMLaptopYes

FAQ

What is the best way to run an LLM locally on Linux?

Ollama — Official install script. It reaches CUDA (NVIDIA), ROCm (AMD), Vulkan, CPU.

Which GPUs work for local AI on Linux?

NVIDIA, AMD, Intel hardware, up to 128 GB in our database.

What are the downsides of running local AI on Linux?

NVIDIA driver and CUDA toolkit installation is on you, and a version mismatch between driver, toolkit and runtime is the most common cause of a silent fall back to CPU.

Machines Running This Platform

Hardware for This Platform

Other Platforms

Tools

← All platforms | Check your hardware