Best Local LLM for a 12GB GPU: 7 Models Tested (2026)

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

Quick answer

The best local LLM for a 12GB GPU, in my test, is gemma4, Google’s Gemma 4 model as Ollama names it. I gave 7 AI models the same 50-question exam on my RTX 5070 with 12 GB. gemma4 scored 49 of 50. It wrote 135 tokens per second and used about 4.6 GB of the card. A token is a piece of a word, so higher is faster.

  • Want it faster? ministral-3:14b scored 48 and finished the exam in 1 minute 39 seconds.
  • Want a bigger model to double-check answers? Qwen3.8-27B also scored 49, but it fills the card and took over 10 minutes.
  • Skip: gemma3:4b. It was the fastest model and scored only 28.

To try it: install Ollama, then type ollama run gemma4 in PowerShell. If a model is slow, check its context length first: how much text it keeps in mind (steps below).

  • Card: RTX 5070, 12 GB
  • 32 GB RAM, Windows 11
  • 7 models, 50 questions, run twice
  • Best pick: gemma4, 49 of 50

I’m Afroz Ahmad, a network engineer and CCIE. I ran this test on my own Windows PC from 14 to 16 November 2026 and made a video of it. Every question had one right answer, and a script graded each answer against the key. So this page tells you which models were right, not just which were fast.

Watch the full test (about 17 minutes), or read the results and steps below:

Video Best Local AI for 12GB VRAM? I Tested 7 Models on My RTX 5070 (16:44) · Subscribe on YouTube

Results: which local LLM scored best?

Six models ran in Ollama, a free app that downloads and runs AI models. The seventh, a 35B model bigger than my card, ran in llama.cpp. Every model got the same 50 questions at the same settings.

ModelScore of 50Tokens per secondExam time
gemma449135.13 min 16 s
Qwen3.8-27B (2-bit file)4928.910 min 26 s
ministral-3:14b4867.81 min 39 s
Qwen3.6-35B-A3B (llama.cpp)4768.517 min 18 s
qwen3.54598.215 min 22 s
qwen2.5:14b4464.31 min 52 s
gemma3:4b28168.938 s

Each speed is the middle of 3 timed runs. You’ll find each model’s memory use in the section on what fits, below. The exam had 10 groups of 5 questions: math, reading a log, code, subnetting, logic, troubleshooting, common sense, general knowledge, following instructions, and trick questions where the right answer is that there is no answer.

Seven horizontal bars sorted by score, with each model’s writing speed under its bar. Exam score out of 50 Same 50 questions for every model. Higher is better. Speed shown under each bar. gemma4 49 135 tokens/s Qwen3.8-27B (2-bit) 49 29 tokens/s ministral-3:14b 48 68 tokens/s Qwen3.6-35B (llama.cpp) 47 69 tokens/s qwen3.5 45 98 tokens/s qwen2.5:14b 44 64 tokens/s gemma3:4b 28 169 tokens/s, the fastest
My 50-question exam on a 12 GB RTX 5070, 16 November 2026. Every model took it twice and got the same score both times.

The top two tied. Qwen3.8-27B is the biggest model of the six in Ollama and nearly fills the card. gemma4 is Google’s Gemma 4 in its E4B size, which Ollama lists as 8.0 billion parameters. It used less than half the memory and was almost 5 times faster.

Is the fastest model the best one?

No. gemma3:4b was the fastest at 168.9 tokens per second, and it scored the lowest: 28 of 50. Size didn’t decide it either. qwen2.5:14b used 10.29 GB and scored 44. gemma4 used 3.24 GB and scored 49.

The trick questions showed the risk best. I asked, as if it were true, what year Einstein won his second Nobel Prize. He only won one, in 1921. gemma3:4b said he won his second in 1921. It made that up and sounded completely sure. gemma4 said he only won one.

Subnetting is the group I can check myself, because it’s my day job. gemma3:4b got all 5 subnet questions wrong. Here is one of them.

Four address blocks, the .128 block highlighted, then the right answer with a check mark and the model’s answer with a cross. Find the broadcast address Question: 198.51.100.130/26 A /26 cuts the last number into blocks of 64. .0 to .63 .64 to .127 .128 to .191 .130 is here .192 to .255 Right answer 198.51.100.191 The last address in the .128 block. What gemma3:4b wrote 198.51.100.193 It put .130 in the .192 block, which is impossible, then gave network + 1. Network + 1 is the first host, not the broadcast.
One of the 5 subnet questions. gemma3:4b got all 5 wrong, in neat numbered steps at 153 tokens per second.

