By Faheem R. Khattak | Facts checked 30 November 2026
How to Run AI Models on NVIDIA GPUs: A Beginner’s CUDA Setup Guide
Running an AI model on your own NVIDIA graphics card takes four layers, installed in order: the driver, the CUDA Toolkit, the container runtime if you want containers, and then the model itself. Get the order right and a first model can be answering questions within an hour. Get it wrong — install the toolkit before the driver, or install a Linux driver inside Windows Subsystem for Linux — and you can spend an evening debugging a system that was never going to work. This guide walks through the whole setup on Ubuntu 24.04, with the Windows path through WSL2, using CUDA Toolkit 13.5, the current release as checked on 30 November 2026. Every command below is copied from NVIDIA’s own installation guides or from Ollama’s and vLLM’s documentation as read on that date, and where a command comes from a secondary source rather than NVIDIA’s own page, this guide says so.
Two things about this setup have changed recently enough that most older tutorials are now wrong. First, since CUDA 13.4 on Linux the driver is no longer bundled with the toolkit: the cuda-toolkit package installs the toolkit only, and the driver must be installed separately, first. Any tutorial that still runs sudo apt install cuda and expects a driver to appear is out of date. Second, CUDA 13.x only supports Turing-generation GPUs and later — GTX 16-series, RTX 20-series and newer. If your card is older than that, the CUDA 13 path in this guide will not work for you, and section 2 tells you what to do instead. If you want the story of why NVIDIA’s stack dominates AI — what CUDA, cuDNN, TensorRT, Dynamo and NIMs are, and how the hardware generations fit together — our explainer NVIDIA AI Explained covers all of that in full. This guide is the companion to it: the commands, not the story.
One timing note, because today is a busy day in the AI calendar. AWS re:Invent 2026 starts today, 30 November, and NVIDIA’s GTC Washington D.C. runs 30 November to 3 December, with its keynote on 1 December. Neither event changes any install step in this guide — NVIDIA’s re:Invent presence is sessions about NVIDIA-on-AWS, and no announcement found on 30 November 2026 changes a CUDA, driver or toolkit install step — but this guide is dated 30 November 2026 for exactly that reason: versions move, and the version numbers below are the ones that were current on that date. Check the source pages named in the Sources section before you install, because they are the authority, not this guide.

1. The Short Answer: What You Need Before You Start
<img src="

” alt=”A simple four-step path drawn as stepping stones across a small stream, leading to a glowing doorway in the distance. No words on the stones.”>
Think of the setup as four stepping stones, and you must cross them in order. Stone one is the driver: the software that lets the operating system talk to the graphics card at all. Stone two is the CUDA Toolkit: the compiler, libraries and tools that let programs use the card for computing rather than just for drawing pictures. Stone three is the container runtime — the NVIDIA Container Toolkit — which you need only if you plan to run models inside Docker containers; skip it if you will run everything directly on the host. Stone four is the model itself, and the easiest first model is Ollama, a one-command runner that downloads a small model and starts a chat with it on your GPU.
The headline versions for this guide, all as checked on 30 November 2026, are: CUDA Toolkit 13.5 (13.5.0, released November 2026), with driver branch R620 for the new 13.5 features — and a second, lower number that matters just as much. Existing CUDA 13.x applications run on drivers version 580 or newer under CUDA’s minor-version compatibility, so the rule is “580 or newer to run, R620 for the new 13.5 features”, never a single version number as if it were the whole rule. The compatibility table from NVIDIA’s CUDA 13.5 Release Notes makes the pattern clear: CUDA 13.x needs a driver of 580 or newer, CUDA 12.x needs 525 or newer, and CUDA 11.x needs 450 or newer. Do not look for a specific R620 build number in this guide: the exact build was not re-confirmed against NVIDIA’s documentation on 30 November 2026, so this guide gives the branch and tells you to take the latest driver from NVIDIA’s repository or driver page.
Before you start, the checklist is short. You need an NVIDIA GPU that is Turing-generation or newer (section 2 shows how to check), a supported Linux distribution — Ubuntu 26.04, 24.04 or 22.04 LTS for the commands in this guide — or Windows 11 with WSL2 for the Windows path in section 5, an internet connection for the downloads, and about 7 GB of free disk space for the first model alone, plus room for the toolkit. You also need to know that the driver and the toolkit are now separate installs: install the driver first, reboot, check it with nvidia-smi, and only then install the toolkit. That order is the single most important sentence in this guide, and most of the troubleshooting in section 11 is what happens when it is ignored.
One more thing the short answer should settle: what this guide is not. It does not explain what CUDA is as a platform, it does not compare GPU generations, it does not cover data-centre systems, and it does not tell you which graphics card to buy — there is no purchase recommendation anywhere in this guide. The “why” is covered by our NVIDIA stack explainer, linked in the introduction, and by our guide to how AI works, which explains why AI needs the parallel compute a GPU provides. What follows is the “how”: the checks, the installs, the verification, the first model, and the fixes for the errors every beginner hits.
2. Is Your GPU Ready? Check Before You Install

