Ollama Not Using GPU? How I Fixed It on a 12GB Card

Affiliate disclosure: As an Amazon Associate, I earn from qualifying purchases.

Quick answer

Check it first: while the model is loaded, open PowerShell and type ollama ps. The PROCESSOR column should say 100% GPU. A split such as 64%/36% CPU/GPU means part of the model is in normal RAM. That part runs on the CPU, and the whole model slows down.

Then fix the cause. On my 12 GB RTX 5070 I hit three of them:

  • The model is bigger than the card: use a smaller file and a 6-line Modelfile. Inkling 2 Mini went from about 7 to about 66 tokens per second.
  • The context length is set too high: set it to 8k in the Ollama app. One answer went from 3 minutes 58 seconds to 25 seconds.
  • A few layers are left on the CPU: a 2-line Modelfile with num_gpu 99 took a 27B model from about 29 to about 46.

If it says 100% CPU for every model, Ollama can’t see your card. Update the NVIDIA driver first.

  • Card: RTX 5070, 12 GB
  • Ollama 0.40.18, Windows 11
  • Tested 26 and 27 Nov 2026
  • Fixed: about 10 times faster

I’m Afroz Ahmad, a network engineer and CCIE. A viewer wrote to me that their graphics card’s memory was full but the work was “obviously on the CPU”. The same thing happened on my PC with Inkling 2 Mini, a new AI model, so I tested why and how to fix it. Tokens per second is how many word pieces the model writes each second. Higher is faster.

Watch the full test (about 10 minutes), or read the check and the fixes below:

Video I Tested Inkling 2 Mini vs Qwen 3.8 on 12GB: 10x Faster (10:07) · Subscribe on YouTube

How to check if Ollama is using your GPU

  • Run a model. Open PowerShell: right-click the Start button and click Terminal. Type ollama run and your model’s name, for example ollama run gemma4, and ask it something.
  • Leave the chat. Type /bye. Ollama keeps the model in memory for 5 minutes, so check straight away.
  • Read PROCESSOR. Type ollama ps and press Enter. Look at the PROCESSOR and CONTEXT columns.
  • Watch the card (optional). While the model answers, press Ctrl + Shift + Esc to open Task Manager. Click Performance, then your NVIDIA GPU. Full memory with a low GPU percentage means the card is mostly waiting.
Three boxes: green for 100% GPU, orange for a CPU and GPU split, red for 100% CPU. What ollama ps tells you Read the PROCESSOR column while the model is still loaded. 100% GPU The whole model is on the card. Good: this is as fast as it gets. 64%/36% CPU/GPU Part of the model is in normal RAM. Slow: mine wrote about 7 tokens/s. 100% CPU The card isn’t used at all. Check the driver (Fix 4).
The meanings come from Ollama’s FAQ. The 64%/36% split is what my 12 GB RTX 5070 showed for Inkling 2 Mini.
48%/52% CPU/GPU means the model was loaded partially onto both the GPU and into system memory
Ollama FAQ, “How can I tell if my model was loaded onto the GPU?” (read 30 November 2026)

On my PC, Ollama’s own command for Inkling 2 Mini showed 64%/36% CPU/GPU. Task Manager showed the card’s memory full, 11.2 of 12 GB, but the GPU was only 6% busy. A short question took almost 2 minutes. The card was full but doing very little.

Here’s which fix to use, depending on what ollama ps shows. Each one is explained below.

Five cards, each pairing an ollama ps result with the fix for it. Which fix do you need? Start from what ollama ps says. 100% CPU, every model Fix 4: update the NVIDIA driver A split, and CONTEXT is huge Fix 2: lower the context length A split, model bigger than the card Fix 1: smaller file + num_batch A split of just a few percent Fix 3: num_gpu 99 Modelfile 100% GPU Nothing to fix
Fixes 1 to 3 are from my own tests on a 12 GB card. Fix 4 is from Ollama’s docs; I didn’t hit that problem.

Why Ollama puts part of a model in RAM

Ollama decides how much of a model goes on the card when it loads it. If the model, its context and its work buffer don’t fit in the card’s free memory, the rest goes to normal RAM. Every word the model writes then waits for the slower part.