It wrote its wrong answer in clean, numbered steps. A wrong answer can look just as neat as a right one.

Test your own model: ask it one question from your own work where you already know the answer. If it gets that wrong with confidence, don’t trust it on questions you can’t check.

Tokens per second vs the time you actually wait

Tokens per second tells you how fast a model writes. It doesn’t tell you how much it writes. Look at how long each model took to finish all 50 questions.

Seven horizontal bars from 38 seconds to 17 minutes, with a note on qwen3.5. Time to finish all 50 questions Shorter is better. gemma3:4b 38 s ministral-3:14b 1 min 39 s qwen2.5:14b 1 min 52 s gemma4 3 min 16 s Qwen3.8-27B 10 min 26 s qwen3.5 15 min 22 s Qwen3.6-35B 17 min 18 s qwen3.5 writes at 98 tokens/s, the third fastest, but it thinks out loud for a long time before each answer.
Same exam, same PC, context 8,192. qwen3.5 also left 5 answers unfinished at my limit of 4,000 tokens per answer.

qwen3.5 has 9.7 billion parameters and writes at 98.2 tokens per second, the third fastest. It still finished last of the six in Ollama. It thinks out loud before it answers, and it wrote about 5 times as much thinking as gemma4. You wait for every one of those tokens. It also left 5 answers unfinished when it hit my limit of 4,000 tokens per answer.

To measure a model yourself, time one real task from the moment you press Enter to the last word. Add --verbose after ollama run and Ollama prints the total time at the end of each answer. That’s the number to compare.

Which models fit on a 12GB card?

Five of the six Ollama models sat 100% on my card at a context of 8,192 tokens. Context is how much text the model keeps in mind at once. The sixth, Qwen3.8-27B, had 91% on the card and 9% in normal RAM.

Six horizontal bars on a 12 GB scale, five marked 100% GPU and the largest marked 91% on the card. Size in ollama ps, on a 12 GB card At context 8,192. Dashed line = 12 GB. gemma3:4b 3.04 GB 100% GPU gemma4 3.24 GB 100% GPU qwen3.5 5.76 GB 100% GPU ministral-3:14b 9.41 GB 100% GPU qwen2.5:14b 10.29 GB 100% GPU Qwen3.8-27B 10.81 GB 91% on the card Windows and my open apps already held 1.2 to 2.6 GB of the card before any model loaded. Leave room for it.
ollama ps can under-report small models: gemma4 showed 3.2 GB, but nvidia-smi saw the card’s memory rise by about 4.6 GB.

The number that counts is the size once the model is loaded, at your context. The download size doesn’t tell you much. gemma4 is a 9.6 GB download because it also has parts for images and audio, but it used far less on the card. The card isn’t empty when you start, either. On my PC, Windows and my open apps already held 1.2 to 2.6 GB before I loaded anything.

Model files also carry a label like Q4 or Q2. It tells you how hard the model was squeezed. Q4 means each of the model’s numbers is stored in about 4 bits, so the file is much smaller and can lose a little accuracy. My 27B is a Q2 file, squeezed harder, and that’s why it comes close to fitting.

Check your own card in 4 steps:

  • See what’s already in use. Open PowerShell (press the Windows key, type PowerShell, press Enter). Type nvidia-smi and press Enter before you load any model. Under Memory-Usage, the first number is in use and the second is the total.
  • Load a model. Type ollama run gemma4. The first time, it downloads the model. Ask it anything, then type /bye to leave the chat. The model stays in memory for 5 minutes.
  • Read PROCESSOR. In that time, type ollama ps. 100% GPU means the whole model is on your card. Two percentages, such as 9%/91% CPU/GPU, mean part of it is in normal RAM, which is slower.
  • Check the real use. Run nvidia-smi again. For gemma4, ollama ps said 3.2 GB, but my card went from 1,940 to 6,377 MiB, about 4.6 GB. When the fit is tight, trust nvidia-smi.

nvidia-smi counts in MiB, a slightly bigger unit than the MB on a download page: 1,000 MiB is about 1.05 GB. The loaded size plus what Windows already holds has to stay under the card’s total, with a little room to spare. On my PC, qwen2.5:14b at 10.29 GB was the biggest model that still sat 100% on the card.

When a model fits, your PC stays usable. While gemma4 took the exam, the card worked at 86% on average and the CPU at only 9%. During an earlier run I kept browsing the whole time, and the PC felt normal.

Why is my local LLM so slow? Check the context length