The most common beginner mistake is installing everything and only then discovering the hardware was never supported. Three quick checks, all from NVIDIA’s CUDA Installation Guide for Linux, take about a minute and save that evening. First, check the graphics card is actually there and that Linux can see it:
lspci | grep -i nvidia
If that prints a line naming your card, the hardware is visible. Then confirm the card is on NVIDIA’s list of CUDA-capable GPUs at developer.nvidia.com/cuda-gpus — the guide’s own instruction is to check the list, because the lspci output alone does not prove the card can run CUDA. Second, check the operating system:
hostnamectl
This confirms which distribution and version you are running, so you can pick the matching repository — ubuntu2404 for Ubuntu 24.04, ubuntu2204 for 22.04, ubuntu2604 for 26.04. Third, check the compiler:
gcc --version
One nuance worth knowing: gcc is required for development with the toolkit — compiling CUDA programs — but it is not required for running CUDA applications. If you only ever plan to run models, not write CUDA code, the compiler check is informational. If you plan to build anything, install the compiler first; section 3’s prerequisite line does exactly that.
The check that actually decides whether this guide works for you is the GPU generation. CUDA Toolkit 13.x supports Turing and later GPU architectures — compute capability 7.5 and above. In plain terms: GTX 16-series cards, RTX 20-series cards, and everything newer. That covers the RTX 30-series and 40-series cards most readers will own, the RTX 50-series, and the data-centre cards in Ollama’s support table. If your card is Maxwell, Pascal or Volta — a GTX 10-series card, for example, or a GTX 9-series — you cannot follow the CUDA 13 path. Those cards need CUDA 12.x, and this guide’s commands will not work for them. According to current Ubuntu install guides, the 580 driver branch is the last one supporting pre-Turing cards; that claim comes from those guides, not from an NVIDIA page read first-hand on 30 November 2026, so treat it as secondary-verified and check NVIDIA’s own supported-GPU list before deciding. The honest advice for an older card is simple: install CUDA 12.x following NVIDIA’s CUDA 12 installation guide, not this one.
There is one wider floor worth knowing before you decide anything, because it changes what “supported” means depending on the tool. Ollama, the first-model runner in section 8, supports NVIDIA GPUs with compute capability 5.0 and above, with driver version 550 or newer — and GPUs with compute capability 5.0 through 6.2 need driver version 570 or newer. That is a much wider net than CUDA 13’s: it reaches back to the GTX 750 Ti (compute 5.0), the GTX 9-series (5.2), the GTX 10-series (6.1) and the P100 (6.0). So a reader with a GTX 1080 can run Ollama on their card even though they cannot compile with CUDA 13 — the difference is that Ollama ships its own pre-built CUDA libraries and does not need you to install the CUDA 13 Toolkit at all. If your card is older than Turing, the practical path is: install the driver, skip sections 3 and 4 of this guide or follow the CUDA 12 guide instead, and go straight to section 8. If your card is Turing or newer, the full guide applies, and the next section starts with the driver.
Finally, clean up before you install. If a previous CUDA Toolkit was installed by a different method — a runfile installer where you now want the Debian packages, or the other way round — uninstall it first, because NVIDIA’s guide warns that conflicting installs cause failures. For a runfile install, the uninstaller is at /usr/local/cuda-X.Y/bin/cuda-uninstaller (with X.Y replaced by your version, for example 12.8). For a Debian package install, remove it with apt --purge remove <package_name>. And if you download a runfile or local installer rather than using the network repository, verify the download before running it: NVIDIA posts MD5 checksums at developer.download.nvidia.com/compute/cuda/13.5.0/docs/sidebar/md5sum.txt, and you compare them with md5sum <file>. The network repository method in section 4 does not need this step, because the package manager verifies the packages itself.
3. Install the NVIDIA Driver on Ubuntu

The driver comes first, and it comes separately. That is the whole point of the CUDA 13.4 packaging change: starting with CUDA 13.4 on Linux (and 13.1 on Windows), the CUDA Toolkit and the NVIDIA driver are versioned and installed independently, and none of the toolkit meta packages install or depend on the driver. NVIDIA’s installation guide says it plainly, and the consequence for a beginner is that the install is now two jobs, not one — and the driver job happens first. The CUDA repository’s driver packages are nvidia-open and cuda-drivers, listed in the guide’s package-ownership table for CUDA 13.4 and later, and the sequence below installs the driver from NVIDIA’s own repository on Ubuntu 24.04.
Start with the prerequisites. The driver needs kernel headers so it can build its kernel module, and the compiler toolchain alongside them:
sudo apt update sudo apt install -y build-essential linux-headers-$(uname -r)
The build-essential and kernel-headers prerequisite comes from two independent Ubuntu guides that tested the install on fresh Ubuntu 24.04 and 26.04 systems; NVIDIA’s own guide requires gcc and kernel headers as pre-installation steps, so the requirement is NVIDIA’s even though the exact command line is corroborated by those guides. Then add NVIDIA’s CUDA repository. Download the keyring package — the filename and URL are verbatim from the CUDA Installation Guide, section 4.7.3, with the distribution and architecture substituted (ubuntu2404 and x86_64 for Ubuntu 24.04 on a 64-bit PC; use ubuntu2204 for 22.04 and ubuntu2604 for 26.04):
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb sudo dpkg -i cuda-keyring_1.1-1_all.deb sudo apt update
Now install the driver itself and reboot:
sudo apt install -y nvidia-open sudo reboot
One flag on that install command, because honesty about provenance matters in a setup guide: the package name nvidia-open is from NVIDIA’s guide, but the exact command line sudo apt install -y nvidia-open is secondary-corroborated rather than a verbatim NVIDIA command — it is the form two independent Ubuntu guides tested on fresh systems. It is the command to use, and it is presented here as written, but it is not quoted as NVIDIA’s own words. After the reboot, verify the driver with the one command every NVIDIA user should know:
nvidia-smi
If the driver is working, nvidia-smi prints a table showing the driver version, the GPU name and the VRAM. If it prints an error instead, do not continue to the toolkit: the driver is not loaded, and section 11’s troubleshooting table starts exactly here. One more detail worth knowing about that output, attributed to current Ubuntu install guides rather than to NVIDIA’s pages read on 30 November 2026: the “CUDA Version” field in nvidia-smi shows the CUDA version the driver supports, not the toolkit version you have installed. The toolkit version is what nvcc --version shows, in section 6. Confusing the two is a classic beginner error — a driver that reports CUDA 13.5 does not mean the toolkit is installed.
There is an alternative for readers who do not want NVIDIA’s repository at all. Ubuntu can install the driver from its own packages: install it with sudo apt install ubuntu-drivers-common, list what Ubuntu recommends with ubuntu-drivers devices, then install with sudo ubuntu-drivers install and reboot. That path comes from a secondary source, and it is a genuine alternative — but it is not NVIDIA’s recommended path, and this guide does not present it as such. Whichever path you choose, one rule is absolute, and it comes from NVIDIA’s Driver Installation Quickstart: never mix installation methods. “Mixing installation methods (e.g. .run installers and .deb/.rpm packages) may result in driver conflicts and an unusable system.” Pick one method — repository packages, Ubuntu’s own packages, or a runfile — and stay with it. The quickstart document is from the R550 era, March 2024, but the warning is a standing rule about how the driver is packaged, not a version claim, and it applies just as much to CUDA 13.5.
4. Install the CUDA Toolkit on Ubuntu