Inkling 2 Mini, from Thinking Machines Lab, is a mixture-of-experts model. Each of its layers has a core and many small parts called experts, and only a few experts work on each word. When I tested on 26 November, ollama run inkling-2-mini downloaded a 17 GB file for my 12 GB card. Ollama’s server log showed what happened next.

Two bars compare memory needed with memory free, then a box lists the three things Ollama did. Why Ollama left the GPU idle Inkling 2 Mini, default download, 12 GB card Card memory the model needed 17,810 MiB Card memory free (Windows uses the rest) 11,036 MiB So Ollama: 1. moved every layer’s experts to RAM 2. grew the work buffer to about 8.2 GB to copy experts in for each batch 3. fit only 25 of 49 layers on the card Result: card memory full (11.2 of 12 GB), GPU busy only 6% of the time.
From Ollama’s own server.log on my PC, 26 November 2026, Ollama 0.40.18.

That’s why ollama ps said 26 GB: the 17 GB file plus the work buffer and room for the chat. Windows and my apps were already using part of the card, so only about 11 GB was free.

Read your own log: on Windows, Ollama writes its log to %LOCALAPPDATA%\Ollama\server.log. Press Windows + R, paste %LOCALAPPDATA%\Ollama and press Enter to open the folder. The lines from the last model load show how many layers went to the GPU.

Since my test, Ollama has changed this download. On 30 November its page lists inkling-2-mini:latest at 19 to 20 GB, even further from fitting a 12 GB card. I haven’t measured the new file, so the numbers on this page are for the 17 GB one.

Fix 1: a smaller file and a 6-line Modelfile

The obvious fix is a smaller file. Unsloth makes a 2-bit copy of Inkling 2 Mini, 9.1 GB. Each of the model’s numbers keeps less detail, 2 bits instead of about 4, so the file is roughly half the size.

There’s a trap. When I pulled that file into Ollama on its own, it loaded 91% on the GPU and then gave me a blank answer after almost 2 minutes. Every chat model needs a chat template: the rules for writing a conversation down. The file brings its own, and that one doesn’t work in Ollama 0.40.18. Ollama has a built-in one for Inkling. A Modelfile, a small text file that tells Ollama which files to use and how, puts the two together.

Four numbered boxes joined by arrows. The fix at a glance Inkling 2 Mini, 100% on a 12 GB card 1 Pull the 2-bit file 9.1 GB from Unsloth 2 Write a 6-line Modelfile one PowerShell line does it 3 ollama create builds inkling-2-mini-gpu 4 ollama run, then ollama ps look for 100% GPU
The exact commands are in the steps below. Tested on Ollama 0.40.18.

You need an NVIDIA card with 12 GB and an up-to-date driver, about 10 GB of free disk space, and Ollama 0.40.18 or newer. Type ollama --version to check yours. Then:

  • Pull the 2-bit file. Right-click Start and click Terminal. Paste this line and press Enter:
    ollama pull hf.co/unsloth/Inkling-2-Mini-GGUF:UD-Q2_K_XL
    It’s done when it says success. It’s about 9 GB, and mine took 12 minutes.
  • Write the Modelfile. This needs PowerShell, which Terminal opens by default. If your tab says Command Prompt, open a PowerShell tab. Paste this one line and press Enter. On a phone, swipe the box sideways to see the whole line:
    $f = ollama show hf.co/unsloth/Inkling-2-Mini-GGUF:UD-Q2_K_XL --modelfile | Select-String '^FROM ' | ForEach-Object { $_.Line }; @($f) + @('TEMPLATE {{ .Prompt }}','RENDERER inkling2','PARSER inkling2','PARAMETER num_batch 128') | Set-Content -Encoding ascii Modelfile
    It writes a file named Modelfile in the folder Terminal is open in. Type type Modelfile to check it. You should see 6 lines.
  • Build the model. Type ollama create inkling-2-mini-gpu -f Modelfile. It’s done when the last line says success.
  • Run it and check. Type ollama run inkling-2-mini-gpu and ask it something. Type /bye, then right away ollama ps. You want 100% GPU.

What the 6 lines do: the first 2 point to the two files the pull downloaded, the model and its image part. The next 3 switch on Ollama’s own chat template for Inkling. The last one sets a smaller batch so everything fits. Don’t shorten the first 2 lines to the model’s name. I tried that, and the blank answer came back.