The worst wait in my test had nothing to do with the model. A plain ollama run of Qwen3.8-27B took 3 minutes 58 seconds for one subnet answer. The answer was right, but the speed was 4.55 tokens per second. ollama ps showed why.

Two panels: red for my app’s context of 262,144, green for context 8,192, with size, processor split, speed and time. Same model, same question Qwen3.8-27B, one subnet question. Right answer both times. Context 262,144 (my app setting) Size in ollama ps 29 GB PROCESSOR 67% CPU / 33% GPU Speed 4.55 tokens/s Time for 1 answer 3 min 58 s Context 8,192 Size in ollama ps about 10 GB PROCESSOR 91% on the GPU Speed 27.73 tokens/s Time for 1 answer 25 s Ollama showed no error or warning. Read CONTEXT and PROCESSOR in ollama ps.
About 16 of the 25 seconds were loading the model. Ollama’s docs say the default is 4k on cards under 24 GiB; mine had been changed.

My Ollama app was set to a context of 262,144 tokens. At that size the model asked for 29 GB, which can’t fit on a 12 GB card. So most of it went into normal RAM, and it crawled. Ollama never showed an error or a warning. Ollama’s own docs say the default is 4k on cards with less than 24 GiB of memory. Mine had been changed, so check yours.

Fix it in one of 3 ways. Each one sets the context to 8,192 tokens:

  • The slider (easiest). Open the Ollama app and go to Settings. Move Context length to 8k. A model that’s already running keeps its old setting, so stop it first with ollama stop and its name, for example ollama stop gemma4.
  • A Modelfile (what I used). In Notepad, write these 2 lines:
    FROM hf.co/unsloth/Qwen3.8-27B-GGUF:UD-Q2_K_XL
    PARAMETER num_ctx 8192
    Save it as Modelfile with “Save as type” set to All files, so it doesn’t end in .txt. In PowerShell, in that folder, type ollama create qwen27b-8k -f Modelfile, then ollama run qwen27b-8k --verbose.
  • Inside a chat. Type /set parameter num_ctx 8192. This changes only the chat you’re in.

Then run ollama ps again and read the CONTEXT and PROCESSOR columns. With my Modelfile, the same model, the same question and the same right answer took 25 seconds, and about 16 of those were loading. It wrote 27.73 tokens per second, about 6 times faster. Every timed run and the whole exam on this page used a context of 8,192.

If it’s still slow

If ollama ps still shows a CPU share at 8,192, the model doesn’t fully fit your card. Close other apps that use the graphics card, then stop and reload the model. If you raise the context later for long documents or coding tools, run ollama ps again.

The 27B still had 9% in RAM at 8,192. In my later LM Studio vs Ollama vs llama.cpp test, putting every layer on the card took the same 27B file from about 29 to about 46 tokens per second.

Can you run a model bigger than 12GB?

Yes, with a mixture-of-experts model, or MoE. My example is Qwen3.6-35B-A3B. The file I used is a Q3 and it’s 16.6 GB, well over my card’s 12 GB. Its model card says it has 256 small parts inside, called experts, and only 9 are active at a time. Out of 35 billion parameters, 3 billion are active. So you can keep many experts in normal RAM and give the card everything else.

Number of Parameters: 35B in total and 3B activated
Qwen3.6-35B-A3B model card, Hugging Face (read 30 November 2026)
Two boxes, the graphics card and PC memory, showing which parts of the model sit where, then six measured results. A 16.6 GB model on a 12 GB card Qwen3.6-35B-A3B in llama.cpp, --n-cpu-moe 20 Graphics card (12 GB) Everything except the experts of 20 layers. About 11.4 GB used, Windows included. PC memory (32 GB RAM) The experts of 20 layers: 7.7 GB at the start. Speed 68.5 tokens/s Qwen3.8-27B, for scale 28.9 tokens/s Exam score 47 of 50 Time for the exam 17 min 18 s CPU while it worked 78% average RAM at the peak 30 of 32 GB
Only 3 billion of its 35 billion parameters are active at a time, so the experts can wait in RAM. You will want 32 GB of RAM.

It wrote 68.5 tokens per second, more than twice the 27B’s 28.9. But it scored 47 of 50, so the much smaller gemma4 still beat it. All 3 of its misses were answers it never finished, not wrong ones. It needed over 17 minutes for the exam, my CPU averaged 78% and my RAM hit 30 of its 32 GB. You will want 32 GB of RAM for this one.