With the driver installed and verified, the toolkit is the short job. NVIDIA recommends the network repository method, and if you followed section 3 you have already added the repository and its keyring — the two commands below are the same keyring steps, repeated here so this section works on its own for a reader who already has a driver from another method:
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb sudo dpkg -i cuda-keyring_1.1-1_all.deb sudo apt update sudo apt install cuda-toolkit
NVIDIA’s guide carries one note about those last two commands that is easy to miss: the sudo apt update and the sudo apt install cuda-toolkit must be executed separately, not combined into one line. The cuda-toolkit meta package installs the full set of CUDA packages for native development — the compiler (nvcc), the debugger, the profiler and the math libraries. What it does not install, since CUDA 13.4, is a driver. If you installed the toolkit and then ran nvidia-smi and saw an error, the most likely explanation is that you skipped section 3, not that the toolkit install failed.
Version pinning is where the toolkit install gets its flexibility, and it is worth understanding even if you never use it. Plain cuda-toolkit follows the latest release, so a future apt upgrade will move you to the next CUDA version. sudo apt install cuda-toolkit-13-5 installs that version and will not upgrade beyond it, while cuda-toolkit-13 stays within the 13.x series. Side-by-side installations are supported, so you can keep 13.5 and an older version on the same machine and switch between them. For a beginner following this guide, plain cuda-toolkit is the right choice; pinning is for the day you have a project that depends on one exact CUDA version and cannot move.
Two alternative install methods exist, and each deserves one paragraph so you know they are there without being distracted by them. The local repository method downloads the whole toolkit as a local package file, installs it with dpkg -i cuda-repo-<distro>-X-Y-local_<version>*_<arch>.deb, then copies the keyring with cp /var/cuda-repo-<distro>-X-Y-local/cuda-*-keyring.gpg /usr/share/keyrings/ and fetches the pin file with wget https://developer.download.nvidia.com/compute/cuda/repos/<distro>/<arch>/cuda-<distro>.pin before moving it to /etc/apt/preferences.d/cuda-repository-pin-600. It is the method for machines without reliable internet access during installation. The runfile method downloads a single cuda_<version>_linux.run file and runs it with sh cuda_<version>_linux.run, an interactive installer that defaults to /usr/local/cuda-13.5 with a /usr/local/cuda symlink pointing at it. It is the method for machines where the package manager is not an option. For a beginner on a normal Ubuntu desktop, the network repository is the path, and the other two are there to know about, not to use.
One post-installation step is mandatory, and NVIDIA’s guide puts it in its own section for a reason. Add the toolkit’s binary directory to your PATH:
export PATH=${PATH}:/usr/local/cuda-13.5/bin
That line works for the current shell; add it to your shell’s startup file (for example ~/.bashrc) to make it permanent. One distinction the guide states explicitly: runfile installs also need export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/cuda-13.5/lib64, but Debian and RPM installs do not need that step — the package manager handles the library path. If you installed from the repository and then added the LD_LIBRARY_PATH line anyway, it is harmless but unnecessary, and a cleaner setup omits it.
Finally, the supported distributions behind all of this, from the installation guide’s own table for CUDA 13.5: Ubuntu 26.04, 24.04 and 22.04 LTS, Debian 12 and 13 (with Debian 12 deprecated in 13.5 — support ends with this release), RHEL 8, 9 and 10, Fedora 44, SUSE, Amazon Linux 2023 and Azure Linux 3.0. The guide also lists the kernels and compilers it validated against — for Ubuntu 24.04.5, kernel 7.0.0-38 with GCC 13.3.0, and for Ubuntu 22.04.5, kernel 6.5.0-45 with GCC 12.3.0 — which is why the guide’s commands assume a reasonably current system. If your Ubuntu install is years out of date, update it before you start; the toolkit’s expectations are written against current releases.
5. Windows Path: CUDA on WSL2

Windows users do not install CUDA on Windows for this guide. They install it on Linux running inside Windows, through Windows Subsystem for Linux version 2 — and the single rule that governs the whole path is that the driver lives on the Windows side only. NVIDIA’s CUDA on WSL User Guide says it in bold terms: install the latest NVIDIA GeForce or RTX Windows display driver from nvidia.com/drivers, and “this is the only driver you need to install. Do not install any Linux display driver in WSL.” Installing a Linux driver inside WSL overwrites the driver that Windows maps into WSL, and that is the mistake that breaks the setup most thoroughly. No Windows driver version number is given in this guide, because NVIDIA’s WSL guide gives none — it says only to use the latest Windows production driver and refers to the CUDA Toolkit Release Notes for the minimum.
The requirements are straightforward. WSL 2 is required; WSL 1 does not support GPU acceleration at all, so a distribution still running under WSL 1 will never see the GPU. You need Windows 11, or Windows 10 version 21H2 or later, with Windows 11 recommended — Windows 10 reached end of support on 14 October 2025, so a Windows 10 machine is on borrowed time for more than just CUDA. Install or update WSL from PowerShell:
wsl.exe --install wsl.exe --update
If you already have a distribution running under WSL 1, convert it with wsl.exe --set-version <distribution-name> 2, and check what you have with wsl.exe --version. Then enter WSL — wsl.exe on its own opens the default distribution, which is Ubuntu — and from that point on, you are on Linux, and the Linux instructions apply.
Inside WSL, the toolkit install is the standard Linux install from section 4, and that is itself a change worth naming. Starting with CUDA 13.4, the cuda meta package no longer installs the NVIDIA driver, and you can install the standard Linux CUDA Toolkit packages for any Linux distribution NVIDIA supports — a separate WSL-specific CUDA Toolkit package is no longer required. The guide’s example is the same command as on bare metal, after adding the repository per section 4:
sudo apt install cuda-toolkit
And the warning bears repeating inside WSL, because the temptation is specific to this setup: “You must not install any NVIDIA Linux GPU driver within WSL. Do not install the cuda-drivers or nvidia-open packages. Installing a Linux driver overwrites the driver that is mapped into WSL from the Windows host.” The Windows driver is stubbed inside WSL as libcuda.so — the Linux side sees a CUDA library, not a driver, and that is by design.
One migration step applies if you set up CUDA on WSL before this change. The old wsl-ubuntu CUDA repository is deprecated and does not provide CUDA 13.4 or later, so an existing WSL install that still points at it will never see the new toolkit. Migrate by removing the old keyring — sudo apt remove --purge cuda-keyring, or manually remove /etc/apt/sources.list.d/cuda-wsl-ubuntu-x86_64.list — then install the cuda-keyring for your distribution. The guide’s example is for Ubuntu 26.04:
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2604/x86_64/cuda-keyring_1.1-1_all.deb sudo dpkg -i cuda-keyring_1.1-1_all.deb sudo apt update sudo apt install cuda-toolkit
WSL has limits a beginner should know before trusting it for serious work. GPU acceleration is available on GeForce and RTX GPUs in WDDM mode only — not on RTX GPUs in TCC mode, and not on data-centre GPUs. CUDA 13.x supports Turing and later, the same floor as on bare metal. Full Unified Memory is not supported on WSL. With the Container Toolkit on WSL, only --gpus all is supported — you cannot filter by GPU index. And nvidia-smi has a limited feature set on WSL; as root on bare metal (not in containers) you can use /usr/lib/wsl/lib/nvidia-smi or add /usr/lib/wsl/lib/ to your PATH. None of these limits stops a first model run, which is what this guide is for — but they are the reason a reader who outgrows WSL will eventually want a native Linux install, and the reason the native path in sections 3 and 4 is the guide’s main path rather than an afterthought.
6. Verify It Works: nvidia-smi, nvcc and deviceQuery

