How to run an LLM on a Jetson Orin: Ollama, llama.cpp and vLLM
Install Ollama with curl -fsSL https://ollama.com/install.sh | sh and run a model that fits your module's shared memory, for example ollama run gemma3:4b on an 8GB Orin Nano. For an OpenAI-compatible server with more control, run llama.cpp's llama-server or vLLM in NVIDIA's Jetson containers. A 4-bit model needs about 0.56GB per billion parameters for its weights, plus the KV cache and room for the OS.
How an LLM uses a Jetson's memory
On a PC, the question is whether a model fits in the graphics card's VRAM. A Jetson has no VRAM. The Orin's CPU and GPU share one pool of LPDDR5: 8GB on an Orin Nano 8GB, 16GB on an Orin NX 16GB, 64GB on an AGX Orin 64GB (4GB, 8GB and 32GB variants exist too). The OS, the desktop if it runs, your ROS nodes, your camera pipeline and the LLM all draw from the same memory. That is a gift and a trap: a 64GB AGX Orin can hold models that need a data-center GPU elsewhere, and an 8GB Orin Nano runs out the moment a browser opens next to a model.
An LLM's memory has three parts:
- The weights: parameters × bits per weight ÷ 8. In FP16 that is 2 bytes per parameter, so an 8B model needs 16GB. Quantized to 4 bits it needs about a quarter of that. A 4-bit format carries some overhead for its scales: llama.cpp's Q4_0, for example, stores 32 weights in 18 bytes, which is 4.5 bits per weight, or about 0.56GB per billion parameters.
- The KV cache: for every token in the context the model keeps a key and a value per layer. Its size is 2 × layers × KV heads × head size × bytes per value, per token. For Llama 3.1 8B (32 layers, 8 KV heads of 128) in FP16, that is 128KB per token: 512MB at a 4K context, 1GB at 8K, 4GB at 32K and 16GB at its full 128K. Context length is the knob that turns a model that fits into one that doesn't.
- Runtime buffers: the engine's scratch memory, CUDA context and graph buffers. Hundreds of MB, more with bigger batches.
Here is what the weights alone come to at about 4.5 bits per weight, computed from that formula (real files run a little larger, see below the table):
| Model size | 4-bit weights | FP16 weights | Orin Nano 8GB | Orin NX 16GB | AGX Orin 64GB |
|---|---|---|---|---|---|
| 1B | 0.6GB | 2GB | Easy | Easy | Easy |
| 3B to 4B | 1.7 to 2.3GB | 6 to 8GB | Good fit | Easy | Easy |
| 7B to 8B | 3.9 to 4.5GB | 14 to 16GB | Tight: headless, short context | Good fit | Easy |
| 14B | 7.9GB | 28GB | No | Possible, modest context | Easy |
| 27B to 32B | 15 to 18GB | 54 to 64GB | No | No | Good fit |
| 70B | 39GB | 140GB | No | No | Fits on paper, small context, slow |
Treat the table as a floor. The quantization most GGUF downloads default to, Q4_K_M, averages about 4.9 bits per weight, and llama.cpp's own size table lists an 8B model at 4.9GB and a 70B at 43.1GB in Q4_K_M. Some tensors, such as the embeddings, are often kept at higher precision too. Budget about 10% above the 4.5-bit figure, then add the KV cache and the runtime buffers.
Speed is a memory question too. To generate each token, a dense model reads all of its weights once. So memory bandwidth divided by the size of the weights is a hard ceiling on tokens per second for a single request. NVIDIA gives the Orin Nano 8GB 102GB/s of bandwidth in Super mode (68GB/s before), so a 4B model at 2.3GB can't exceed about 44 tokens per second there, and real numbers land well below the ceiling (see the measurements further down). Two consequences: a smaller or more aggressively quantized model is faster, not just smaller, and the Super power mode helps LLMs directly because it raises memory bandwidth. Mixture-of-experts models (Jetson AI Lab lists several, such as Qwen3 30B-A3B for the AGX Orin) need memory for all their weights but read only the active experts per token, so they run faster than their total size suggests.
What you need
- An Orin module: Orin Nano (including the Orin Nano Super developer kit), Orin NX or AGX Orin. The older Jetson Nano stops at JetPack 4 and Xavier at JetPack 5, neither runs JetPack 6 or 7, and the images below don't target them.
- JetPack 6.2.x or 7.2.x. As of December 2026 the latest are JetPack 6.2.3 (Jetson Linux 36.5.2, CUDA 12.6) and JetPack 7.2.2 (Jetson Linux 39.2.2, CUDA 13.2.2). Check with
cat /etc/nv_tegra_release: R36 is JetPack 6, R39 is JetPack 7.2. Which one you run decides which container tags work, so check before you pull anything. - Storage: an NVMe SSD. NVIDIA's Jetson AI Lab calls it highly recommended for LLM work; its Ollama tutorial counts 7GB for the Ollama container image alone and more than 5GB for models. Model files are gigabytes each, and loading them from a microSD card is slow. See booting from NVMe.
- Docker with the NVIDIA runtime for the container routes. JetPack includes the NVIDIA Container Toolkit.
- A Hugging Face account and token only for gated models (Llama and some Gemma checkpoints).
Ollama, llama.cpp or vLLM: which one
| Engine | Model format | Best for | Trade-offs on a Jetson |
|---|---|---|---|
| Ollama | GGUF, from the Ollama library | Trying models in minutes, a local assistant, a simple API on port 11434 | Less control over memory; on JetPack 7.2 its installer doesn't recognise the release (see Step 2) |
llama.cpp (llama-server) | GGUF, from Hugging Face | The most control per byte of memory, small models on the Orin Nano, an OpenAI-compatible server | You pick the quantization and the context size yourself; build it or use NVIDIA's container |
| vLLM | Hugging Face checkpoints, quantized (W4A16 preferred on Orin) | Serving several requests at once, production-like serving, vision-language models | Large containers, longer start-up, needs its memory share set on unified memory |
| TensorRT Edge-LLM | Models compiled to TensorRT engines | The lowest latency for one model you ship for a long time | A build step per model and JetPack; Jetson AI Lab's tutorial needs JetPack 7.2 on Orin and covers Qwen3-4B on the Orin Nano |
NVIDIA's own Jetson AI Lab sums it up the same way: Ollama is best for getting started fast and trying models on the fly, and vLLM is best for production-like serving and optimal performance. llama.cpp sits in between, and Jetson AI Lab's model pages offer it next to vLLM for many models, including on the Orin Nano. Older tools you'll find in blog posts, such as MLC and NanoLLM, are no longer in Jetson AI Lab's current tutorial list.
Step 1: Free memory and set the power mode
Do this before blaming the model. Jetson AI Lab's RAM optimization tutorial starts here too.
# boot without the desktop (Jetson AI Lab: saves about 800MB); undo with graphical.target
sudo systemctl set-default multi-user.target
# no CSI camera on this device? the camera daemon can go
sudo systemctl disable nvargus-daemon.service
sudo reboot
# after the reboot, power: read your module's mode ids, pick the top one, pin the clocks
cat /etc/nvpmodel.conf | grep POWER_MODEL
sudo nvpmodel -m <id>
sudo jetson_clocksMode ids differ per module: on an Orin Nano 8GB flashed with the Super configuration, MAXN_SUPER is mode 2, while on an Orin NX it is mode 0. Super mode and nvpmodel explains the modes and why MAXN_SUPER only appears after flashing the Super configuration.
Swap. Out of the box, JetPack sets up zram through the nvzramconfig service: compressed swap that lives in RAM. Check what you have with swapon --show. Jetson AI Lab's RAM tutorial disables zram and adds a swap file on the NVMe drive, sized roughly to the board's memory (its example is 16GB):
sudo systemctl disable nvzramconfig
sudo fallocate -l 16G /ssd/16GB.swap
sudo chmod 600 /ssd/16GB.swap
sudo mkswap /ssd/16GB.swap
sudo swapon /ssd/16GB.swap
# make it permanent: add the swap file to /etc/fstab
echo '/ssd/16GB.swap none swap sw 0 0' | sudo tee -a /etc/fstabUse your own NVMe mount point in place of /ssd; disabling zram takes effect at the next boot. NVIDIA's forum moderators point out that the zram default is what NVIDIA validates, so on a product, test the change under your real load before you ship it. Understand what swap does here: it gives the kernel a place to move memory that other processes aren't using, and keeps a short spike from ending in the OOM killer. It doesn't make a too-large model run well: weights that would have to come back from disk on every token are hopeless. If a model only works with heavy swapping, use a smaller model or a shorter context.
Step 2: Ollama
curl -fsSL https://ollama.com/install.sh | sh
ollama run gemma3:4bThe installer checks /etc/nv_tegra_release. On JetPack 6 (R36) it downloads an extra JetPack 6 build of Ollama's GPU libraries. On any Jetson it skips driver installation (JetPack already has the driver) and prints NVIDIA JetPack ready.. Ollama then runs as a systemd service listening on 127.0.0.1:11434.
On JetPack 7.2 the installer only recognises R36, so it prints Unsupported JetPack version detected. GPU may not be supported and installs the generic arm64 build. Older releases of that build weren't compiled for Orin's compute capability (8.7), so they skipped the GPU and ran on the CPU. On June 29, 2026, NVIDIA's moderator on the Jetson forum wrote that this is fixed in the recent Ollama release, which runs on the Orin GPU without manual steps. So on JetPack 7.2, update Ollama to a current release and check where the model actually runs:
ollama ps # PROCESSOR should say 100% GPU
journalctl -e -u ollama # the service log: look for the GPU it found, or why it skipped itContext length. Ollama uses a 4096-token context by default. Raise it with OLLAMA_CONTEXT_LENGTH on the service, but remember the KV cache arithmetic above: on an 8GB Orin Nano, a long context can cost more memory than the model.
In Docker, Ollama's docs note that the official image can't detect the JetPack version on its own, and you pass JETSON_JETPACK=5 or JETSON_JETPACK=6 to the container. Jetson AI Lab's Ollama tutorial uses a jetson-containers image for Orin on JetPack 6 instead:
sudo docker run --runtime nvidia -it --rm --network host \
-v ~/ollama:/ollama -e OLLAMA_MODELS=/ollama dustynv/ollama:r36.2.0That tag was published in 2024 and carries an Ollama of that age, which won't know recent model families. For current models, the native install above is the better default on JetPack 6.
A chat UI. Open WebUI talks to Ollama on the same machine and serves a ChatGPT-style page on port 8080 (from Jetson AI Lab's tutorial):
sudo docker run -d --network=host -v open-webui:/app/backend/data \
-e OLLAMA_BASE_URL=http://127.0.0.1:11434 --name open-webui --restart always \
ghcr.io/open-webui/open-webui:mainStep 3: llama.cpp
The container route. Jetson AI Lab's model pages generate commands like this one for the Orin Nano and AGX Orin (here Gemma 4 E4B, a 4-bit QAT GGUF):
# this image is for JetPack 7.2.x (CUDA 13); on JetPack 6 use the build route below
sudo docker run -it --rm --pull always \
--runtime nvidia \
--network host \
-v "$HOME/.cache/huggingface:/root/.cache/huggingface" \
ghcr.io/nvidia-ai-iot/llama_cpp:latest-jetson-orin \
llama-server \
-hf google/gemma-4-E4B-it-qat-q4_0-gguf \
--hf-file gemma-4-E4B_q4_0-it.gguf \
--host 0.0.0.0 \
--port 8000 \
--ctx-size 36864 \
--parallel 1 \
--n-gpu-layers 999 \
--jinja \
--lazy-mode on \
--load-mode mmap \
--cache-ram 0Check the tag against your JetPack. As of December 2026, latest-jetson-orin for llama.cpp is the same image as 0.7.0-r38.2.arm64-sbsa-cp312-cu130-24.04: an SBSA build on CUDA 13.0 and Ubuntu 24.04, which matches JetPack 7.2 (Jetson AI Lab's Gemma 4 tutorial lists JetPack 7.2.1 as the prerequisite). For JetPack 6, the same repository has tags built for L4T r36.4 with CUDA 12.6, such as r36.4-tegra-aarch64-cu126-22.04, but that one carries an older llama.cpp (build b8708), so a very new model may need the build route below. A tag built for the other line fails at start-up with a driver or library error.
The build route. llama.cpp builds on the Jetson in one CMake command. GGML_CUDA=ON enables the CUDA backend, and setting the architecture to 87 (Orin's compute capability) skips compiling kernels for GPUs you don't have:
sudo apt install -y git cmake build-essential libssl-dev
export PATH=/usr/local/cuda/bin:$PATH # nvcc is not on the PATH by default
git clone https://github.com/ggml-org/llama.cpp
cd llama.cpp
cmake -B build -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=87
cmake --build build --config Release -j$(nproc)
./build/bin/llama-server -hf google/gemma-4-E4B-it-qat-q4_0-gguf --hf-file gemma-4-E4B_q4_0-it.gguf \
--host 0.0.0.0 --port 8000 --ctx-size 8192 --n-gpu-layers 999libssl-dev gives llama.cpp HTTPS, which -hf needs to download from Hugging Face. Compiling the CUDA kernels takes a while and a lot of memory: if the build gets OOM-killed on an 8GB Orin Nano, run it again with a lower -j.
The flags that matter on a Jetson: --n-gpu-layers 999 puts every layer on the GPU (it shares RAM anyway, so there is no reason to keep layers on the CPU). --ctx-size sets the context and with it the KV cache. --fit is on by default and adjusts settings you didn't set so the model fits the device's memory; on JetPack 7.2, a forum report traced intermittent allocation crashes on an Orin Nano to this automatic sizing, and fixed them with --fit off, an explicit --ctx-size and --cache-ram 0. Set --port explicitly: llama-server's default port is 9931. In NVIDIA's command, --load-mode mmap maps the model file into memory instead of copying it, and --lazy-mode on reads some large tensors (such as Gemma's per-layer embeddings) from disk on demand instead of keeping them resident, which saves RAM on small modules.
llama.cpp's docs also describe GGML_CUDA_ENABLE_UNIFIED_MEMORY=1, which on Linux lets allocations spill to system memory instead of failing. NVIDIA's moderator suggested it for the same Orin Nano crash.
Step 4: vLLM
vLLM is a serving engine: it batches requests from several clients, manages the KV cache in pages, and speaks the OpenAI API on port 8000. On Orin it runs from containers.
JetPack 6. NVIDIA publishes ghcr.io/nvidia-ai-iot/vllm:latest-jetson-orin. As of December 2026 that tag is the same image as 0.19.0-r36.4.tegra-aarch64-cu126-22.04: vLLM 0.19.0 for L4T r36.4, CUDA 12.6 and Ubuntu 22.04, which is JetPack 6. Jetson AI Lab's command for Qwen3 4B on the Orin Nano and AGX Orin:
sudo docker run -it --rm --pull always \
--runtime nvidia \
--network host \
--name vllm \
-v $HOME/.cache/huggingface:/data/models/huggingface \
ghcr.io/nvidia-ai-iot/vllm:latest-jetson-orin \
vllm serve RedHatAI/Qwen3-4B-quantized.w4a16JetPack 7.2. Since Orin uses the same Arm SBSA CUDA as servers from JetPack 7.2, some of Jetson AI Lab's newer Orin recipes use vLLM's upstream arm64 image, which needs JetPack 7.2 (it is built for SBSA CUDA, not JetPack 6's Tegra CUDA 12.6). Its Gemma 4 E4B command for the AGX Orin, trimmed to the essentials (the full recipe adds --trust-remote-code and speculative decoding):
sudo docker run -it --rm --pull always \
--runtime nvidia \
--network host \
--name vllm \
-v $HOME/.cache/huggingface:/root/.cache/huggingface \
-v $HOME/.cache/vllm:/root/.cache/vllm \
vllm/vllm-openai:latest \
google/gemma-4-E4B-it-qat-w4a16-ct \
--max-model-len 8192 \
--gpu-memory-utilization 0.7Two flags carry the memory story. --max-model-len caps the context and so the KV cache per request. --gpu-memory-utilization is the share of memory vLLM may take. vLLM's current docs explain that on CUDA it defaults to 1.0 and sizes the KV cache from the memory actually free after warm-up, measured once, so it can't see what other processes allocate later. They say to set it below 1.0 on unified-memory devices such as Jetson, where the CPU and the operating system share the same memory. On a robot that also runs perception, this number is your budget split: give vLLM a fixed share, and the rest of the stack keeps the remainder.
W4A16 in those checkpoint names means 4-bit weights and 16-bit activations: the weights shrink by four, the math still runs in 16-bit. Jetson AI Lab recommends W4A16 checkpoints when available, with AWQ and GPTQ as fallbacks.
Step 5: Serve an OpenAI-compatible API on your network
All three engines speak the OpenAI chat completions API, so the same client code works against any of them. By default Ollama and llama-server listen only on 127.0.0.1. To reach them from another machine:
- Ollama:
sudo systemctl edit ollama, add the lines below, thensudo systemctl daemon-reloadandsudo systemctl restart ollama.[Service] Environment="OLLAMA_HOST=0.0.0.0:11434" - llama-server:
--host 0.0.0.0 --port 8000, as in the commands above. - vLLM: serves on port 8000; with
--network hostit is reachable on the Jetson's address.
Then, from any machine on the network:
# Ollama
curl http://<jetson-ip>:11434/v1/chat/completions -H "Content-Type: application/json" \
-d '{"model": "gemma3:4b", "messages": [{"role": "user", "content": "Say hello in five words."}]}'
# llama-server or vLLM
curl http://<jetson-ip>:8000/v1/chat/completions -H "Content-Type: application/json" \
-d '{"model": "<model-name>", "messages": [{"role": "user", "content": "Say hello in five words."}]}'Anyone who can reach that port can use the model. Bind to 0.0.0.0 only on a network you trust, or keep the server on 127.0.0.1 and put a proxy in front of it that adds authentication (Ollama's FAQ shows the Nginx proxy settings to start from). For reaching a Jetson that isn't on your network, see how to access a Jetson remotely.
Check that it worked, and how fast it is
First, make sure the model runs on the GPU. With a request running, sudo tegrastats should show the GPU load (GR3D_FREQ) near the top and RAM use jump by roughly the model's size. For Ollama, ollama ps should say 100% GPU. A model on the CPU still answers, just several times slower, which is why it so often goes unnoticed.
Then measure. Ollama's API returns eval_count and eval_duration (in nanoseconds) with every response, so tokens per second is eval_count / eval_duration × 10^9:
curl -s http://localhost:11434/api/generate -d '{"model": "gemma3:4b", "prompt": "Explain unified memory in one paragraph.", "stream": false}' \
| python3 -c "import json,sys; r=json.load(sys.stdin); print(round(r['eval_count']/r['eval_duration']*1e9,1), 'tokens/s')"For vLLM, Jetson AI Lab's benchmarking tutorial uses vLLM's own load generator against a running server:
# second terminal, inside the running vLLM container; --model must match the model being served
sudo docker exec -it vllm vllm bench serve --dataset-name random --model RedHatAI/Qwen3-4B-quantized.w4a16 \
--num-prompts 50 --percentile-metrics ttft,tpot,itl,e2el \
--random-input-len 2048 --random-output-len 128 --max-concurrency 1Run it once as a warm-up and ignore the result, then again; repeat with --max-concurrency 8 to see what batching buys you. Jetson AI Lab's model pages publish measurements under these conditions (2K input tokens, 128 output tokens, one request at a time), as of December 2026:
| Model | Module | Engine | Output tokens/s |
|---|---|---|---|
| Qwen3 4B | Orin Nano 8GB | llama.cpp | 12.4 |
| Gemma 4 E4B | Orin Nano 8GB | llama.cpp | 9.5 |
| Gemma 4 E4B | AGX Orin 64GB | llama.cpp | 21.9 |
| Gemma 4 E4B | AGX Orin 64GB | vLLM | 28.6 |
Jetson AI Lab notes that its output throughput includes the time to first token, so it is a serving figure rather than pure decode speed. Your numbers will move with the power mode, the context length and the temperature: compare like with like.
Vision-language models and robot policies
Vision-language models (VLMs) take an image and a prompt and answer in text: "is the gripper holding the part?", "describe what the camera sees". They run on the same engines: Jetson AI Lab's model list carries VLMs such as Qwen3 VL 4B and Cosmos Reason 2 for vLLM, and its tutorials cover Gemma 4 and Cosmos Reason 2 on Jetson and a Live VLM WebUI that streams a camera into a model. The memory arithmetic is the same, plus a vision encoder and the image tokens, which take context.
Vision-language-action (VLA) policies, which turn camera frames and an instruction into robot motions, are a robotics topic of their own. We cover them on physical AI models.
Running an LLM on a robot, and on many robots
A model answering in a terminal is the easy part. A model on a robot shares the device with everything else the robot does, and a model on fifty robots has to stay the same model.
- Budget the memory explicitly. Decide how much of the shared RAM the LLM gets and enforce it: a fixed context length,
--gpu-memory-utilizationin vLLM, a fixed--ctx-sizein llama.cpp. Automatic sizing works out the memory free at start-up, and your perception stack may want more of it ten minutes later. When memory runs out on a Jetson, the kernel's OOM killer picks a process, and it isn't always the one you'd choose. - Never let it fall back to the CPU quietly. Check at start-up that the model is on the GPU (
ollama ps, or the GPU load integrastats), and alert when it isn't. A robot whose LLM moved to the CPU after an update still works, slowly, and the first sign is a customer complaint. - Pin the model, not just the name. A tag like
latestor a library name can point at new weights tomorrow. Pin Hugging Face downloads to a revision, keep the exact GGUF or checkpoint files in storage you control, and record which file each device runs. - Match containers to the JetPack line. JetPack 6 images and JetPack 7.2 images are not interchangeable: the CUDA major version differs, and a container whose CUDA is newer than the host's driver fails with "CUDA driver version is insufficient". Tag your images with the L4T version, and upgrade the image and the OS together.
- Plan for the download. Model files are gigabytes. Over a cellular link, ship them as separate artifacts that devices download once and keep, not inside an image that changes with every code fix, and keep the previous version on disk so a rollback doesn't need the network.
- Heat and power. LLM decoding keeps the memory and GPU busy for seconds at a time. In an enclosure, watch temperatures and clocks under sustained load, and check that the supply holds the power mode's peak without over-current throttling (see the monitoring guide).
Common errors and fixes
The messages below are copied the way they appear, so you can find yours with Ctrl+F.
NvMapMemAllocInternalTagged: 1075072515 error 12
Why: The Jetson memory allocator (NvMap) refused a GPU allocation with error 12, out of memory, often next to cudaMalloc failed: out of memory or unable to allocate CUDA0 buffer in Ollama and llama.cpp logs. On JetPack 6, NVIDIA's moderator traced a wave of these on Orin Nanos to the r36.4.7 update ("has a failure rate").
Fix: Check cat /etc/nv_tegra_release. In February 2026 NVIDIA's moderator announced JetPack 6.2.2 (r36.5) as the fix for the r36.4.7 issue, so update to the latest 6.2.x. If it persists, it is a real shortage: run headless, use a smaller model or context, and stop other GPU work.
NvMapMemAllocInternalTagged failed: error 12
Why: The JetPack 7.2 form of the same allocator failure. A forum report on an Orin Nano running a Gemma 3 4B VLM with llama.cpp showed it with gigabytes free; NVIDIA's moderator suggested llama.cpp may ask for a contiguous buffer the kernel can't provide.
Fix: The reporter fixed it with --fit off, an explicit --ctx-size and --cache-ram 0 on llama-server; NVIDIA suggested GGML_CUDA_ENABLE_UNIFIED_MEMORY=1 with LLAMA_ARG_FIT=off. Set the context size yourself rather than letting llama.cpp size it.
cudaMalloc failed: out of memory
Why: llama.cpp (or Ollama, which uses it) couldn't allocate a buffer for the weights, the KV cache or its compute graph. On a Jetson the pool is the shared RAM, so the desktop, other containers and your other processes count against it.
Fix: Free memory first (headless boot, stop other GPU apps), then shrink what the model asks for: a shorter context (--ctx-size, or OLLAMA_CONTEXT_LENGTH), a smaller quantization, or a smaller model. The KV cache grows linearly with context, so halving the context is often enough.
error loading model: unable to allocate CUDA0 buffer
Why: The model's weights didn't fit in the memory the GPU could get at load time. Forum reports on 8GB Orin Nanos show it even with small models after the r36.4.7 update on JetPack 6.
Fix: On JetPack 6, update to 6.2.2 or later (NVIDIA says the r36.4.7 memory issue is fixed there). Otherwise free memory or use a smaller model; check what else holds memory with tegrastats and free -h.
compute capability not in compiled architectures
Why: Ollama's log line when it skips the GPU: the CUDA libraries it shipped were not compiled for Orin's compute capability 8.7 (shown as cc=870), so it runs the model on the CPU. NVIDIA reported it on JetPack 7.2 with older Ollama releases.
Fix: Update Ollama to a current release: on June 29, 2026, NVIDIA's moderator wrote that the recent Ollama release runs on the Orin GPU without manual steps. Check with ollama ps that the PROCESSOR column says 100% GPU.
Unsupported JetPack version detected. GPU may not be supported
Why: Ollama's install script only recognises JetPack 6 (R36 in /etc/nv_tegra_release) for its JetPack-specific download. On JetPack 7.2 (R39) it prints this and installs the generic arm64 build.
Fix: On JetPack 7.2 that is expected. With a current Ollama release the generic build uses the Orin GPU; confirm with ollama ps and journalctl -e -u ollama. If it still runs on the CPU, update Ollama, or use llama.cpp from the container above.
cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA runtime version
Why: The container (or a pip wheel) carries a newer CUDA than the driver in the host's Jetson Linux. Typical: a JetPack 7.2 image (CUDA 13) on a JetPack 6 Jetson (CUDA 12.6 driver), or an image that installed a newer CUDA toolkit on top of an L4T base.
Fix: Use an image built for your L4T line: tags with r36.4 and cu126 for JetPack 6, CUDA 13 images for JetPack 7.2. Check the host with cat /etc/nv_tegra_release, and run containers with --runtime nvidia.
Failed with result 'oom-kill'
Why: systemd's message when the kernel's OOM killer ended the Ollama service (or another unit): the whole system ran out of memory, not just the GPU allocator.
Fix: Look at what else uses memory at that moment (tegrastats, free -h), boot headless, cap the context length, and add swap on NVMe as in Step 1 so short spikes don't kill the service. If it happens under normal load, the model is too big for this module next to your other software.
Sequence group 0 is preempted by PreemptionMode.RECOMPUTE mode because there is not enough KV cache space
Why: vLLM ran out of KV cache space for the requests in flight and paused one to recompute it later. Requests still finish, but latency rises.
Fix: Lower --max-model-len or the number of concurrent requests, or give vLLM a larger --gpu-memory-utilization if the rest of the device can spare it. On an 8GB Orin Nano, a smaller model is often the only real fix.
With LLMs on many Jetsons, PhysicalFleet's Models tab shows, with no code, which processes run ML on each machine, the model where the agent can tell, the model files with fingerprints and the port a model serves on, and it flags a model that keeps running but stops publishing. Ports opens a model's web page in your browser from anywhere, and the Jetson's hardware view shows GPU load, memory, temperatures and power per rail.
New models and containers go out as releases, including models from Hugging Face, tried on one Jetson first and rolled out in phases with automatic rollback.
See how OTA updates workVersions, commands and numbers on this page were checked against these on December 5, 2026:
- NVIDIA Jetson AI Lab: How to run LLMs and VLMs (Ollama, vLLM containers)
- NVIDIA Jetson AI Lab: RAM optimization (headless, swap, zram)
- NVIDIA Jetson AI Lab: supported models, commands and measurements
- llama.cpp: build with CUDA (GGML_CUDA, CMAKE_CUDA_ARCHITECTURES, unified memory)
- Ollama FAQ: OLLAMA_HOST, context length, checking the GPU
- vLLM: GPU memory utilization on unified-memory devices
Written by PhysicalFleet, as of December 2026. Jetson software moves fast: if something here no longer matches what you see, tell us and we'll fix it.
Can a Jetson Orin Nano 8GB run Llama 3.1 8B?
Only just. At 4 bits its weights take about 4.5 to 4.9GB depending on the quantization, and the KV cache adds 512MB at a 4K context, all in the same 8GB as the OS. It works headless with a short context; 3B to 4B models are the comfortable size for an 8GB Orin Nano.
How many tokens per second does a Jetson Orin Nano get?
Jetson AI Lab measured 12.4 output tokens per second for Qwen3 4B and 9.5 for Gemma 4 E4B with llama.cpp on an Orin Nano 8GB, with 2K input tokens, 128 output tokens and one request at a time. Smaller models and the Super power mode are faster.
Should I use Ollama or vLLM on a Jetson?
Ollama to try models quickly and for a single user. vLLM for serving several requests at once and production-like deployments, with more memory and set-up. llama.cpp is the middle ground and gives the most control on small modules.
Does Ollama use the GPU on a Jetson?
Yes on JetPack 6, where its installer adds a JetPack 6 build, and on JetPack 7.2 with a current release. Older releases skipped the Orin GPU on JetPack 7.2. Run ollama ps: the PROCESSOR column should say 100% GPU.
Can a Jetson AGX Orin 64GB run a 70B model?
On paper: a 70B model at about 4.5 bits per weight needs roughly 39GB for weights (43GB as a Q4_K_M file), which leaves room for a modest KV cache and the OS in 64GB. Every token reads all of it, so it is slow; 27B to 32B models or mixture-of-experts models are a better fit.
Do I need swap to run an LLM on a Jetson?
Swap on NVMe helps absorb short memory spikes and keeps the OOM killer away, and Jetson AI Lab recommends it. It does not make a model that is too big run well: if the model only fits by swapping, use a smaller model or context.
How do I access the LLM on my Jetson from another computer?
Make the server listen on all interfaces: OLLAMA_HOST=0.0.0.0:11434 for Ollama, --host 0.0.0.0 for llama-server; vLLM listens on port 8000. Then call http://jetson-ip:port/v1/chat/completions. Anyone who can reach the port can use it, so keep it on a trusted network.
Which model format should I use on Jetson, GGUF or W4A16?
GGUF for Ollama and llama.cpp, typically a 4-bit quantization. Hugging Face checkpoints quantized to W4A16 (4-bit weights, 16-bit activations) for vLLM, which Jetson AI Lab recommends, with AWQ and GPTQ as fallbacks.
From the lab bench. To the entire fleet.
Connect your first machine in minutes, develop it in the lab and run your whole fleet in production from one place.
Free for up to 3 machines · Then pay as you go