# What LLM Can I Run? Match Models to Your VRAM or RAM | Layer3Labs

> Source: https://www.layer3labs.io/tools/what-llm-can-i-run
> Summary: Find out what LLM you can run on your GPU, system RAM or Mac unified memory based on model weights, precision, and context length.

# What LLM Can I Run on My GPU, RAM or Mac?

Enter your GPU, system random-access memory (RAM) or Mac memory and your context length to see which open-weights models fit your hardware.

Updated December 2, 2026

**Publisher&#x27;s Take** — [Jonathan Teplitsky, MBA](https://www.layer3labs.io/about/jonathan-teplitsky) · December 2, 2026

Fitting a model into memory doesn&#x27;t guarantee usable speed, because CPU system RAM and tight VRAM headroom under 10% bog down once context grows past 8,192 tokens. Skip cramming a 70B model onto a 24 GB card, and pick a 4-bit 32B model with cache room or rent a cloud GPU instead.

To find out what large language model (LLM) fits your hardware, match your memory against the combined footprint of the model weights and key-value (KV) cache. On a 24 GB graphics processing unit (GPU) at an 8,192-token context length, 23 of the 31 supported models fit inside available memory. Phi-4-mini, [Mistral](https://mistral.ai) 7B, Qwen2.5 7B, [DeepSeek](https://www.deepseek.com)-R1-Distill-[Llama](https://www.llama.com) 8B, Qwen3 8B, Llama 3.1 8B, Gemma 3 4B, Gemma 4 E4B and Gemma 3 12B (a tight fit) run at 16-bit precision, while larger models fit by dropping down to 8-bit or 4-bit weights. Choose System RAM to see which models fit a computer with no GPU, with 4 GB kept back for the operating system.

Enter your memory into the Your memory (GB) field, choose your Memory type, and set your context length to evaluate your machine. The calculator updates the table automatically, sorting models from largest to smallest and showing the highest precision level that fits your hardware footprint.

Model weights remain fixed in video random-access memory (VRAM), while the KV cache expands with every additional token, except on sliding-window layers, which stop growing at their window.

## What LLM Can I Run

 Your memory (GB)

 Memory type   GPU memory (VRAM)  System RAM (no GPU)  Mac unified memory

 Context length (tokens)

23 of 31 models fit 24 GB with a context of 8,192 tokens.

| Model | Best precision that fits | Memory needed | Spare | Longest context that fits |
| --- | --- | --- | --- | --- |
| [Mixtral 8x7B Instruct](https://huggingface.co/mistralai/Mixtral-8x7B-Instruct-v0.1) | ⚠ 4-bit (Q4) (tight) | 22.7 GB | 1.3 GB | 18,461 tokens |
| [Qwen3.5 35B-A3B](https://huggingface.co/Qwen/Qwen3.5-35B-A3B) | ✓ 4-bit (Q4) | 16.9 GB | 7.1 GB | 262,144 tokens (model limit) |
| [Qwen3 32B](https://huggingface.co/Qwen/Qwen3-32B) | ✓ 4-bit (Q4) | 17.3 GB | 6.7 GB | 32,768 tokens (model limit) |
| [Qwen2.5 32B Instruct](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct) | ✓ 4-bit (Q4) | 17.1 GB | 6.9 GB | 36,315 tokens |
| [Gemma 4 31B](https://huggingface.co/google/gemma-4-31B-it) | ✓ 4-bit (Q4) | 16.0 GB | 8.0 GB | 113,475 tokens |
| [Qwen3 30B-A3B](https://huggingface.co/Qwen/Qwen3-30B-A3B) | ✓ 4-bit (Q4) | 15.0 GB | 9.0 GB | 40,960 tokens (model limit) |
| [Qwen3.5 27B](https://huggingface.co/Qwen/Qwen3.5-27B) | ✓ 4-bit (Q4) | 13.4 GB | 10.6 GB | 181,271 tokens |
| [Gemma 3 27B](https://huggingface.co/google/gemma-3-27b-it) | ✓ 4-bit (Q4) | 13.8 GB | 10.2 GB | 131,072 tokens (model limit) |
| [Gemma 4 26B-A4B](https://huggingface.co/google/gemma-4-26B-A4B-it) | ✓ 4-bit (Q4) | 12.4 GB | 11.6 GB | 262,144 tokens (model limit) |
| [Mistral Small 24B Instruct 2501](https://huggingface.co/mistralai/Mistral-Small-24B-Instruct-2501) | ⚠ 8-bit (INT8) (tight) | 23.6 GB | 0.4 GB | 10,802 tokens |
| [gpt-oss 20B](https://huggingface.co/openai/gpt-oss-20b) | ✓ 8-bit (INT8) | 19.7 GB | 4.3 GB | 131,072 tokens (model limit) |
| [Qwen3 14B](https://huggingface.co/Qwen/Qwen3-14B) | ✓ 8-bit (INT8) | 15.0 GB | 9.0 GB | 32,768 tokens (model limit) |
| [Qwen2.5 14B Instruct](https://huggingface.co/Qwen/Qwen2.5-14B-Instruct) | ✓ 8-bit (INT8) | 15.2 GB | 8.8 GB | 56,303 tokens |
| [Phi-4 (14B)](https://huggingface.co/microsoft/phi-4) | ✓ 8-bit (INT8) | 14.6 GB | 9.4 GB | 16,384 tokens (model limit) |
| [Gemma 3 12B](https://huggingface.co/google/gemma-3-12b-it) | ⚠ FP16 / BF16 (tight) | 23.5 GB | 0.5 GB | 16,086 tokens |
| [Qwen3 8B](https://huggingface.co/Qwen/Qwen3-8B) | ✓ FP16 / BF16 | 16.4 GB | 7.6 GB | 32,768 tokens (model limit) |
| [DeepSeek-R1-Distill-Llama 8B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Llama-8B) | ✓ FP16 / BF16 | 16.0 GB | 8.0 GB | 74,079 tokens |
| [Llama 3.1 8B Instruct](https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct) | ✓ FP16 / BF16 | 16.0 GB | 8.0 GB | 74,079 tokens |
| [Gemma 4 E4B](https://huggingface.co/google/gemma-4-E4B-it) | ✓ FP16 / BF16 | 15.0 GB | 9.0 GB | 131,072 tokens (model limit) |
| [Qwen2.5 7B Instruct](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct) | ✓ FP16 / BF16 | 14.6 GB | 9.4 GB | 131,072 tokens (model limit) |
| [Mistral 7B Instruct v0.3](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3) | ✓ FP16 / BF16 | 14.5 GB | 9.5 GB | 32,768 tokens (model limit) |
| [Gemma 3 4B](https://huggingface.co/google/gemma-3-4b-it) | ✓ FP16 / BF16 | 8.3 GB | 15.7 GB | 131,072 tokens (model limit) |
| [Phi-4-mini Instruct (3.8B)](https://huggingface.co/microsoft/Phi-4-mini-instruct) | ✓ FP16 / BF16 | 8.2 GB | 15.8 GB | 131,072 tokens (model limit) |
| [DeepSeek-R1-Distill-Llama 70B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Llama-70B) | ✗ Doesn&#x27;t fit | 35.4 GB at 4-bit | 11.4 GB short | — |
| [Llama 3.3 70B Instruct](https://huggingface.co/meta-llama/Llama-3.3-70B-Instruct) | ✗ Doesn&#x27;t fit | 35.4 GB at 4-bit | 11.4 GB short | — |
| [Qwen2.5 72B Instruct](https://huggingface.co/Qwen/Qwen2.5-72B-Instruct) | ✗ Doesn&#x27;t fit | 36.4 GB at 4-bit | 12.4 GB short | — |
| [gpt-oss 120B](https://huggingface.co/openai/gpt-oss-120b) | ✗ Doesn&#x27;t fit | 54.7 GB at 4-bit | 30.7 GB short | — |
| [Qwen3 235B-A22B](https://huggingface.co/Qwen/Qwen3-235B-A22B) | ✗ Doesn&#x27;t fit | 110.9 GB at 4-bit | 86.9 GB short | — |
| [Qwen3.5 397B-A17B](https://huggingface.co/Qwen/Qwen3.5-397B-A17B) | ✗ Doesn&#x27;t fit | 188.1 GB at 4-bit | 164.1 GB short | — |
| [Llama 3.1 405B Instruct](https://huggingface.co/meta-llama/Llama-3.1-405B-Instruct) | ✗ Doesn&#x27;t fit | 192.9 GB at 4-bit | 168.9 GB short | — |
| [DeepSeek-R1](https://huggingface.co/deepseek-ai/DeepSeek-R1) | ✗ Doesn&#x27;t fit | 319.3 GB at 4-bit | 295.3 GB short | — |

Memory needed = weights (total parameters × 2, 1 or 0.5 bytes, or the published native size) + KV cache (2 × KV heads × head dim × cached tokens × 2 bytes, summed over the layers that keep a cache), per [NVIDIA&#x27;s inference-optimization guide](https://developer.nvidia.com/blog/mastering-llm-techniques-inference-optimization/). Every Mixture-of-Experts (MoE) expert counts toward the weights. Sliding-window layers cache at most their window, and DeepSeek-R1 caches a compressed latent. Qwen3.5 totals leave out the state of its linear-attention layers, and Gemma 4 global-layer caches are an upper bound. Architecture and parameter counts come from each model&#x27;s [Hugging Face](https://huggingface.co) config (linked). Google and Meta keep the Gemma 3 and Llama 3.x repositories gated, so those configs were read from the [unsloth](https://huggingface.co/unsloth) mirror and the [neuralmagic](https://huggingface.co/neuralmagic) quantized build. "Tight" means under 10 % spare. Activations and runtime buffers add more on top. Calculated, not measured on hardware.

 Copy result

**Vendor in this calculator?** Keep your rates accurate or reach buyers comparing options here.

[Update your rates](https://www.layer3labs.io/update-listing?page=%2Ftools%2Fwhat-llm-can-i-run&src=tool_update_rates_pill)[Get added](https://www.layer3labs.io/feature-your-project?src=tool_get_added_pill&page=%2Ftools%2Fwhat-llm-can-i-run)[Sponsor this tool](https://www.layer3labs.io/update-listing?page=%2Ftools%2Fwhat-llm-can-i-run&intent=sponsor&src=tool_sponsor_pill)

## Reading the Fit Table

The output table shows which models fit your hardware as soon as you enter your memory and target context length. What LLM Can I Run lists compatible models first, ordered from largest parameter count to smallest, followed by models that exceed your memory.

The Model column lists each architecture alongside a direct link to its repository on [Hugging Face](https://huggingface.co). Best precision that fits shows the highest precision tier between 16-bit floating-point (FP16) or bfloat16 (BF16), 8-bit integer (INT8), and 4-bit (Q4) that fits your hardware, including the published native size (MXFP4 or FP8) for the models that ship that way. Memory needed combines the model weights at that precision with the KV cache at 16-bit precision, calculated using 1,024³ bytes per gigabyte.

Spare displays the leftover gigabytes, and Longest context that fits shows the maximum context length that leftover memory holds at that precision tier. If the leftover capacity exceeds the model card&#x27;s configured context ceiling, the table displays (model limit) to show that ceiling. Qwen2.5 defaults to 32,768 tokens and needs [YaRN configuration](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct#processing-long-texts) for the table&#x27;s 131,072-token ceiling. When a model requires more memory than your hardware provides, the table marks it with ✗ Doesn&#x27;t fit, shows the memory needed at 4-bit quantization, and lists how many gigabytes short your configuration is.

On a 24 GB GPU running an 8,192-token context, Phi-4-mini takes 8.2 GB at FP16 with 15.8 GB spare. Mistral Small 24B takes 23.6 GB at INT8 with 0.4 GB spare, triggering a ⚠ (tight) mark because leftover capacity is under 10%. Qwen2.5 72B is listed under ✗ Doesn&#x27;t fit, requiring 36.4 GB at 4-bit.

## Three-Tier VRAM, Bandwidth, and Cloud Break-Even Modeling

In our internal hardware and memory modeling across three common hardware tiers at an 8,192-token context with a 16-bit key-value cache, we compared usable memory capacity, compatible open-weights model counts out of 31 architectures, and single-stream decode speed ceilings calculated from published memory bandwidth.

In Scenario 1 (entry 16 GB discrete VRAM vs 24 GB unified memory), an [NVIDIA GeForce RTX 5060 Ti 16GB](https://www.nvidia.com/en-us/geforce/graphics-cards/compare/) (16.0 GB usable VRAM, 448 GB/s bandwidth) fits 19 of 31 models and runs Llama 3.1 8B at 4-bit (4.7 GB total) up to an 88.0 tokens-per-second ceiling (44.0 tok/s at 50% bandwidth utilization), while an [Apple Mac mini M4 Pro 24GB](https://support.apple.com/en-us/121555) (18.0 GB usable after our 25% macOS reserve, 273 GB/s bandwidth) fits 22 of 31 models with a 53.6 tok/s ceiling (26.8 tok/s at 50% utilization) on that same 8B model. In Scenario 2 (enthusiast 24 GB desktop GPU), an [NVIDIA GeForce RTX 4090 24GB](https://images.nvidia.com/aem-dam/Solutions/geforce/ada/nvidia-ada-gpu-architecture.pdf) (24.0 GB usable VRAM, 1,008 GB/s bandwidth) fits 23 of 31 models and runs Qwen3 32B at 4-bit in 17.3 GB (6.7 GB spare) at a 54.4 tok/s ceiling (27.2 tok/s at 50% utilization), whereas Llama 3.3 70B at 4-bit requires 35.4 GB and falls 11.4 GB short. In Scenario 3 (workstation high-memory tier), an [NVIDIA RTX 6000 Ada 48GB](https://www.nvidia.com/content/dam/en-zz/Solutions/design-visualization/rtx-6000/proviz-print-rtx6000-datasheet-web-2504660.pdf) (48.0 GB VRAM, 960 GB/s bandwidth) fits 26 of 31 models including Llama 3.3 70B at 4-bit (35.4 GB, 12.6 GB spare) at a 25.3 tok/s ceiling (12.6 tok/s at 50% utilization), while an [Apple Mac Studio M4 Max 128GB](https://support.apple.com/en-us/122211) (96.0 GB usable unified memory, 546 GB/s bandwidth) fits 27 of 31 models including gpt-oss 120B in native MXFP4 (61.1 GB, 8.3 tok/s ceiling).

| Hardware Tier | Usable Memory | Models Fitting (8K) | Reference 4-Bit Workload | Memory Bandwidth | Decode Ceiling (Peak / 50% MBU) |
| --- | --- | --- | --- | --- | --- |
| Scenario 1: Mac mini M4 Pro 24GB | 18.0 GB unified | 22 of 31 | Llama 3.1 8B (4.7 GB) | 273 GB/s | 53.6 / 26.8 tok/s |
| Scenario 2: GeForce RTX 4090 24GB | 24.0 GB VRAM | 23 of 31 | Qwen3 32B (17.3 GB) | 1,008 GB/s | 54.4 / 27.2 tok/s |
| Scenario 3: RTX 6000 Ada 48GB | 48.0 GB VRAM | 26 of 31 | Llama 3.3 70B (35.4 GB) | 960 GB/s | 25.3 / 12.6 tok/s |

Counterexample (when cloud GPU rental beats buying local hardware): fitting a model in local memory does not automatically justify buying the card. In our 24-month break-even calculation comparing a $2,000 24 GB GPU ($800 resale recovery, $1,200 net hardware cost, 350 W load at $0.15/kWh or $0.0525/hr electricity) against a $0.50/hr cloud GPU rental, buying breaks even only above 2,682 active hours, or 25.8 hours per week. At 10 hours per week (1,040 hours over 24 months), renting totals $520.00 versus $1,254.60 to buy and power locally, saving $734.60 on cloud compute. Walk away from local workstation capex if your team runs bursty evaluations under 25.8 hours a week or occasionally needs frontier MoE models like DeepSeek-R1 in FP8 (641.7 GB), and check your exact payback threshold in our [GPU Rent vs Buy Calculator](https://www.layer3labs.io/tools/gpu-rent-vs-buy-calculator).

## Running a Model on System RAM Without a GPU

A model fits in system random-access memory (RAM) when its weights plus context cache are smaller than the RAM left after the operating system reserve. We keep 4 GB for the operating system as our sizing margin. At an 8,192-token context and a 16-bit cache, this leaves 4 GB usable on an 8 GB machine.

An 8 GB system leaves 4 GB and fits 4 models at 4-bit: Phi-4-mini (2.8 GB), Gemma 3 4B (2.3 GB), Gemma 4 E4B (3.9 GB, tight), and Qwen2.5 7B (4.0 GB, tight with almost nothing spare). A 16 GB system leaves 12 GB and fits 13 models, including Qwen3 8B at 8-bit (8.8 GB) and Gemma 3 12B at 4-bit (6.5 GB). Then 32 GB leaves 28 GB to fit 23 models, while 64 GB leaves 60 GB to fit 27 models like Llama 3.3 70B at 4-bit (35.4 GB).

Fitting in RAM says nothing about execution speed, and central processing unit (CPU) inference is typically slower than graphics processing unit (GPU) inference. We make no speed claim from memory size. Mixture-of-Experts (MoE) models require RAM for every expert, so Gemma 4 26B-A4B needs 24.4 GB at 8-bit and does not fit in 16 GB of RAM at any precision.

System RAM inference does not suit anyone who needs fast interactive responses, though our [tokens-per-second calculator](https://www.layer3labs.io/tools/llm-tokens-per-second-calculator) covers speed from memory bandwidth. The fit changes if background applications use more than our 4 GB reserve, a runtime memory-maps the weights, or you add a GPU. Set the memory type to System RAM, enter your RAM in GB, and read the Spare column.

## How Hardware Fit Is Worked Out

Total memory demand equals static model weights plus the dynamic KV cache required for active tokens. Model weight footprint equals total parameters multiplied by the precision bytes per weight: 2 bytes for FP16 or BF16, 1 byte for INT8, and 0.5 bytes for 4-bit. Every expert of a Mixture-of-Experts (MoE) model counts toward the weights, and gpt-oss, DeepSeek-R1 and Llama 3.1 405B also offer their published native size (MXFP4 or FP8) as a precision option.

According to the [NVIDIA developer blog tutorial on inference optimization](https://developer.nvidia.com/blog/mastering-llm-techniques-inference-optimization/), KV cache bytes equal 2 × layers × KV heads × head dim × tokens × bytes per value. The initial factor of 2 accounts for the separate key and value matrices. Because modern transformer designs use grouped-query attention to share key and value projections across attention heads, the calculator uses the KV-head count from each model&#x27;s configuration. Sliding-window layers cache at most their window, and DeepSeek-R1 caches one compressed latent per layer. Qwen3.5 caches only its full-attention layers and the calculator does not add the fixed-size state of its linear-attention layers, so Qwen3.5 totals are understated. Gemma 4 global-layer caches are counted at full size, so those cache figures are an upper bound.

For [Qwen3 8B](https://huggingface.co/Qwen/Qwen3-8B), which has 36 layers, 8 KV heads, and a head dimension of 128, the 16-bit KV cache per token equals 2 × 36 × 8 × 128 × 2, or 147,456 bytes (144 KB). What LLM Can I Run tests precisions in descending order of weight size. That means FP16, INT8, then 4-bit, with a native size slotted in where a model has one. It selects the highest precision where weights plus KV cache fit within your memory limit, because weight memory drops with precision while 16-bit KV cache memory remains constant.

- Parameters: total parameter count from each model&#x27;s Hugging Face repository. The Gemma 3 and Llama 3.x counts and configs come from the [unsloth](https://huggingface.co/unsloth) mirror and the [neuralmagic](https://huggingface.co/neuralmagic) quantized build because the vendor repositories are gated.
- Layers: total transformer hidden layer depth extracted from config.json.
- KV heads: distinct key-value projection heads, lower than query heads in grouped-query attention models.
- Head dimension: size of each attention head. It is 128 for most models, 64 for gpt-oss, 256 for Gemma 3 4B and 12B and the Gemma 4 sliding-window layers, and 512 for the Gemma 4 global layers.

 Sources
[NVIDIA Developer Blog, Mastering LLM Techniques: Inference Optimization ↗](https://developer.nvidia.com/blog/mastering-llm-techniques-inference-optimization/)

## Fitting Models to Common Memory Sizes

Hardware capacity determines which open-weights architectures you can deploy and what quantization levels are necessary. On a 12 GB GPU at an 8,192-token context length, 13 of the 31 models fit inside memory: 8 of the 13 models the tool launched with and 5 of the 18 added since. [Phi-4-mini Instruct](https://huggingface.co/microsoft/Phi-4-mini-instruct) fits at FP16 using 8.2 GB. The 7B to 8B models fit at INT8: [Qwen2.5 7B Instruct](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct) needs 7.5 GB, [Mistral 7B Instruct v0.3](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3) needs 7.8 GB, [DeepSeek-R1-Distill-Llama 8B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Llama-8B) needs 8.5 GB, and Qwen3 8B needs 8.8 GB. The 14B models fit at 4-bit: [Phi-4](https://huggingface.co/microsoft/phi-4) needs 8.1 GB, [Qwen3 14B](https://huggingface.co/Qwen/Qwen3-14B) needs 8.1 GB, and [Qwen2.5 14B Instruct](https://huggingface.co/Qwen/Qwen2.5-14B-Instruct) needs 8.3 GB. [Mistral Small 24B Instruct 2501](https://huggingface.co/mistralai/Mistral-Small-24B-Instruct-2501) needs 12.4 GB at 4-bit, falling 0.4 GB short of fitting. Among the newer entries, Gemma 3 4B fits at FP16 (8.3 GB), Llama 3.1 8B and Gemma 4 E4B fit at INT8 (8.5 GB and 7.6 GB), and Gemma 3 12B and gpt-oss 20B fit at 4-bit (6.5 GB and 9.9 GB). Gemma 3 27B needs 13.8 GB at 4-bit and Gemma 4 26B-A4B needs 12.4 GB, so neither fits.

When you select Mac unified memory, What LLM Can I Run allocates 75% of your total capacity to the model and reserves 25% for macOS and background applications. On a 16 GB Mac, this reserve leaves 12 GB available for model execution, yielding the exact same 13 model fits at 8,192 tokens as a dedicated 12 GB GPU.

On a 24 GB GPU at an 8,192-token context, 23 of the 31 models fit into memory: 11 of the 13 models the tool launched with and 12 of the 18 added since. Phi-4-mini needs 8.2 GB, Mistral 7B needs 14.5 GB, Qwen2.5 7B needs 14.6 GB, DeepSeek-R1-Distill-Llama 8B needs 16.0 GB, and Qwen3 8B needs 16.4 GB, all running at full FP16 precision. Moving up to INT8 enables Phi-4 at 14.6 GB, Qwen3 14B at 15.0 GB, Qwen2.5 14B at 15.2 GB, and Mistral Small 24B at 23.6 GB. At 4-bit quantization, [Qwen2.5 32B Instruct](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct) takes 17.1 GB with 6.9 GB spare, while [Qwen3 32B](https://huggingface.co/Qwen/Qwen3-32B) consumes 17.3 GB. [DeepSeek-R1-Distill-Llama 70B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Llama-70B) requires 35.4 GB at 4-bit and [Qwen2.5 72B Instruct](https://huggingface.co/Qwen/Qwen2.5-72B-Instruct) requires 36.4 GB, meaning neither fits on a single 24 GB GPU. The newer entries add Gemma 3 4B, Llama 3.1 8B and Gemma 4 E4B at FP16 (8.3, 16.0 and 15.0 GB). Gemma 3 12B also fits at FP16 with 0.5 GB spare (23.5 GB, a tight fit), and gpt-oss 20B fits at INT8 (19.7 GB). Seven more fit at 4-bit: Gemma 3 27B (13.8 GB), Gemma 4 26B-A4B (12.4 GB), Gemma 4 31B (16.0 GB), Qwen3 30B-A3B (15.0 GB), Qwen3.5 27B (13.4 GB), Qwen3.5 35B-A3B (16.9 GB) and Mixtral 8x7B (22.7 GB, tight). Llama 3.3 70B needs 35.4 GB at 4-bit and gpt-oss 120B needs 61.1 GB as published, so neither fits.

On an 80 GB enterprise card like the [NVIDIA H100 Tensor Core GPU](https://www.nvidia.com/en-us/data-center/h100/) with a 32,768-token context, 27 of the 31 models fit in memory. Qwen3 235B-A22B, Qwen3.5 397B-A17B, DeepSeek-R1 and Llama 3.1 405B do not. Architectures up to Qwen3 32B run at FP16, with Qwen2.5 32B taking 68.5 GB. DeepSeek-R1-Distill-Llama 70B fits at INT8 using 75.7 GB with 4.3 GB spare, while Qwen2.5 72B fits at INT8 using 77.7 GB with 2.3 GB spare, both carrying a tight warning. Llama 3.3 70B also fits at INT8 with 75.7 GB (tight), and gpt-oss 120B fits as published at 61.9 GB.

 Sources
[NVIDIA, H100 Tensor Core GPU Specifications ↗](https://www.nvidia.com/en-us/data-center/h100/)

## Context Length and Tight Fits

Doubling your context length doubles the memory consumed by the KV cache on every layer that has no sliding window. While static weights remain constant, extended sequence lengths can exhaust leftover capacity and force a model down into a lower precision tier on the same graphics card.

On a 24 GB GPU at an 8,192-token context, Mistral Small 24B fits at INT8 with 23.6 GB of total memory, leaving 0.4 GB spare. Because the leftover capacity sits below 10% of total memory, What LLM Can I Run flags the row with a ⚠ (tight) indicator. That 0.4 GB of spare memory limits the longest context that fits to 10,802 tokens before memory is exhausted.

On that same 24 GB GPU, Qwen2.5 32B at 4-bit uses 17.1 GB of memory at 8,192 tokens, leaving 6.9 GB spare. That headroom allows context to expand up to 36,315 tokens before running out of memory. If your context requirements expand beyond that limit, the workload will fail to run unless you reduce context or deploy additional memory.

## When the Fit Table Is Wrong for You

The fit table estimates memory using static model weights and the KV cache, excluding activations, runtime buffers, and framework memory overhead. Real video memory usage during live serving is always higher, which is why tight rows require caution.

Quantized file distributions like GGUF introduce metadata and mix quantization precisions across tensor layers, meaning actual file sizes on disk differ somewhat from raw parameter counts multiplied by precision bytes. Furthermore, runtimes that store the KV cache at lower precision need less memory than shown.

This calculator determines whether an architecture fits within physical memory, not how fast it processes tokens or the output quality of its responses. To evaluate generation latency on specific hardware, consult the [LLM Tokens Per Second Calculator](https://www.layer3labs.io/tools/llm-tokens-per-second-calculator). If you are budgeting hardware purchases from scratch, use the [Local AI Hardware Calculator](https://www.layer3labs.io/tools/local-ai-hardware-calculator). To isolate memory demand across extended contexts or multi-user batches, use the [KV Cache Calculator](https://www.layer3labs.io/tools/kv-cache-calculator). You can also review machine builds in [Best Budget Mini PC for Local AI](https://www.layer3labs.io/guides/best-budget-mini-pc-for-local-ai) and top models in [Best Local LLMs](https://www.layer3labs.io/guides/best-local-llms).

Once a model fits, [estimate local AI electricity cost](https://www.layer3labs.io/tools/local-llm-electricity-cost-calculator) from whole-computer watts and your tariff.

## Frequently Asked Questions

- What LLM can I run with 16GB VRAM? On a 16 GB GPU at an 8,192-token context, 19 of the 31 models fit. Phi-4-mini runs at FP16 (8.2 GB), Qwen3 8B at INT8 (8.8 GB), Mistral Small 24B at 4-bit (12.4 GB), and gpt-oss 20B as published in MXFP4 (13.0 GB). Gemma 3 27B (13.8 GB) and Gemma 4 26B-A4B (12.4 GB) also fit at 4-bit. Mistral 7B, Qwen2.5 7B and DeepSeek-R1-Distill-Llama 8B also fit at FP16, and Phi-4 and both 14B [Qwen](https://chat.qwen.ai) models at INT8, but each leaves under 10% spare, so the table marks them tight.
- What LLM can I run on a Mac mini? On a Mac mini with 16 GB of unified memory, What LLM Can I Run allocates 75% (12 GB) to the model and reserves 25% for macOS and apps. At an 8,192-token context, this configuration fits 13 models: Phi-4-mini at FP16, 7B to 8B models like Qwen2.5 7B at INT8, 14B models like Qwen2.5 14B at 4-bit quantization, and newer models such as Gemma 3 12B and gpt-oss 20B at 4-bit.
- Can I run a 70B model on a 24GB GPU? No, a single 24 GB GPU cannot run a 70B model even at 4-bit quantization. At an 8,192-token context, DeepSeek-R1-Distill-Llama 70B and Llama 3.3 70B each require 35.4 GB at 4-bit, and Qwen2.5 72B requires 36.4 GB, all exceeding the 24 GB limit.
- Does a longer context need more VRAM? Yes, context length directly expands the key-value cache at a rate of 2 × layers × KV heads × head dim × tokens × bytes per value. Doubling your context length doubles the memory consumed by the KV cache, which can push total memory demand past your hardware ceiling. Sliding-window layers stop growing at their window, so Gemma 3, Gemma 4 and gpt-oss models grow more slowly.
- Is 4-bit quantization good enough? A 4-bit quantization uses 0.5 bytes per weight, cutting static weight memory to one quarter of FP16&#x27;s footprint. The calculator measures physical memory fit rather than output quality, allowing larger architectures like Qwen2.5 32B to fit onto hardware like a 24 GB GPU.
- Is 8 GB of RAM enough to run an LLM? Yes, 8 GB of RAM can run small 4-bit models, leaving 4 GB after keeping 4 GB for the operating system. At an 8,192-token context, only 4 of the 31 listed models fit: Phi-4-mini (2.8 GB), Gemma 3 4B (2.3 GB), Gemma 4 E4B (3.9 GB, tight), and Qwen2.5 7B (4.0 GB, tight). Mistral 7B needs 4.4 GB and Llama 3.1 8B needs 4.7 GB at 4-bit so neither fits, and fitting in memory does not estimate speed.
- Do I need 32 GB of RAM to run an LLM? You do not need 32 GB of RAM to run smaller models. In our internal calculations, 16 GB of RAM leaves 12 GB after the 4 GB operating-system reserve, fitting 13 of 31 models at an 8,192-token context, including Qwen3 8B at 8-bit at 8.8 GB. A 32 GB machine leaves 28 GB to fit 23 models like Qwen3 32B at 4-bit at 17.3 GB, but still cannot hold Llama 3.3 70B at 4-bit needing 35.4 GB.

### Need help sizing local AI infrastructure?

Selecting models that fit your available GPU memory prevents costly out-of-memory crashes during inference. In an advisory engagement, Layer3Labs helps your team evaluate model architectures, quantization tradeoffs, and hardware sizing before you invest in compute.

[Book a Consultation](https://www.layer3labs.io/ai-workflow-audit?src=bottom_cta_block&from=%2Ftools%2Fwhat-llm-can-i-run)

### Related Resources

[Tools #### Local AI Hardware Calculator Size GPU VRAM and system memory requirements based on model parameter count and precision.](https://www.layer3labs.io/tools/local-ai-hardware-calculator)[Tools #### KV Cache Calculator Calculate key-value cache memory footprints across custom context lengths and batch sizes.](https://www.layer3labs.io/tools/kv-cache-calculator)[Tools #### LLM Tokens Per Second Calculator Estimate model generation speed and processing throughput across different GPU setups.](https://www.layer3labs.io/tools/llm-tokens-per-second-calculator)[Guides #### Best Local LLMs Compare leading open-weights models alongside the hardware requirements needed to deploy them.](https://www.layer3labs.io/guides/best-local-llms)[Hardware #### Best Budget Mini PC for Local AI Review compact, budget-friendly desktop systems capable of running quantized local models.](https://www.layer3labs.io/guides/best-budget-mini-pc-for-local-ai)
 See  2  more