Verification is three checks in order, and each one tests a different layer. Skip one and you will debug the wrong layer later. The first check is the driver, and you already met it in section 3:
nvidia-smi
Good output is a table: the driver version at the top, the GPU name, the temperature, the power draw and the VRAM, with the memory usage showing how much is in use. If nvidia-smi fails, the driver is not loaded — stop here and work through section 11, because nothing downstream can work without it. Remember the attribution from section 3: the “CUDA Version” in that table is the CUDA version the driver supports, not the toolkit you installed. A driver reporting CUDA 13.5 with no toolkit installed is a normal state of affairs, not a contradiction.
The second check is the toolkit, and it is one command:
nvcc --version
Good output names the compiler and its version — for this guide, a CUDA 13.5 compiler. If the shell says nvcc is not found, the most likely cause is the missing PATH export from section 4: the toolkit is installed, but the shell does not know where its binaries live. Add /usr/local/cuda-13.5/bin to your PATH, open a new terminal or re-source your shell startup file, and try again. If nvcc reports an older version than 13.5, you probably have a second, older toolkit on the system — the side-by-side installations section 4 mentions — and the PATH is pointing at the old one.
The third check is the real one: a program that actually talks to the GPU. The CUDA Samples now live at github.com/nvidia/cuda-samples, where you build and run deviceQuery. Success means three things at once: a CUDA-capable device was found, it matches your GPU, and the test passed. Its companion, bandwidthTest, confirms the system and the GPU communicate properly by measuring the transfer speed between them. These two small programs are the difference between “the commands ran” and “the GPU works”, and they are worth the few minutes they take to build.
If deviceQuery reports no CUDA-capable device, the failure is usually below the toolkit, in the device files themselves. NVIDIA’s guide names the cause: the /dev/nvidia* files are likely missing or have the wrong permissions. Check that the device files exist and that your user can access them; a driver that installed but never loaded, or a system where the device nodes were not created, produces exactly this error. On SELinux systems there is a second, specific cause: the security policy can block access to the device, and NVIDIA’s stated workaround is setenforce 0 run as superuser, which temporarily sets SELinux to permissive mode so you can confirm the diagnosis. That is a diagnostic step, not a permanent configuration — if it fixes the problem, the SELinux policy needs a proper rule, and running a system permanently in permissive mode is not the answer. Once all three checks pass — nvidia-smi shows the card, nvcc --version shows 13.5, and deviceQuery passes — the setup is real, and the next sections put it to work.
7. Install the NVIDIA Container Toolkit

Containers are how most serious local AI work is actually run, and the NVIDIA Container Toolkit is the piece that lets a Docker container see your GPU. The first fact to absorb is what you do not need: the CUDA Toolkit is not required on the host for containers. The container image carries its own CUDA libraries; the host needs the driver and a container engine, and the toolkit guide’s own prerequisite list is exactly those two. If you installed the toolkit in section 4, it is still useful for native work — but a reader who only ever runs models in containers could skip section 4 entirely, install the driver, and start here.
The current version, pinned in every install command in NVIDIA’s Container Toolkit Installation Guide as read on 30 November 2026, is 1.20.2-1. The install on Ubuntu and Debian adds NVIDIA’s container repository, then installs the toolkit packages at that pinned version. The commands are verbatim from the guide:
sudo apt-get update && sudo apt-get install -y --no-install-recommends ca-certificates curl gnupg2
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg
&& curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list |
sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' |
sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
sudo apt-get update
export NVIDIA_CONTAINER_TOOLKIT_VERSION=1.20.2-1
sudo apt-get install -y
nvidia-container-toolkit=${NVIDIA_CONTAINER_TOOLKIT_VERSION}
nvidia-container-toolkit-base=${NVIDIA_CONTAINER_TOOLKIT_VERSION}
libnvidia-container-tools=${NVIDIA_CONTAINER_TOOLKIT_VERSION}
libnvidia-container1=${NVIDIA_CONTAINER_TOOLKIT_VERSION}
The export line sets the version variable the install commands use, so all four packages install at 1.20.2-1 together. Then configure Docker to use the NVIDIA runtime and restart it:
sudo nvidia-ctk runtime configure --runtime=docker sudo systemctl restart docker
The nvidia-ctk command edits /etc/docker/daemon.json so Docker can use the NVIDIA Container Runtime; the restart makes Docker pick up the change. If you run rootless Docker, the variant is nvidia-ctk runtime configure --runtime=docker --config=$HOME/.config/docker/daemon.json, then systemctl --user restart docker, then sudo nvidia-ctk config --set nvidia-container-cli.no-cgroups --in-place. The guide also covers containerd, CRI-O and Podman configurations for readers who do not use Docker, but Docker is the beginner path and the one this guide walks through.
Verify the whole stack with the sample workload from NVIDIA’s own guide:
sudo docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi
Good output is an nvidia-smi table printed from inside the container, showing your GPU. One warning about that output: the guide’s own example shows a Tesla T4 with driver 535.86.10 and CUDA 12.2 — those are the guide’s example numbers, not today’s versions, and your driver and CUDA numbers will differ. What matters is the shape of the output — a real table naming your real GPU — not the numbers in the example. The Podman variant, for readers who use Podman instead of Docker, is podman run --rm --security-opt=label=disable --device=nvidia.com/gpu=all ubuntu nvidia-smi.
One known issue from the toolkit guide deserves a line, because it bites silently: on systems using systemd cgroup drivers, containers can lose GPU access when systemctl daemon reload runs — see the toolkit’s troubleshooting documentation if a container that worked yesterday suddenly cannot see the GPU today after a system service reload. It is the kind of failure that looks like a broken install and is actually a runtime state problem, and knowing it exists saves the reinstall it usually provokes.
8. Your First Model: Ollama on the GPU