Two panels, orange for the default batch and green for num_batch 128. Why num_batch 128 matters Same 9.1 GB file, same card, context 8K Default batch (512 tokens) Work buffer 980 MB ollama ps 9% CPU / 91% GPU Speed 57.4 tokens/s num_batch 128 Work buffer 243 MB Layers on the card 49 of 49 ollama ps 100% GPU Speed about 66 tokens/s num_batch is how many tokens Ollama works on at a time.
Single runs for the 57.4 and the first 100% GPU load; about 66 is the median of 3 runs with a 2,000-token prompt.

Without the last line, the 9.1 GB file almost fits, but Ollama keeps a 980 MB work buffer and a few layers spill into RAM. With num_batch 128 the buffer shrinks to 243 MB and all 49 layers fit. The GPU was then busy 85% of the time.

If it doesn’t work

If ollama create fails, or the answer is blank, do steps 2, 3 and 4 again in the same Terminal window.

If ollama ps shows less than 100% GPU, close games and other apps that use the card. Then check the context length (Fix 2), type ollama stop inkling-2-mini-gpu, and do step 4 again.

After every Ollama update, do step 4 again and check ollama ps. Ollama’s Modelfile docs don’t list num_batch, RENDERER or PARSER yet, so an update could change how the fix behaves. I tested it on Ollama 0.40.18.

Want to keep the big default file? In its chat, type /set parameter num_batch 128. On my PC that took it from about 7 to 20 tokens per second for that one chat. It was still mostly in RAM, though. To free the default’s disk space afterwards, type ollama rm inkling-2-mini. The fix doesn’t need it.

Fix 2: lower the context length

Context is how much text the model keeps in mind at once, counted in tokens. A bigger context needs more memory on the card. Ollama’s docs say the default is 4k on cards with less than 24 GiB, but the app’s slider can change it for every model.

In an earlier test on the same card, my slider had been set to its maximum, 256k. A 27B model then asked for 29 GB, ran 67%/33% CPU/GPU and took 3 minutes 58 seconds for one answer. At 8k it took 25 seconds. Ollama showed no warning either time.

  • Open the slider. Open the Ollama app and click Settings in the sidebar. Find Context length.
  • Set it to 8k or lower. The stops are 4k, 8k, 16k, 32k, 64k, 128k and 256k. A green “Saved” message appears.
  • Load the model again. Moving the slider restarts Ollama and unloads the model. Run it again and check ollama ps.

The slider also applies when you run a model in Terminal. With Inkling’s fix, 8k gave 100% GPU and 16k gave 94%. To pin one model to 8k whatever the slider says, add a line PARAMETER num_ctx 8192 to its Modelfile. I tested that too, and it held 100% GPU with the slider on 16k.

Fix 3: put every layer on the GPU with num_gpu

Sometimes a model almost fits and Ollama leaves just a few layers on the CPU, to be safe. With Qwen 3.8 27B in a 2-bit file, mine showed 9%/91% CPU/GPU: 4 of its 66 layers on the CPU, and about 29 tokens per second.

A 2-line Modelfile fixed it: FROM and your model’s name, then PARAMETER num_gpu 99. Then build and run it with ollama create and ollama run, as in Fix 1. It went to 100% GPU and about 46 tokens per second. The full steps are in my LM Studio vs Ollama vs llama.cpp test. This only works if the model really fits. If ollama ps still shows CPU, use a smaller file instead.

Fix 4: Ollama shows 100% CPU for every model

If even a small model shows 100% CPU, Ollama isn’t using your card at all. I didn’t hit this on my PC, so this part comes from Ollama’s own docs, not my tests. Ollama supports NVIDIA cards with compute capability 5.0 or newer and driver version 550 or newer. Its troubleshooting page says the latest driver usually gives the best results.

  • Update the driver. Install or open the NVIDIA app and update the graphics driver. Restart the PC.
  • Check the card is seen. Open PowerShell and type nvidia-smi. It should list your card and the driver version.
  • Read the log. Open %LOCALAPPDATA%\Ollama\server.log and look near the top of the last start for lines about your GPU and any errors.

How much faster was it after the fix?