To try it on Windows, I used llama.cpp, a free engine you run from PowerShell:

  • Get the right build. From the llama.cpp releases page, download the Windows build for NVIDIA cards (win-cuda, x64) and the matching cudart file, which holds the CUDA files the build needs. Unzip both into one folder.
  • Check it sees your card. Open PowerShell in that folder: type cd, a space and the folder’s path, then press Enter. Run .\llama-server --list-devices. The .\ tells PowerShell to run the file in this folder. It should list your card.
  • Get the model file. Download Qwen3.6-35B-A3B-UD-Q3_K_M.gguf from Unsloth’s page on Hugging Face into the same folder.
  • Start it. My command was:
    .\llama-server -m Qwen3.6-35B-A3B-UD-Q3_K_M.gguf -ngl 99 --n-cpu-moe 20 --load-mode none -c 8192 --port 8081
    Then open http://127.0.0.1:8081 in your browser to chat.

The --n-cpu-moe 20 part keeps the experts of 20 of the model’s layers in your PC’s RAM. If the model won’t load on your card, raise that number. If your card has room left, lower it for more speed.

If it runs on the CPU only

My first try ran at 16.8 tokens per second, on the CPU only. .\llama-server --list-devices printed (none), because that build couldn’t find its CUDA files, the files that let it use an NVIDIA card. Keep the cudart files in the same folder as llama-server.exe, or add their folder to your PATH. Then open a new PowerShell window and check again. It took me 4 tries to get it right.

Which local LLM should you run on 12GB?

Five cards, one per need, each naming a model with its score and speed or time. Which model should you run? On a 12 GB card, from my tests. Everyday use gemma4 49 of 50, 135 tokens/s Fastest good answers ministral-3:14b 48 of 50, exam in 1 min 39 s A second opinion Qwen3.8-27B (2-bit) 49 of 50, but 10 min 26 s Bigger than your card Qwen3.6-35B 47 of 50, needs 32 GB RAM Skip gemma3:4b fastest, but 28 of 50
Model names change every few months. The test method on this page does not.

My pick for everyday use is gemma4. A plain ollama run gemma4 gets the same Q4_K_M file I tested. It scored 49 of 50, wrote 135.1 tokens per second and really used about 4.6 GB of my card. That leaves room for a longer context or other apps.

I also gave gemma4 10 minutes of my own questions. It got a subnet question right and read a network log well. But in a BGP config, it wrote one command a Cisco router won’t accept. It’s still my pick, and I still check what it writes.

A network engineer’s check: Ollama’s FAQ says “Ollama binds 127.0.0.1 port 11434 by default.” 127.0.0.1 is the loopback address, and traffic to it never leaves your PC. If you turn on network access in Ollama’s settings, keep it on your home network. Anyone who can reach that port can use your model without a password, so never forward it on your router.

How I tested

  • PC: Windows 11, an NVIDIA GeForce RTX 5070 with 12 GB, and 32 GB of RAM.
  • Apps: Ollama 0.40.16 for six models. llama.cpp build b12209 for the 35B, with -ngl 99 --n-cpu-moe 20.
  • Settings: context 8,192, temperature 0, a fixed seed, and up to 4,000 tokens per answer, thinking included. An answer that ran out of tokens counted as wrong.
  • Exam: 50 questions in 10 groups of 5. For the math and the puzzles, a script worked out the answers, so the key isn’t my guess.
  • Speed: 3 timed runs per model, middle result shown.
  • Dates: 14 to 16 November 2026.

Every model took the exam twice and got the same score both times, group by group. With temperature 0 and a fixed seed that’s expected. It shows the setup repeats exactly. It doesn’t show a model would give the same answers at other settings.

I fixed my grading script twice, and you should know how. It first gave gemma4 only 39. Ten questions were multiple choice and asked for only the letter. gemma4 did exactly that, but the script looked for a separate answer line. Counting a bare letter took gemma4 to 49 and changed no other model. The 35B wrote one network address with its /28 on the end. Counting that took it from 46 to 47.

The limits: this was 50 questions on 1 PC over 3 days. It tells you which models got these questions right, not how smart a model is in general. For harder work, these local models still lose to ChatGPT and Claude. That part isn’t from this test. It comes from my own daily use. The 50 questions are free to download from the link in my video’s description.

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.

Best local LLM for 12GB FAQ

What is the best local LLM for 12GB of VRAM?

In my test it was gemma4, Google’s Gemma 4 in its E4B size. It scored 49 of 50 on my exam, wrote 135 tokens per second and used about 4.6 GB of my 12 GB RTX 5070. Qwen3.8-27B in a 2-bit file also scored 49, but it was almost 5 times slower and filled the card.