With the driver and toolkit in place, the first model is the easy part — deliberately so. Ollama is a one-command runner: it downloads a model, loads it onto the GPU, and starts a chat with it, all from the terminal. Install it on Linux with the command from Ollama’s own download page:
curl -fsSL https://ollama.com/install.sh | sh
Windows users run the PowerShell equivalent, irm https://ollama.com/install.ps1 | iex. The installer prints “NVIDIA GPU installed” when it detects an NVIDIA GPU — a small confirmation that the detection worked, corroborated by a secondary source rather than Ollama’s own documentation, so treat it as a reassuring sign rather than a guarantee. Then run the first model, from Ollama’s quickstart:
ollama run gemma4:e2b
Ollama downloads the model and starts a chat. Type a question, get an answer from your own GPU, and type /bye to leave. That is the whole first run — and it is worth pausing on what just happened, because the distance between “I installed CUDA” and “a model is answering me” is exactly one command, and that is why Ollama is the first-model path in this guide rather than a framework you have to configure first.
The numbers attached to that first run are the ones section 10 builds on, so note them now. The model download is about 7.2 GB, and Ollama recommends 8 GB of available VRAM — or unified memory on a Mac, which does not apply to this guide’s Linux and Windows readers. Larger context windows need more memory. With less VRAM, Ollama can use system RAM, but responses may be slower — the model still runs, it just runs with part of its weights spilling out of the GPU’s fast memory into the computer’s slower main memory. That trade-off, fast VRAM against slow system RAM, is the central fact of running models locally, and section 10 explains how to think about it.
Three more Ollama commands complete the beginner’s toolkit. ollama pull gemma4:e2b downloads a model without starting a chat, which is how you stage models in advance. On Linux, ollama serve starts the server if it is not already running. And the server itself listens on http://localhost:11434, with an OpenAI-compatible endpoint at POST http://localhost:11434/v1/chat/completions taking a body with {"model": "gemma4:e2b", ...} — which means any tool that can talk to OpenAI’s API can talk to your local model instead, by pointing at your own machine. No API key is needed for local models; Ollama itself is free and open source, and the models it downloads are free to run locally.
Two power-user details from Ollama’s GPU documentation are worth knowing early, because both solve problems that otherwise look like broken installs. On a multi-GPU machine, limit Ollama to specific GPUs with CUDA_VISIBLE_DEVICES, a comma-separated list of GPU identifiers — UUIDs are more reliable than numeric IDs, and you can discover them with nvidia-smi -L. Force CPU-only running with an invalid GPU ID, for example -1, which is useful for testing whether a problem is GPU-related at all. And there is a suspend-and-resume bug on Linux: after the machine sleeps and wakes, Ollama may fail to discover the NVIDIA GPU and silently fall back to CPU, so your model gets slow for no visible reason. The workaround from Ollama’s own documentation is to reload the unified-memory kernel module:
sudo rmmod nvidia_uvm && sudo modprobe nvidia_uvm
Finally, the container path. Ollama also ships as a container, and the documented container form is docker run -d --gpus=all -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama — but be clear about what that is: the --gpus=all form is corroborated by a secondary source, while Ollama’s own documentation confirms the image exists and the 11434 port. It is presented here as the documented container form, not as a command this desk tested. If you followed section 7, the container runtime is already in place, and this is the natural next step. As for what to run once Ollama works: DeepSeek’s models are a popular local run, and so are Kimi’s models — both are covered in depth in their own explainers, and both are the kind of model a reader reaches for once the 2-billion-parameter first run feels small.
9. The Next Step Up: vLLM for Serving Models

Ollama is the beginner’s one-command runner. vLLM is the serving engine — the thing you reach for when Ollama stops being enough, when you want to serve a model to many users at once, batch requests for throughput, or run a proper OpenAI-compatible API server. The difference is one of job, not of quality: Ollama is for one person chatting with one model; vLLM is for a model that has to serve. Keep that distinction in mind and the choice between them is usually obvious.
The prerequisites are Linux and Python 3.9 to 3.12. The install, from vLLM’s own quickstart documentation, uses uv:
uv venv myenv --python 3.12 --seed source myenv/bin/activate uv pip install vllm
The documentation also shows uv pip install vllm --torch-backend=auto as an alternative install form. No vLLM version number is given in this guide: the documentation excerpts read on 30 November 2026 span references to v0.10.1 and v0.34.0, and no single current version was confirmed, so the install commands are given without a version to pin to. The offline-inference example from the same documentation is the fastest way to prove the install works:
from vllm import LLM, SamplingParams
prompts = [
"Hello, my name is",
"The president of the United States is",
"The capital of France is",
"The future of AI is",
]
sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
llm = LLM(model="facebook/opt-125m")
outputs = llm.generate(prompts, sampling_params)
By default vLLM downloads models from Hugging Face. The example model, facebook/opt-125m, is a 125-million-parameter test model — say that plainly, because it matters: it is there to prove the setup works, not for real use. Nobody’s first real model is 125 million parameters; everybody’s first proof that the engine works should be. Once the offline example runs, the server form is one command:
vllm serve Qwen/Qwen2.5-1.5B-Instruct
That starts an OpenAI-compatible server on your machine, serving the Qwen 2.5 1.5-billion-parameter instruction model — a real, usable small model, and the Qwen family is covered in our guide to Qwen models explained for readers who want to know what they are running.
The Ollama-versus-vLLM decision, in one paragraph, is this: choose Ollama when the job is one person, one model, one conversation — learning, tinkering, a personal assistant, a quick test of a new model. Choose vLLM when the job is serving — an API endpoint other programs will call, many requests at once, throughput that matters, batching that saves GPU time. vLLM is the serving engine, with batching and throughput and an API server as its reason to exist; Ollama is the runner, with simplicity as its reason to exist. Many readers will end up with both: Ollama on the laptop for trying models, vLLM on the bigger machine for serving the one they settled on. That is a normal, sensible setup, and neither tool is a replacement for the other.
10. Pick a Model That Fits Your VRAM