Paired bars for speed and answer time, then a small before and after table for GPU, CPU and ollama ps. Before and after the fix Inkling 2 Mini on my 12 GB RTX 5070 Writing speed (tokens/s) Before 6.9 After about 66 Short question, full answer (s) Before 110 s After 16 s While it was writing GPU busy 8% 85% CPU busy 59% 15% ollama ps 64%/36% 100% GPU BeforeAfter
Before = Ollama’s 17 GB default download at context 8K. After = the 9.1 GB file with the 6-line Modelfile. Medians of 2 to 3 runs.
Default downloadAfter the fix
File17 GB (4-bit)9.1 GB (2-bit)
ollama ps26 GB, 64%/36% CPU/GPU9.5 GB, 100% GPU
Writing speed6.9 tokens per second65.8 tokens per second
Short question, full answer110 seconds16 seconds
A question in the Ollama app, thinking on6 min 50 s23 seconds
Free RAM while it wrote2.3 to 2.8 GB of 32 GB12.5 to 18 GB of 32 GB

All at a context of 8k. The default download also nearly filled my 32 GB of RAM, and it couldn’t read a 16,000-token document with my usual apps open. With the fix, my PC stayed usable while it worked.

Is Inkling 2 Mini any good once fixed?

I gave the fixed model the same 10 everyday jobs I gave Qwen 3.8 27B on this card. One job was finding double charges in an exported bank file. Each job is scored out of 10, over 3 runs, so 300 points in all.

Three bars for the scores, then a box with the waits caused by hidden thinking. Is the fixed model any good? 10 everyday jobs, 3 runs each, 300 points Inkling 2 Mini (fixed) 238 Qwen 3.8 27B (2-bit) 235 Inkling, if allowed to finish 278 The catch: it thinks in secret Thinking off still wrote 290 tokens for an answer of about 80. Bank file: first word after 2 to 4 min. 16K report: first word 37 s (Qwen 15 s).
Inkling’s runs varied by 14 points, so 238 against 235 is a tie. Scored at a 32K context (84% GPU); Qwen ran in llama.cpp.

Inkling won at fixing a broken script and on the trick questions. It scored 0 on the bank file in all 3 runs. Before it answers, Inkling thinks in notes you don’t see. Ollama’s “thinking off” setting hides those notes but doesn’t stop them, and the model’s own card says the same.

Setting reasoning effort to its minimum does not fully disable reasoning.
Inkling 2 Mini model card, Thinking Machines Lab, Hugging Face (read 30 November 2026)

My test capped the bank answer at 6,000 tokens, and Inkling spent all of them thinking. Ollama doesn’t set a cap like that by default. With more room it got the bank file right every time, but it thought for 2 to 4 minutes before the first word. On short questions it answered in seconds. My verdict: I’d use it, but expect to wait on long reports.

How I tested

  • PC: Windows 11, an NVIDIA GeForce RTX 5070 with 12 GB, and 32 GB of RAM.
  • App: Ollama 0.40.18. Context 8k unless I say otherwise, with thinking set to off.
  • Files: Ollama’s default inkling-2-mini (17 GB, 4-bit, as of 26 November) and Unsloth’s UD-Q2_K_XL (9.1 GB, 2-bit).
  • Speed: a 2,000-token prompt with 400 tokens out, a fresh load each time, middle of 3 runs.
  • Quality: 10 tasks, 3 runs each, scored against written keys. Inkling ran at a 32k context there (84% GPU), and Qwen ran in llama.cpp, also from a 2-bit file.
  • Dates: 26 and 27 November 2026.

What I didn’t test: the 2-bit file’s quality against the 4-bit default, 8 GB or 16 GB cards, AMD cards, a Mac or Linux. The fix held 100% GPU at 8k, 94% at 16k and 91% at 20k. The 2-bit file is 9.1 GB, so it won’t fit on an 8 GB card. On a 16 GB card, check ollama ps first: if it says 100% GPU, you don’t need the fix.

The card I tested on

All the numbers on this page come from an NVIDIA GeForce RTX 5070 with 12 GB of memory. Card makers sell it under their own names, so check that the listing says RTX 5070 and 12 GB.

Check latest price on Amazon

As an Amazon Associate I earn from qualifying purchases. It costs you nothing extra.

Ollama GPU FAQ

Why is Ollama not using my GPU?

Usually because the model, its context and its work buffer don’t fit in the card’s free memory, so Ollama puts part of it in normal RAM. Run ollama ps: anything other than 100% GPU means part of the model is on the CPU. If it says 100% CPU for every model, Ollama can’t see the card, so update the NVIDIA driver.

