Local AI, LLMs, and image generation on Linux
Running models on your own GPU. NVIDIA usually needs CUDA; AMD uses ROCm.
Updated November 2026. Compatibility and versions change; check the linked official docs before you install.
Running local language models and image-generation tools is one of the few areas where the operating system version can matter as much as the desktop. The reason is the GPU compute stack. On NVIDIA hardware, that stack is usually CUDA. On AMD hardware, it is usually ROCm. Neither is a casual driver checkbox, and both have official lists of supported distributions and GPUs. This page is here so you do not install a friendly beginner distro and then discover that NVIDIA's toolkit guide never mentioned it.
As of November 2026, NVIDIA's CUDA Toolkit 13.5 Linux installation guide lists Ubuntu 22.04, 24.04 and 26.04 LTS, Debian 12 and 13, Fedora 44, openSUSE Leap 15 and 16, and a set of RHEL-compatible systems, among others. It does not list Linux Mint, Zorin, Pop!_OS, Bazzite, EndeavourOS, or CachyOS by name, and it lists Fedora 44 rather than Fedora 45 (which had just been released). If you want official CUDA, Ubuntu 26.04.1 LTS is the recommendation this site makes with the most confidence. Debian 13 and Leap 16 are also on the list. Fedora users should check whether NVIDIA has added Fedora 45 before they assume the current Workstation ISO is qualified.
NVIDIA versus AMD versus “I just want to chat with a model”
If you have an NVIDIA GPU, install the proprietary driver the official way for your distro, then follow NVIDIA's CUDA guide for the exact version they document. Do not mix random .run installers from unofficial blogs with a package-manager driver and hope. After the toolkit is in place, tools such as Ollama (official Linux install) or a vendor app like LM Studio (download only from the official site) can use the GPU if they support it on Linux.
If you have an AMD GPU, read the official ROCm documentation and the current GPU compatibility list. Not every consumer Radeon card is supported. Mesa is enough for desktop graphics and for some game play; it is not automatically enough for every local-LLM acceleration path.
Intel-only laptops can still run small models on the CPU. It will be slower. That can be fine for learning, and it is a bad plan if you expected to run a large image-generation workflow at a decent pace.
Image generation and front ends
ComfyUI, web UIs, and similar tools are their own ecosystems, usually installed in a Python environment or a container. Prefer project documentation and official Git repositories over one-click scripts of unknown origin. CUDA or ROCm still has to work underneath. If a guide tells you to curl a script into bash, read it first.
Cloud tools (ChatGPT, Gemini, Claude, Adobe Firefly, and so on) work in a browser on any distro and do not need CUDA at all. Use those when you do not actually need a local model.
Distro pick, in one paragraph
Local NVIDIA AI: Ubuntu 26.04 LTS first, then Debian 13 or openSUSE Leap 16 if you have a reason. Local AMD AI: a distro ROCm currently documents, which you must verify on AMD's site, often an Ubuntu LTS. Experimentation without official compute: Fedora or an Arch-based system, with the understanding that you are off the vendor's qualified list. Everyday AI-in-the-browser: any beginner distro is enough.
Read NVIDIA's Linux guide and AMD's ROCm docs before you format a disk. The CUDA page and the Ollama page collect the same links.