VRAM — the memory on the graphics card — is the hard limit on what you can run, and it is the number beginners misunderstand most. The honest framing is that how much VRAM a model needs grows with three things: the size of the model, the quantisation it was compressed with, and the length of the context window you give it. A bigger model needs more memory. A more aggressively compressed model needs less. A longer conversation needs more, because the model has to remember more of what was said. All three move the number, which is why a single figure per model is misleading — and why this guide does not print a per-model VRAM table. No official per-model table was read for this guide, and printing one would mean inventing it.
What is verified, and what this section is built on, is the anchor from Ollama’s own documentation: the gemma4:e2b first run downloads about 7.2 GB and Ollama recommends 8 GB of available VRAM. That is a 2-billion-parameter-class model, and it fits in roughly 8 GB. From that anchor, the researcher’s reasoned guidance — presented here as rough guidance, not vendor figures — is that a 2B-class model fits in about 8 GB, an 8B-class model is the usual next step up and needs a bigger card, and 70B-class models do not fit on a single consumer card at all. Those are size-class statements, phrased with “roughly” and “typically” deliberately, because the exact number depends on the quantisation and the context length as much as on the parameter count. Do not treat them as specifications; treat them as the shape of the answer, and check the model’s own page before downloading anything large.
Two things this section deliberately does not say. It does not state the “1 GB per billion parameters at 4-bit quantisation” rule of thumb: that rule was not verified against any official source on 30 November 2026, and Ollama’s own gemma4:e2b example — a 2-billion-parameter model with a 7.2 GB download — shows it would mislead. And it does not recommend a graphics card to buy. The brief for this guide gives no “buy this card” advice, and this article follows that: it may say which existing cards the setup works on — the RTX 3060 and the RTX 4060 — 12 GB and 8 GB cards respectively — both appear in Ollama’s own support table, as are the whole RTX 30-series and 40-series lines — but it must not recommend a purchase. If you already own a card, the question is what fits on it, and the anchor above answers that. If you do not own one yet, that is a buying guide, not this guide.
The practical consequence of getting the size wrong is not a crash but a slowdown. With less VRAM than the model wants, Ollama offloads layers to system RAM, and responses get slower — the model still answers, it just answers from the computer’s slower memory instead of the GPU’s fast memory. That is worth knowing because it changes how you diagnose a slow model: a model that answers correctly but slowly is often a model that does not fit, not a model that is broken. The fixes are to pick a smaller model, use a more compressed quantisation, or shorten the context window — in that order, because the model choice is the biggest lever and the context window is the easiest to change. For choosing between models once the size question is settled, our guide to how to choose an AI model is the next step: it covers the choice itself, while this section covers only whether the choice fits on your card.
11. Troubleshooting: The Errors Every Beginner Hits

Every beginner hits the same handful of errors, and every one of them has a cause and a fix that traces back to the documentation already cited in this guide. The table below is the whole section in miniature; the paragraphs after it add the context that makes each row make sense. Work through it top to bottom when something fails, and resist the urge to reinstall everything — most of these errors are one wrong step, not a broken system.
| Error | Likely cause | Fix |
|---|---|---|
deviceQuery reports “no CUDA-capable device” | The /dev/nvidia* device files are missing or have the wrong permissions, or the driver never loaded | Check the device files exist and are accessible; confirm the driver is loaded with nvidia-smi; on SELinux systems, setenforce 0 as superuser is NVIDIA’s stated diagnostic workaround |
Driver and toolkit disagree — nvidia-smi works but CUDA programs fail, or versions do not match | Driver installed after the toolkit, or an old driver with a new toolkit (or the reverse), outside the minor-version compatibility rule | Install the driver first, then the toolkit; check the pairing — CUDA 13.x needs a driver of 580 or newer, and the new 13.5 features need R620 or newer; never mix install methods |
nvidia-container-cli: initialization error in a container | The container runtime was never configured, Docker was not restarted after configuration, or the container was started without GPU access | Run sudo nvidia-ctk runtime configure --runtime=docker, then sudo systemctl restart docker; start the container with --gpus all (on WSL, only --gpus all is supported) |
| Ollama runs on CPU after suspend and resume | Ollama fails to discover the NVIDIA GPU after the machine wakes from sleep | Reload the unified-memory module: sudo rmmod nvidia_uvm && sudo modprobe nvidia_uvm |
apt autoremove removed the driver | The driver was originally installed as an automatic dependency of the cuda meta package (CUDA 13.3 and earlier), so upgrading to CUDA 13.4+ left it unrequired by any package | Before cleaning up, mark the driver explicit: check with dpkg -l nvidia-open cuda-drivers, then sudo apt-mark manual <package>, then verify with sudo apt autoremove --dry-run before running the real thing |
| WSL setup broken after installing a Linux driver inside WSL | A Linux driver was installed inside WSL, overwriting the driver Windows maps in from the host | Remove the Linux driver packages (cuda-drivers / nvidia-open) from inside WSL, reinstall the Windows driver from nvidia.com/drivers, and never install a Linux driver in WSL again |
The deviceQuery failure is the most common, and it is also the most misdiagnosed, because it looks like a toolkit problem and is almost always a driver or device-file problem. The toolkit compiled the program fine — that is why it runs at all — and the program then found no device to talk to. Check nvidia-smi first: if it fails too, the driver is the problem, and the fix is in section 3. If nvidia-smi works and deviceQuery does not, the device files are the problem, and the permissions note in section 6 is the fix.
The autoremove trap deserves its own paragraph, because it is the one error in this table that destroys a working system rather than merely failing to start one. NVIDIA’s installation guide, section 12, documents it plainly: if the driver was originally installed as an automatic dependency of the cuda meta package — which is how CUDA 13.3 and earlier installed it — then upgrading to CUDA 13.4 or later leaves the driver installed but no longer required by any package. At that point apt autoremove, a command every Ubuntu user runs casually during cleanup, can remove the whole NVIDIA driver stack. The fix is to mark the driver as manually installed before you ever clean up: list it with dpkg -l nvidia-open cuda-drivers, mark it with sudo apt-mark manual <package>, and always check with sudo apt autoremove --dry-run before letting autoremove run for real. It is a thirty-second precaution against an afternoon of reinstalling a driver, and it is the single most valuable line in this section.
The WSL row is the one error that is genuinely hard to recover from by trial and error, because the damage is invisible from inside WSL: the Linux driver overwrote the Windows-mapped driver, and everything inside WSL still looks normal until a program tries to use the GPU and fails. The fix is to remove the Linux driver from inside WSL, go back to Windows, reinstall the Windows driver, and treat “never install a Linux driver in WSL” as a rule rather than a suggestion. And the container error, the third row, is usually the simplest of all: the runtime was configured but Docker was never restarted, or the container was started without --gpus all. Both are one command, and both are in section 7.
12. What Running AI Locally Costs

