Learn · Run it yourself

Run AI at home

Every one of the 120 open-weight models we track can run on your own hardware — if it fits. This page reads your computer, works out which models run and how fast, what a tweak or an upgrade would unlock, and gives you the exact commands to set each one up.

Check my computer← The full Learn guide12 models fit an 8 GB card · 47 fit 24 GB

Calculator

What can my computer run?

Reading your hardware…

Model inspector

Tweaks for this model

    Set it up

    Estimates, not promises: real memory use varies by a gigabyte or two with the runtime and drivers, and speed by ±30%. Speeds are for generating text once the prompt is read; reading a long prompt (prefill) is compute-bound and usually much faster per token on a GPU, much slower on a CPU. Your browser can't see exact RAM or VRAM, so check the numbers above — they're saved on this device only.

    01 · How local AI works

    What actually happens on your machine

    A model file is just its weights — billions of numbers — plus a little metadata. Running it locally means three steps. A runtime such as llama.cpp, Ollama, LM Studio, MLX or vLLM loads those numbers into memory, ideally your graphics card's memory (VRAM). Your prompt is turned into tokens and pushed through every layer of the network at once; this is prefill, and it's compute-heavy but parallel. Then the model writes its answer one token at a time; this is decode, and for each new token the hardware has to read essentially all the active weights from memory again.

    Nothing leaves your computer: no API key, no per-token bill, no rate limits, and it works offline. The trade-offs are that the best open models are big, your hardware sets the ceiling on size and speed, and you're the one keeping it updated.

    The one-line rule

    Memory decides which models you can run. Memory bandwidth decides how fast they run. Raw compute matters much less for a single user than most people expect.

    02 · Memory math

    How much memory a model needs

    Three things share the memory: the weights, the KV cache and some working space.

    Weights = parameters × bits per weight ÷ 8. A 32-billion-parameter model at 16-bit is 64 GB; at a 4-bit quantization (Q4_K_M, about 4.85 bits once its scale factors are counted) it's about 19 GB. That's why quantization is what makes local AI practical.

    The KV cache stores, for every token in the context, the attention keys and values of every layer, so they don't have to be recomputed. Its size per token is 2 (keys and values) × layers × KV heads × head size × bytes per number. For a Llama-3-8B-style model that's 2 × 32 × 8 × 128 × 2 bytes = 128 KB per token, so a 32K-token context costs about 4 GB on top of the weights. Newer designs shrink this: grouped-query attention shares keys across heads, DeepSeek-style latent attention compresses them, and hybrid models (Qwen3.5/3.6, Gemma, Nemotron) use full attention on only a fraction of their layers. We read each model's real config, so the calculator uses its true figure.

    Working space — activation buffers, the runtime and, on a desktop, whatever your screen and browser already use — is typically 0.5 to 1.5 GB.

    memory ≈ params × bpw / 8                         # weights
           + 2 × layers × kv_heads × head_dim × 2B × ctx  # KV cache (16-bit)
           + ~0.8 GB                                     # buffers

    If it doesn't fit in VRAM, runtimes can offload: some layers stay on the GPU and the rest run from system RAM on the CPU. It works, but every token now waits on the slower memory. Mixture-of-experts models offload unusually well — keep the attention and shared layers on the GPU and push only the big, rarely-used expert weights to RAM (--n-cpu-moe in llama.cpp).

    03 · Why speed = bandwidth

    Tokens per second, from first principles

    Generating one token means reading every active weight once. So the speed limit is simply memory bandwidth divided by the bytes of active weights (plus the part of the KV cache being read). An RTX 4090 moves about 1,000 GB/s; a 19 GB model can therefore manage at most about 50 tokens a second, and real runtimes reach roughly 60–75% of that limit.

    tokens/s ≈ efficiency × bandwidth / (active_params × bpw / 8 + kv_read)
    # RTX 4090, 32B dense @ Q4_K_M:  0.65 × 1008 / 19.4 ≈ 34 tok/s
    # same model on dual-channel DDR5 (CPU): 0.6 × 80 / 19.4 ≈ 2.5 tok/s
    # 30B-A3B MoE @ Q4_K_M on that CPU:     0.6 × 80 / 1.8 ≈ 26 tok/s

    That last line is why mixture-of-experts models changed local AI: a 30-billion-parameter MoE with 3 billion active parameters needs the memory of a 30B model but runs at the speed of a 3B one. It's also why Apple Silicon Macs, AMD's Ryzen AI Max and NVIDIA's DGX Spark are popular: their large, fast unified memory holds models no consumer graphics card can.

    Prefill — reading your prompt — is different: it's compute-bound and processes thousands of tokens in parallel. GPUs do hundreds to thousands of tokens a second there; CPUs often only tens, which is why a CPU-only coding agent feels slow even when its typing speed looks fine. Tricks that help: flash attention (less memory traffic, needed for a quantized KV cache), prompt caching (llama.cpp and Ollama keep the KV cache of your last prompt), and speculative decoding (a tiny draft model or the model's own multi-token-prediction head guesses several tokens and the big model checks them in one pass).

    04 · GGUF, MLX & quant types

    Which file to download

    GGUF is llama.cpp's single-file format, used by Ollama, LM Studio, Jan and most desktop apps. It runs on NVIDIA, AMD, Intel and Apple GPUs and on plain CPUs. Names describe the quantization: Q4_K_M is a 4-bit “k-quant”, medium mix; Q5_K_M and Q6_K are closer to the original; Q8_0 is nearly lossless; IQ types (“i-quants”) squeeze harder using an importance matrix measured on sample text; Unsloth's UD- “dynamic” files keep sensitive layers at higher precision. MXFP4 is the 4-bit float format some models (gpt-oss) are trained in natively.

    MLX is Apple's framework for Apple Silicon; MLX builds are often 10–30% faster than GGUF on a Mac. Safetensors in BF16 or FP8 are the original weights, used by vLLM and SGLang on servers with big NVIDIA or AMD GPUs.

    Rules of thumb: Q4_K_M is the sweet spot for most people; prefer a bigger model at Q4 over a smaller one at Q8; below Q3, quality falls off quickly — except for very large MoE models, which tolerate 2–3 bits surprisingly well. The calculator picks the highest quality that still runs smoothly on your machine.

    05 · Set up in 10 minutes

    Install a runtime, pull a model

    Easiest: Ollama. Install it from ollama.com (Windows, macOS, Linux). It runs in the background and serves an API on port 11434. Any GGUF on Hugging Face can be pulled directly:

    ollama run hf.co/unsloth/Qwen3.5-9B-GGUF:Q4_K_M
    # more context, smaller KV cache (set before starting the server)
    OLLAMA_CONTEXT_LENGTH=32768 OLLAMA_FLASH_ATTENTION=1 OLLAMA_KV_CACHE_TYPE=q8_0 ollama serve

    Most control: llama.cpp. Download a release for your GPU from GitHub (CUDA for NVIDIA, Vulkan or ROCm/HIP for AMD and Intel, Metal is built in on Mac), or brew install llama.cpp / winget install llama.cpp. llama-server downloads the model, serves an OpenAI-compatible API on port 8080 and a chat page in your browser. It handles split files for very large models, which Ollama doesn't always.

    llama-server -hf unsloth/Qwen3.5-35B-A3B-GGUF:Q4_K_M -c 32768 -ngl 99 -fa on --jinja
    # too big for VRAM? keep the experts of the first N layers in system RAM
    llama-server -hf unsloth/Qwen3.5-122B-A10B-GGUF:Q4_K_M -c 32768 -ngl 99 --n-cpu-moe 30 -fa on --jinja

    Point and click: LM Studio. Install from lmstudio.ai, search a model in Discover, and it shows which quantizations fit your GPU. Turn on the local server (port 1234) to use it from other apps. On a Mac it offers both GGUF and MLX builds.

    Apple Silicon: MLX. pip install mlx-lm, then mlx_lm.server --model mlx-community/… serves an OpenAI-compatible API. By default macOS lets the GPU use about two-thirds to three-quarters of unified memory; sudo sysctl iogpu.wired_limit_mb=… raises that until the next reboot.

    Servers and multi-GPU: vLLM or SGLang on Linux with NVIDIA or AMD cards. They batch many requests at once and split a model across GPUs (--tensor-parallel-size 2), at the cost of needing the whole model in VRAM.

    Drivers matter: on NVIDIA keep the driver current; on Windows consider setting CUDA – Sysmem Fallback Policy to “Prefer no sysmem fallback” in the NVIDIA Control Panel, so a model that doesn't fit fails loudly instead of silently crawling. On AMD, check your card first: ROCm (which Ollama's default AMD build and vLLM need) covers the RX 9000 and 7000 series and the RX 6800 and up; the RX 6600/6700 family works on Linux with HSA_OVERRIDE_GFX_VERSION=10.3.0; the RX 5000 series, Vega and the RX 400/500 cards have no ROCm at all and run only through Vulkan — LM Studio's Vulkan runtime, llama.cpp's Vulkan build, or Ollama's Vulkan backend — somewhat slower and with no vLLM. Radeons older than the HD 7000 series can't run models on the GPU.

    06 · Use it from your coding agent

    Plug a local model into your tools

    All of these runtimes speak the OpenAI chat-completions API, so most coding tools can use them by changing the base URL: http://localhost:11434/v1 for Ollama, http://localhost:8080/v1 for llama-server, http://localhost:1234/v1 for LM Studio. The API key can be any text.

    # Aider
    aider --model openai/local --openai-api-base http://localhost:8080/v1 --openai-api-key x
    # OpenCode (opencode.json)
    { "provider": { "local": { "npm": "@ai-sdk/openai-compatible",
      "options": { "baseURL": "http://localhost:11434/v1" },
      "models": { "qwen3.5:35b-a3b": {} } } } }

    For agents, pick a model with tool calling (filter “Coding agents” above), give it at least 32K of context — agent system prompts and file reads fill it fast — and start llama.cpp with --jinja so the model's own chat template formats tool calls correctly. Browse the agents themselves on our Tools page.

    07 · Every open model

    All 120 open models, sized

    Memory is for the weights plus an 8K-token context and buffers. The last column shows how each runs on the computer set in the calculator. Labs with the most open models: Qwen (28), DeepSeek (13), Mistral (12), Z.ai (12), Meta (10), Moonshot AI (8).

    ModelParamsQ4_K_MQ8_0ContextBuildsOn yours
    Kimi K3.1 ProMoonshot AI · tools · vision2.78T1687 GB2956 GB1M
    MiniMax M3.1 FlashMiniMax · tools · vision221B135 GB236 GB1M
    Muse Spark OpenMeta · tools · vision816B42B active498 GB870 GB1M
    Nemotron 3.5 Super VLNVIDIA · tools · vision120B12B active75 GB130 GB1M
    Step 5 PreviewStepFun · tools · vision604B27B active376 GB652 GB1M
    Mistral Large 4Mistral · tools · vision1T52B active608 GB1064 GB1M
    MiMo-V2.6-FlashXiaomi · tools · vision311B15B active190 GB332 GB1M
    MiMo-V2.6-ProXiaomi · tools · vision1.02T31B active625 GB1093 GB1M
    DeepSeek V4.1 FlashDeepSeek · tools · vision763B464 GB812 GB1M
    Hy4 previewTencent · tools780B49B active474 GB830 GB1M
    Qwen3.8 FlashQwen · tools · vision180B110 GB192 GB256K
    GLM 5.3 FlashZ.ai · tools · vision321B25B active196 GB343 GB1M
    DeepSeek V4 Flash Vision ExpDeepSeek · tools · vision305B34B active186 GB325 GB1M
    Hy-MT2-1.8BTencent2B2.5 GB3.5 GB8K
    Hy-MT2-30B-A3BTencent30B3B active20 GB34 GB8K
    Hy-MT2-7BTencent8B6.7 GB10 GB8K
    GLM 5.3Z.ai · tools753B51B active458 GB802 GB1M
    Qwen3.8 27BQwen · tools · vision28B18 GB31 GB256K
    Qwen3.8 2.4T A95BQwen · tools2.45T95B active1485 GB2601 GB256K
    DeepSeek V4 Pro 0813DeepSeek · tools1.65T127B active1002 GB1755 GB1M
    Nemotron 3.5 LightningNVIDIA · tools32B3B active20 GB35 GB256K
    Muse Glimmer 30BMeta · tools · vision30B19 GB33 GB128K
    DeepSeek V4 Flash 0731DeepSeek · tools304B13B active186 GB325 GB1M
    Kimi K3Moonshot AI · tools · vision2.78T1687 GB2955 GB1M
    Hy3Tencent · tools299B24B active185 GB321 GB256K
    North Mini CodeCohere · tools31B3B active20 GB33 GB250K
    GLM 5.2Z.ai · tools753B51B active458 GB802 GB1M
    Kimi K2.7 CodeMoonshot AI · tools · vision1.03T33B active624 GB1092 GB256K
    Nemotron 3.5 Content SafetyNVIDIA · vision4.3B3.6 GB5.5 GB128K
    Nemotron 3 UltraNVIDIA · tools561B55B active343 GB599 GB256K
    MiniMax M3MiniMax · tools · vision427B5.7B active261 GB455 GB1M
    Step 3.7 FlashStepFun · tools · vision201B126 GB218 GB256K
    Nemotron 3 Nano OmniNVIDIA · tools · vision33B3B active21 GB36 GB250K
    Qwen3.6 35B A3BQwen · tools · vision36B3B active23 GB39 GB256K
    Qwen3.6 27BQwen · tools · vision28B18 GB31 GB256K
    DeepSeek V4 Pro 0423DeepSeek · tools1.6T49B active971 GB1701 GB1M
    DeepSeek V4 Flash 0423DeepSeek · tools291B13B active178 GB311 GB1M
    Hy3 previewTencent · tools299B24B active185 GB321 GB256K
    MiMo-V2.5-ProXiaomi · tools1.02T30B active625 GB1091 GB1M
    MiMo-V2.5Xiaomi · tools · vision311B11B active190 GB332 GB1M
    Kimi K2.6Moonshot AI · tools · vision1.03T33B active624 GB1092 GB256K
    GLM 5.1Z.ai · tools754B52B active459 GB803 GB198K
    Gemma 4 26B A4B Google · tools · vision26B4B active17 GB29 GB256K
    Gemma 4 31BGoogle · tools · vision31B21 GB35 GB256K
    MiniMax M2.7MiniMax · tools229B11B active142 GB246 GB200K
    Mistral Small 4Mistral · tools · vision119B7.1B active73 GB128 GB256K
    Nemotron 3 SuperNVIDIA · tools124B12B active76 GB133 GB256K
    Qwen3.5-9BQwen · tools · vision9.7B6.9 GB11 GB256K
    Qwen3.5-35B-A3BQwen · tools · vision36B3B active23 GB39 GB256K
    Qwen3.5-27BQwen · tools · vision28B18 GB31 GB256K
    Qwen3.5-122B-A10BQwen · tools · vision125B10B active77 GB134 GB256K
    Qwen3.5 397B A17BQwen · tools · vision403B17B active246 GB430 GB256K
    MiniMax M2.5MiniMax · tools229B11B active142 GB246 GB192K
    GLM 5Z.ai · tools754B52B active459 GB803 GB198K
    Qwen3 Coder NextQwen · tools80B3B active49 GB86 GB256K
    Step 3.5 FlashStepFun · tools199B125 GB216 GB256K
    Kimi K2.5Moonshot AI · tools · vision1.03T33B active624 GB1092 GB256K
    GLM 4.7 FlashZ.ai · tools31B5.2B active20 GB34 GB195K
    GLM 4.7Z.ai · tools358B39B active221 GB385 GB198K
    Nemotron 3 Nano 30B A3BNVIDIA · tools32B3B active20 GB35 GB256K
    Devstral 2 2512Mistral · tools125B80 GB137 GB256K
    GLM 4.6VZ.ai · tools · vision108B14B active68 GB117 GB128K
    Ministral 3 14B 2512Mistral · tools · vision14B11 GB17 GB256K
    Ministral 3 8B 2512Mistral · tools · vision8.9B7.3 GB11 GB256K
    Ministral 3 3B 2512Mistral · tools · vision3.8B4.0 GB5.7 GB128K
    DeepSeek V3.2DeepSeek · tools685B52B active417 GB730 GB160K
    Kimi K2 ThinkingMoonshot AI · tools1.03T33B active624 GB1092 GB256K
    Voxtral Small 24B 2507Mistral · tools24B17 GB28 GB32K
    gpt-oss-safeguard-20bOpenAI · tools22B14 GB24 GB128K
    Qwen3 VL 8B InstructQwen · tools · vision8.8B7.3 GB11 GB256K
    Qwen3 VL 30B A3B ThinkingQwen · tools · vision31B3B active20 GB35 GB256K
    Qwen3 VL 30B A3B InstructQwen · tools · vision31B3B active20 GB35 GB256K
    GLM 4.6Z.ai · tools357B38B active220 GB383 GB198K
    DeepSeek V3.2 ExpDeepSeek · tools685B52B active417 GB730 GB160K
    Qwen3 VL 235B A22B InstructQwen · tools · vision236B22B active145 GB253 GB256K
    DeepSeek V3.1 TerminusDeepSeek · tools685B51B active416 GB729 GB160K
    Qwen3 Next 80B A3B InstructQwen · tools81B3B active50 GB87 GB256K
    Kimi K2 0905Moonshot AI · tools1.03T33B active624 GB1092 GB256K
    DeepSeek V3.1DeepSeek · tools685B51B active416 GB729 GB160K
    GLM 4.5VZ.ai · tools · vision108B14B active68 GB117 GB64K
    gpt-oss-120bOpenAI · tools117B5.7B active72 GB125 GB128K
    gpt-oss-20bOpenAI · tools21B4.2B active14 GB23 GB128K
    Qwen3 Coder 30B A3B InstructQwen · tools31B3B active20 GB34 GB256K
    Qwen3 30B A3B Instruct 2507Qwen · tools31B3B active20 GB34 GB256K
    GLM 4.5Z.ai · tools358B39B active221 GB385 GB128K
    GLM 4.5 AirZ.ai · tools111B17B active69 GB120 GB128K
    Qwen3 235B A22B Thinking 2507Qwen · tools235B22B active145 GB252 GB125K
    Qwen3 Coder 480B A35BQwen · tools480B35B active294 GB513 GB256K
    Qwen3 235B A22B Instruct 2507Qwen · tools235B22B active145 GB252 GB256K
    Kimi K2 0711Moonshot AI · tools1.03T33B active624 GB1092 GB128K
    Hunyuan A13B InstructTencent80B51 GB87 GB32K
    Mistral Small 3.2 24BMistral · tools · vision24B17 GB28 GB128K
    R1 0528DeepSeek · tools685B51B active416 GB729 GB160K
    Llama Guard 4 12BMeta · vision12B9.3 GB15 GB160K
    Qwen3 30B A3BQwen · tools31B3B active20 GB34 GB40K
    Qwen3 14BQwen · tools15B11 GB18 GB40K
    Qwen3 32BQwen · tools33B23 GB38 GB40K
    Llama 4 MaverickMeta · tools · vision402B17B active246 GB429 GB512K
    Llama 4 ScoutMeta · tools · vision109B17B active68 GB118 GB1.3M
    DeepSeek V3 0324DeepSeek · tools685B51B active416 GB729 GB160K
    Mistral Small 3.1 24BMistral · tools · vision24B17 GB28 GB125K
    Gemma 3 4BGoogle · vision4.3B4.2 GB6.2 GB128K
    Gemma 3 12BGoogle · tools · vision12B9.5 GB15 GB128K
    Command ACohere · tools111B71 GB122 GB250K
    Gemma 3 27BGoogle · tools · vision27B19 GB32 GB128K
    Qwen2.5 VL 72B InstructQwen · vision73B48 GB81 GB125K
    Mistral Small 3Mistral24B16 GB27 GB32K
    Phi 4Microsoft15B11 GB18 GB16K
    DeepSeek V3DeepSeek · tools685B51B active416 GB729 GB160K
    Llama 3.3 70B InstructMeta · tools71B46 GB78 GB128K
    Qwen2.5 Coder 32B InstructQwen33B23 GB38 GB32K
    Qwen2.5 7B InstructQwen · tools7.6B5.9 GB9.3 GB32K
    Llama 3.2 1B InstructMeta1.2B2.0 GB2.6 GB59K
    Llama 3.2 3B InstructMeta3.2B3.5 GB4.9 GB128K
    Qwen2.5 72B InstructQwen · tools73B48 GB81 GB32K
    Llama 3.1 70B InstructMeta71B46 GB78 GB128K
    Llama 3.1 8B InstructMeta · tools8B6.7 GB10 GB128K
    Mistral NemoMistral · tools12B9.5 GB15 GB128K
    Gemma 2 27BGoogle27B19 GB31 GB8K
    Mixtral 8x22B InstructMistral · tools141B88 GB152 GB64K

    Not sized yet (no public parameter count): Hy4, DeepSeek V4.1 Flash 1017.

    Sizes and attention shapes from each model's Hugging Face repository; GGUF and MLX builds are the most widely used community conversions. Refreshed with the model catalog.