How do I make Ollama use my GPU?

Make the model fit. Pick a smaller file, set the context length to 8k in the Ollama app, and close other apps that use the card. For a mixture-of-experts model like Inkling 2 Mini, a smaller batch (num_batch 128) helped. For a model that almost fits, a Modelfile with num_gpu 99 put every layer on my card.

Why is my GPU memory full but GPU usage low?

Part of the model is in normal RAM, and the GPU waits for it. With Inkling 2 Mini’s default download, my card’s memory was 11.2 of 12 GB full while the GPU was busy only 6% of the time. Ollama had filled the card with a large work buffer and moved the experts to RAM.

Can Inkling 2 Mini run on a 12GB GPU?

Yes, with a 2-bit file. Unsloth’s 9.1 GB UD-Q2_K_XL file with a 6-line Modelfile ran 100% on my 12 GB RTX 5070 at about 66 tokens per second, at a context of 8k. Ollama’s default download ran mostly on the CPU at about 7 tokens per second.

Why does Inkling 2 Mini give a blank answer in Ollama?

In my test, the Hugging Face file brought its own chat template, which didn’t work in Ollama 0.40.18. A Modelfile that uses Ollama’s built-in Inkling template (RENDERER inkling2 and PARSER inkling2) fixed it. Its FROM lines must point to the downloaded files, not the model’s name.

Does the Ollama app's context slider apply in Terminal?

Yes. On my PC, with the slider on 16k, a model run in Terminal loaded with a context of 16,384. Moving the slider restarts Ollama. A PARAMETER num_ctx line in a model’s Modelfile overrides the slider for that model.

Terms used on this page

GPU, VRAM
the graphics card, and its own memory. A model runs fastest when all of it sits in VRAM.
ollama ps
a command that shows each loaded model’s size, where it runs (PROCESSOR) and its context.
Token
a short word or a piece of a longer one. Speed is counted in tokens per second.
Context
how much text the model keeps in mind at once, counted in tokens. A bigger context needs more memory.
Layer
one step in the stack a model is made of. Every word passes through every layer.
Mixture of experts
a model made of many small parts, called experts, where only a few work on each word.
2-bit, 4-bit file
how much detail each of the model’s numbers keeps. Fewer bits make a smaller file that can lose some quality.
Modelfile
a small text file that tells Ollama which files to use for a model and how to run it.
num_batch
how many tokens Ollama works on at a time. Smaller needs a smaller work buffer on the card.
num_gpu
how many of a model’s layers Ollama puts on the card.
Chat template
the rules for writing a conversation down so the model can read it.
The short version: run ollama ps while the model is loaded. Anything less than 100% GPU means part of the model is in RAM. Make it fit: a smaller file, the context at 8k, num_batch 128 for Inkling 2 Mini, or num_gpu 99 for a model that almost fits. On my 12 GB card, Inkling 2 Mini went from about 7 to about 66 tokens per second.

Next steps

Standards and primary sources

  1. Ollama, FAQ — what the PROCESSOR column of ollama ps means, and the 5-minute keep-alive.
  2. Ollama, Context length — the Settings slider, and 4k below 24 GiB.
  3. Ollama, Hardware support — NVIDIA compute capability 5.0+ and driver 550+.
  4. Ollama, Troubleshooting — where the Windows server.log is, and GPU discovery.
  5. Ollama, Modelfile reference — the documented parameters.
  6. Ollama, inkling-2-mini tags — the current default download size.
  7. Thinking Machines Lab, Inkling 2 Mini model card — mixture of experts, and reasoning that can’t be fully turned off.
  8. Unsloth, Inkling-2-Mini-GGUF — the 2-bit UD-Q2_K_XL file.
  9. My own tests on my PC, 26 and 27 November 2026 — every speed, memory figure, wait and score on this page, from my test logs and Ollama’s server.log.
All sources above were re-checked and verified on 30 November 2026. The test results are from my own runs on 26 and 27 November 2026.
Cite this page
Afroz Ahmad, “Ollama Not Using GPU? How I Fixed It on a 12GB Card”, afrozahmad.com, reviewed 30 November 2026.
https://afrozahmad.com/blog/ollama-not-using-gpu/