Running a model on your own card has a cost structure that is the opposite of the cloud’s, and understanding it is part of deciding whether local is right for you. The cloud bills you while the machine runs, including while it sits idle; your own card costs nothing when it is off. That single difference shapes everything else in this section, so keep it in mind as the numbers go past.
The electricity cost is the only running cost a local setup has, and it is a formula rather than a figure. Power in watts multiplied by hours, divided by 1,000, gives kilowatt-hours: watts × hours ÷ 1,000 = kWh. That formula is the only hard fact in this section. Everything else is an assumption, and this guide labels it as such. Take the worked example: if your card draws about 300 W under load — an assumption, not a measurement of your card — and you run it 10 hours a day, that is 0.3 kW × 10 hours = 3 kWh per day, or about 90 kWh per month. At your tariff, the monthly cost is 90 × your tariff. No dollar figure is printed here, because no electricity tariff was verified for this guide and tariffs vary by country, by provider and by plan. Plug in your own tariff and your own card’s actual draw — the manufacturer’s specification, or a power meter if you have one — and the formula gives you your number. A card that draws less, or runs fewer hours, costs proportionally less; the arithmetic scales linearly, and there is nothing else to it.
The idle-cost contrast with the cloud is where the local setup wins its argument. A local GPU costs nothing when it is off, and a local Ollama server that nobody is talking to costs nothing but the electricity of a computer that is already on. A cloud GPU, by contrast, bills by the hour while it runs, including idle time — the same per-hour logic as the SageMaker section of our AWS guide — and a running vLLM server on a rented machine bills while it sits waiting for requests, exactly as a permanently running cloud endpoint does. No rental price is quoted in this guide, because no cloud GPU rental price was verified from a primary source on 30 November 2026; the point here is the billing model, not the number, and any reader considering a rented GPU should check the provider’s live pricing page before deciding. The shape of the decision is what matters: local is cheap when the machine is off most of the time and expensive only in the hardware you already bought; cloud is cheap when you need it for an hour and expensive when you forget to turn it off.
One more cost fact, and it is a pleasant one: Ollama itself is free and open source, and the models it downloads are free to run locally. There is no licence fee, no subscription, and no API key required for local models. The costs of a local setup are the hardware you already own, the electricity it draws while it runs, and your time — which, for a beginner following this guide, is mostly the hour it takes to install the driver and the toolkit the first time.
13. Local GPU vs Cloud GPU: Which Fits Your Job

Local wins when the job is private, always-on tinkering, or free of a per-token bill. A model running on your own card never sends your prompts to anyone else’s server, which matters the moment the prompts contain anything you would not want leaving your machine — personal notes, unpublished work, anything under a confidentiality obligation. It wins when the work is exploratory: trying ten models in an evening, chatting with a small model while you learn, running a coding assistant against your own code without a meter running. And it wins when the usage is steady but light: a personal assistant that answers a few dozen questions a day costs a few kilowatt-hours a month locally, and a per-token bill for the same traffic, however small, never goes to zero.
Cloud wins when the job is bigger than your card, or when you have no card at all. A 70B-class model does not fit on a single consumer card, and the cloud is where it lives — rented by the hour on a machine with the VRAM to hold it, or behind a managed API where you never see the hardware. Burst work belongs in the cloud too: a job that needs eight GPUs for one afternoon and none for the rest of the month is a rental, not a purchase. And a reader with no NVIDIA GPU at all — a laptop with integrated graphics, a Mac, a machine with an older card — has no local path in this guide, and the cloud is the honest answer rather than a compromise. The cloud side is covered in depth in our guide to Amazon Bedrock explained, the managed-model layer where you rent a finished model by the token, and our guide to Microsoft Azure AI explained, the equivalent on Microsoft’s cloud. Both are the right next read for a reader whose job outgrows a local card.
The comparison that makes the choice concrete is against the hosted models themselves. A local 8B-class model is free to run and private, but it is not as capable as the flagship hosted models — and the model most readers will compare it against is Claude, the hosted family that anchors the managed cloud catalogues. The trade is capability against privacy and cost: the hosted model is smarter, the local model is yours. Neither answer is right in general; the right answer depends on whether the job needs the smartest model available or the model that never leaves your desk. Rented GPU virtual machines sit in the middle of that trade — a card you do not own, billed by the hour, running your model, with your data on someone else’s machine — and the same rule applies as in section 12: check the provider’s live pricing page, because no rental price is quoted here. One line on that middle option is enough, because it is a variation on the two sides already described rather than a third answer.
14. Verdict: Your Setup Checklist and What to Learn Next

