Best Local LLMs for the NVIDIA GeForce 940M
Written by Jakub Rusinowski · Last updated November 28, 2026
Best all-round pick: Phi-4 Mini (3.8B)
The NVIDIA GeForce 940M has 4 GB of VRAM, of which about 4 GB is available to a model. The largest model it can hold is Ternary Bonsai 2 9B (9B, 2.8 GB at Q4_K_M).
Best models overall on the NVIDIA GeForce 940M
| Model | Score | Memory at Q4_K_M | Context | Licence |
|---|---|---|---|---|
| Phi-4 Mini (3.8B) | 87.2 | 3.1 GB | 125K | MIT |
| LFM3-VL 2B | 85 | 2 GB | 125K | LFM Open License v1.0 |
| Granite 4.1 3B | 83.7 | 2.6 GB | 128K | Apache-2.0 |
| Gemma 3 4B Instruct | 83.2 | 3.2 GB | 128K | Gemma |
| VibeThinker 3B | 82.9 | 2.7 GB | 128K | MIT |
| Llama 3.2 3B Instruct | 81.8 | 2.7 GB | 125K | Llama Community |
Best model by what you are doing
| Workload | Recommended on this GPU |
|---|---|
| Coding | Phi-4 Mini (3.8B) (84.3) LFM3 1.7B (83.8) VibeThinker 3B (83.5) |
| General assistant | Phi-4 Mini (3.8B) (87.2) LFM3-VL 2B (85) Granite 4.1 3B (83.7) |
| Reasoning | VibeThinker 3B (87.5) Phi-4 Mini (3.8B) (86.9) LFM3 1.7B (84.3) |
| RAG | LFM3 1.7B (85.4) K2 Horizon 3.7B (76.1) Ternary Bonsai 2 9B (76.1) |
| Agents | LFM3 1.7B (86.7) Ternary Bonsai 2 9B (81.6) K2 Horizon 3.7B (78.6) |
| Vision | LFM3-VL 2B (90) Ministral 3 3B (81.9) Gemma 4 E2B (79.2) |
What the NVIDIA GeForce 940M cannot run
These models are strong picks generally but exceed the 4 GB this card makes available.
| Model | Needs at Q4_K_M | Short by |
|---|---|---|
| Qwen 3 8B | 5.8 GB | ~1.8 GB |
| Mistral Small 3.1 24B | 15.1 GB | ~11.1 GB |
| GLM-4 9B | 6.3 GB | ~2.3 GB |
| Gemma 3 12B Instruct | 8.1 GB | ~4.1 GB |
How these numbers are calculated
- Usable memory is 4 GB of the card's 4 GB.
- Fit is measured at Q4_K_M — quantized weights plus KV cache plus 0.8 GB runtime overhead.
- Within this card's budget, models are ranked on how well they use the memory available, not on being small — so the recommendation scales with the hardware.
FAQ
What is the best LLM for the NVIDIA GeForce 940M?
Phi-4 Mini (3.8B) is the strongest all-round pick that fits its 4 GB.
What is the largest model the NVIDIA GeForce 940M can run?
Ternary Bonsai 2 9B — 9B parameters, needing 2.8 GB at Q4_K_M.
How much of the NVIDIA GeForce 940M's memory can a model actually use?
About 4 GB of its 4 GB, before the desktop and runtime overhead are accounted for.
Similar GPUs
- Best models for the NVIDIA GeForce RTX 3060 Laptop GPU
- Best models for the NVIDIA GeForce RTX 4050 Laptop GPU
- Best models for the NVIDIA GeForce RTX 4060 Ti 8GB
- Best models for the NVIDIA GeForce RTX 4060 Laptop GPU
By Workload
- Best local LLMs for coding
- Best local LLMs for general assistant
- Best local LLMs for reasoning
- Best local LLMs for rag