Affiliate disclosure: As an Amazon Associate, I earn from qualifying purchases.
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:
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.
| Model | Score of 50 | Tokens per second | Exam time |
|---|---|---|---|
| gemma4 | 49 | 135.1 | 3 min 16 s |
| Qwen3.8-27B (2-bit file) | 49 | 28.9 | 10 min 26 s |
| ministral-3:14b | 48 | 67.8 | 1 min 39 s |
| Qwen3.6-35B-A3B (llama.cpp) | 47 | 68.5 | 17 min 18 s |
| qwen3.5 | 45 | 98.2 | 15 min 22 s |
| qwen2.5:14b | 44 | 64.3 | 1 min 52 s |
| gemma3:4b | 28 | 168.9 | 38 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.
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.
It wrote its wrong answer in clean, numbered steps. A wrong answer can look just as neat as a right one.
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.
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.
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). Typenvidia-smiand 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/byeto 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 as9%/91% CPU/GPU, mean part of it is in normal RAM, which is slower. - Check the real use. Run
nvidia-smiagain. 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.
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 stopand its name, for exampleollama stop gemma4. - A Modelfile (what I used). In Notepad, write these 2 lines:
FROM hf.co/unsloth/Qwen3.8-27B-GGUF:UD-Q2_K_XLPARAMETER num_ctx 8192
Save it asModelfilewith “Save as type” set to All files, so it doesn’t end in .txt. In PowerShell, in that folder, typeollama create qwen27b-8k -f Modelfile, thenollama 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 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 activatedQwen3.6-35B-A3B model card, Hugging Face (read 30 November 2026)
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.gguffrom 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 openhttp://127.0.0.1:8081in 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.
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?
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.
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.
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.
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.
Next steps
- LM Studio vs Ollama vs llama.cpp, tested on a 12GB GPU — which app to run your model in, and the settings that made two of them slow.
- Best budget home lab setup — a starter network for the PC that runs your models.
- Home lab network gear and setup guide — switches, VLANs and builds for a bigger lab.
Standards and primary sources
- 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.
- Ollama, Context length — the Settings slider, and the default context by card memory (4k below 24 GiB).
- Ollama, gemma4 tags — gemma4:latest is the E4B size.
- Qwen, Qwen3.6-35B-A3B model card — 35B parameters in total, 3B active, 256 experts.
- llama.cpp, llama-server README — the
--n-cpu-moeoption. - llama.cpp, releases on GitHub — the Windows CUDA builds and the matching cudart files.
- Nobel Prize Outreach, Albert Einstein, facts — his one Nobel Prize, Physics 1921.
- 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.
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/
- Best Local LLM for a 12GB GPU: 7 Models Tested (2026) - November 30, 2026
- LM Studio vs Ollama vs llama.cpp: Tested on a 12GB GPU - November 29, 2026
- Omada Fusion Pro 2.5G PoE Review: Hands-On First Look (Testing in Progress) - November 13, 2026