Can a 12GB GPU run a 27B model?

Yes, if the file is squeezed enough. A 2-bit file of Qwen3.8-27B loaded at 10.81 GB with 91% on my card at a context of 8,192. It wrote 28.9 tokens per second and scored 49 of 50. At a context of 262,144 it needed 29 GB and slowed to 4.55 tokens per second.

Why is my local LLM so slow in Ollama?

Check the context length first. Run ollama ps and read CONTEXT and PROCESSOR. If the context is huge or PROCESSOR shows a CPU share, part of the model is in normal RAM. Set Context length to 8k in the Ollama app’s Settings, stop the model, and load it again.

How much VRAM does gemma4 use?

On my PC, at a context of 8,192, ollama ps showed 3.24 GB. nvidia-smi showed the card’s memory rise by about 4.6 GB, from 1,940 to 6,377 MiB. The download is 9.6 GB because it also has parts for images and audio.

Is the fastest local model the most accurate?

Not in my test. gemma3:4b was the fastest at 168.9 tokens per second and scored the lowest, 28 of 50. It invented a second Nobel Prize for Einstein and got all 5 subnet questions wrong.

Can I run a model bigger than my GPU's memory?

Yes, with a mixture-of-experts model in llama.cpp. The 16.6 GB Qwen3.6-35B-A3B file ran on my 12 GB card with llama.cpp’s n-cpu-moe option set to 20, which kept part of it in RAM. It wrote 68.5 tokens per second and scored 47 of 50, but it pushed my RAM to 30 of 32 GB.

What if my card has 8GB or 16GB?

I only tested a 12 GB card, so I can’t give you scores for those. The sizes still help. At a context of 8,192, gemma3:4b, gemma4 and qwen3.5 showed 3.0 to 5.8 GB in ollama ps. Add what Windows already holds, then load the model and check ollama ps for 100% GPU.

Terms used on this page

LLM
large language model: the kind of AI that reads and writes text, like ChatGPT. A local LLM runs on your own PC.
27B, 14B, 4B
the model’s size in billions of parameters, the numbers the model learned. Bigger is not always better.
Token
a short word or a piece of a longer one. Speed is counted in tokens per second.
Q4, Q2 (quantization)
how hard a model file was squeezed. Q4 stores each number in about 4 bits. Smaller files can lose a little accuracy.
Context
how much text the model keeps in mind at once, counted in tokens. A bigger context needs more memory.
VRAM
the graphics card’s own memory. nvidia-smi shows it under Memory-Usage.
ollama ps
a command that shows each loaded model’s size, context and how much of it is on the card.
MiB
a memory unit slightly bigger than a MB. 1,000 MiB is about 1.05 GB.
Mixture of experts (MoE)
a model made of many small parts, called experts, where only a few work on each word.
Modelfile
a small text file that tells Ollama how to build a model, including its settings.
Temperature 0 and a fixed seed
two settings that make a model give the same answer to the same question every time.
The short version: on my 12 GB RTX 5070, gemma4 scored 49 of 50 at 135 tokens per second and used about 4.6 GB, so it’s the one to start with. The fastest model, gemma3:4b, scored only 28. Before you trust any model, ask it questions you already know the answers to. Then check ollama ps for 100% GPU and a sensible context, because a model that spills into RAM crawls.

Next steps

Standards and primary sources

  1. Ollama, FAQ — the default address 127.0.0.1 port 11434, what ollama ps shows, the 5-minute keep-alive, and the default context of 4,096 tokens.
  2. Ollama, Context length — the Settings slider, and the default context by card memory (4k below 24 GiB).
  3. Ollama, gemma4 tags — gemma4:latest is the E4B size.
  4. Qwen, Qwen3.6-35B-A3B model card — 35B parameters in total, 3B active, 256 experts.
  5. llama.cpp, llama-server README — the --n-cpu-moe option.
  6. llama.cpp, releases on GitHub — the Windows CUDA builds and the matching cudart files.
  7. Nobel Prize Outreach, Albert Einstein, facts — his one Nobel Prize, Physics 1921.
  8. My own test on my PC, 14 to 16 November 2026 — every score, speed, memory figure and time on this page, from my test script’s logs.
All sources above were re-checked and verified on 30 November 2026. The test results are from my own runs on 14 to 16 November 2026.
Cite this page
Afroz Ahmad, “Best Local LLM for a 12GB GPU: 7 Models Tested (2026)”, afrozahmad.com, reviewed 30 November 2026.
https://afrozahmad.com/blog/best-local-llm-12gb-gpu/