The whole guide, as a checklist, in order. Check the GPU with lspci | grep -i nvidia and confirm it is Turing or newer — or, if it is older, follow the CUDA 12 path or go straight to Ollama. Check the operating system with hostnamectl and the compiler with gcc --version. Install the driver first, from NVIDIA’s repository — keyring, sudo apt install -y nvidia-open, reboot — and verify it with nvidia-smi. Install the toolkit with sudo apt install cuda-toolkit, add /usr/local/cuda-13.5/bin to your PATH, and verify it with nvcc --version. Build and run deviceQuery from the CUDA samples, and do not proceed until it passes. If you want containers, install the Container Toolkit 1.20.2-1, configure Docker with nvidia-ctk runtime configure --runtime=docker, restart Docker, and verify with the sample workload. Install Ollama, run ollama run gemma4:e2b, and have your first conversation with a model on your own GPU. Then, when Ollama feels small, install vLLM and serve Qwen/Qwen2.5-1.5B-Instruct. And before you ever run apt autoremove, mark the driver manual with sudo apt-mark manual.
What to try next, once the checklist is done, is the fun part. Run a bigger model: the 8B-class step up from gemma4:e2b is the natural second run, and it is where the VRAM guidance in section 10 becomes practical rather than theoretical. Put the vLLM server behind a real project: a small API that your own programs can call, on your own machine, with no per-token bill. Or run a coding assistant against your local model — our guide to AI coding assistants compared covers the assistants themselves, and a local model is a legitimate engine for one, for code you would rather not send to a hosted service. Each of those is a small project in its own right, and each one builds on exactly the setup this guide installs.
The honest limits belong in the verdict, not in a footnote. First, the versions: every version in this guide — CUDA 13.5, driver branch R620 with the 580 floor, Container Toolkit 1.20.2-1 — is date-stamped 30 November 2026. AWS re:Invent 2026 starts today and NVIDIA’s GTC Washington D.C. keynote is tomorrow, 1 December; either could add news, but no announcement found on 30 November 2026 changes these install steps, and this guide makes no prediction about what either event will announce. Second, the provenance: the nvidia-open install line is secondary-corroborated rather than verbatim from NVIDIA, the “580 is the last branch for pre-Turing cards” claim comes from Ubuntu install guides rather than an NVIDIA page, and the Ollama container form is presented as documented rather than tested by this desk. Those distinctions are stated in the sections where they arise, and they are repeated here so a reader who skips to the verdict still sees them. Third, the scope: this guide covers Ubuntu and WSL2 only. Native Windows CUDA installation — the .exe network installer and its Visual Studio integration — is not covered, because it was not verified first-hand from NVIDIA’s Windows installation guide for this post, and a setup guide that guesses at install steps is worse than one that says it does not cover them. Check the source pages in the Sources section on the day you install. The driver, the toolkit, the container runtime and the model are all yours now — and the model answering from your own graphics card is the proof the setup worked.
Sources
All sources checked 30 November 2026 unless stated. Version numbers are as listed on that date; the source pages named below are the authority for current versions.
- NVIDIA — CUDA Installation Guide for Linux 13.5 (docs.nvidia.com/cuda/cuda-installation-guide-linux/), read in full 30 November 2026: supported distributions (Ubuntu 26.04 / 24.04 / 22.04), pre-installation checks (
lspci | grep -i nvidia,hostnamectl,gcc --version), Ubuntu network-repository install (cuda-keyring_1.1-1_all.deb,sudo apt install cuda-toolkit), meta packages and pinning (cuda-toolkit-13-5,cuda-toolkit-13), driver and toolkit separation since CUDA 13.4, PATH export (/usr/local/cuda-13.5/bin), deviceQuery and bandwidthTest verification, the/dev/nvidia*failure note, SELinuxsetenforce 0, and the section 12apt autoremovedriver-removal trap with theapt-mark manualfix. - NVIDIA — CUDA on WSL User Guide 13.5 (docs.nvidia.com/cuda/wsl-user-guide/), read in full 30 November 2026: WSL 2 required, Windows driver only and never a Linux driver inside WSL,
wsl.exe --install/--update/--set-version, standard Linux toolkit packages inside WSL, deprecated wsl-ubuntu repository migration, WSL limits (WDDM only, no TCC or data-centre GPUs, no full Unified Memory,--gpus allonly, limitednvidia-smi,/usr/lib/wsl/lib/nvidia-smi), CUDA 13.x Turing floor. - NVIDIA — NVIDIA Container Toolkit Installation Guide (docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html), read in full 30 November 2026: version 1.20.2-1, apt install commands verbatim,
nvidia-ctk runtime configure --runtime=docker,systemctl restart docker, rootless Docker variant, containerd / CRI-O / Podman notes, systemd cgroup known issue. - NVIDIA — Running a Sample Workload (docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/sample-workload.html), read in full 30 November 2026:
sudo docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi, expected output shape (the guide’s example shows driver 535.86.10 / CUDA 12.2 — example output only), Podman variant. - NVIDIA — CUDA Toolkit 13.5 Release Notes (docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html), read via search excerpt 30 November 2026: CUDA 13.5 corresponds to driver branch R620; existing CUDA 13.x applications run on drivers 580 or newer under minor-version compatibility; CUDA 13.5 new features and newly enabled platforms require an R620 or later driver; driver no longer bundled (Windows from 13.1, Linux from 13.4); minor-version compatibility table (13.x ≥580, 12.x ≥525, 11.x ≥450).
- NVIDIA — Driver Installation Quickstart, R550, March 2024 (docs.nvidia.com/datacenter/tesla/pdf/NVIDIA_Driver_Installation_Quickstart.pdf), read via search excerpt 30 November 2026: never mix .run and package-manager installs; pre-installation requirements point back to the CUDA guide.
- Ollama — download page (ollama.com/download), read in full 30 November 2026: Linux install
curl -fsSL https://ollama.com/install.sh | sh, Windows PowerShellirm https://ollama.com/install.ps1 | iex. - Ollama — Quickstart (docs.ollama.com/quickstart.md), read in full 30 November 2026:
ollama run gemma4:e2b,ollama pull gemma4:e2b,ollama serve, local API athttp://localhost:11434including the OpenAI-compatible/v1/chat/completionsendpoint, gemma4:e2b about 7.2 GB download, 8 GB VRAM recommended, less VRAM means system-RAM offload and slower responses, larger context windows need more memory. - Ollama — GPU documentation (docs.ollama.com/gpu.md), read in full 30 November 2026: NVIDIA support at compute capability 5.0+ and driver 550+, compute 5.0–6.2 needing driver 570+, full card table (GB10, RTX 50xx, H100, RTX 40xx and 30xx, A100, T4, V100, GTX 10xx and 9xx, GTX 750 Ti),
CUDA_VISIBLE_DEVICES,nvidia-smi -Lfor UUIDs, force CPU with-1, suspend and resume UVM reload workaround. - vLLM — Quickstart (docs.vllm.ai/en/v0.10.1/getting_started/quickstart.html), read via search excerpt 30 November 2026: prerequisites Linux and Python 3.9–3.12;
uv venv myenv --python 3.12 --seed,uv pip install vllmanduv pip install vllm --torch-backend=auto; offline inferenceLLM(model="facebook/opt-125m")withSamplingParams(temperature=0.8, top_p=0.95); servervllm serve Qwen/Qwen2.5-1.5B-Instruct; models download from Hugging Face by default. - Secondary sources, used only where flagged in the text:
sudo apt install -y nvidia-openfrom the NVIDIA CUDA repository on Ubuntu 24.04 / 26.04, and thebuild-essential linux-headers-$(uname -r)DKMS prerequisite — computingforgeeks.com (September 2026 test, driver 615.71.09 / CUDA 13.4.2) and gpucenter.io (November 2026); CUDA 13 dropping pre-Turing compile targets and 580 as the last branch for Maxwell / Pascal / Volta — computingforgeeks.com and linuxcapable.com; the Ubuntu-native driver path (ubuntu-drivers devicestosudo ubuntu-drivers install) — linuxcapable.com; thenvidia-smi“CUDA Version” field showing driver-supported CUDA againstnvcc --versionshowing the installed toolkit — linuxcapable.com and computingforgeeks.com; the Ollama Docker formdocker run -d --gpus=all -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama— kx.cloudingenium.com (March 2026); “NVIDIA GPU installed” printed by the Ollama installer — Baeldung. - Prior briefs read, not sources for new facts: C17 brief (20 November 2026) — the NVIDIA stack explainer, whose R620 build number (620.70.06) was not re-verified on 30 November 2026 and is not stated in this article; D15 brief (29 November 2026) — format model, and the source of the per-hour cloud billing framing used in sections 12 and 13.
- Checked and found not to change this guide: AWS re:Invent 2026 (30 November–4 December, Las Vegas) — NVIDIA’s schedule page lists sessions (cuVS in OpenSearch, Nemotron on AWS, Vera CPU, Agentic AI Jam) with no new CUDA, driver or toolkit install facts, and no announcement is predicted or reported; NVIDIA GTC Washington D.C. (30 November–3 December 2026, keynote 1 December) — noted, same no-prediction rule.
- Our own guides, for the context cited in the text: C17 NVIDIA AI Explained (post 6168, 20 November 2026) for the CUDA stack, libraries, hardware generations and business story; our guide to how AI works for why AI needs parallel compute; C11 DeepSeek Explained and C14 Kimi Explained for popular local-run model families; C12 Qwen Models Explained for the vLLM example model family; A3 How to Choose an AI Model for the model choice itself; C15 Amazon Bedrock Explained and C16 Microsoft Azure AI Explained for the cloud alternatives; C5 Claude Models Explained for the hosted model most readers compare local runs against; B4 AI Coding Assistants Compared for the coding-assistant next step.


0 Comments