On a machine with 16 GB of system RAM, try Qwen3.5-9B first in LM Studio. Switch to Qwen3.5-4B if the 9B estimate leaves too little memory for your usual apps or if a typical prompt causes swapping. Check the model at the context length your work needs.
Which local LLM fits best in 16GB of RAM?
Use the 9B as your first pick in the 8B–9B class. If you already have an 8B model, keep it if it passes the same memory and prompt checks below. Start with 4B if you regularly keep memory-heavy apps open. LM Studio Qwen3.5 catalog
| Model | Catalog download | When to choose it |
|---|---|---|
Qwen3.5-9B (qwen/qwen3.5-9b) | 7.00 GB | First pick when the estimate leaves room at your intended context and a real prompt runs comfortably. |
Qwen3.5-4B (qwen/qwen3.5-4b) | 3.75 GB | Start here when RAM is already tight. Switch here if 9B leaves little headroom, fails to load, or brings on swapping during the prompt. |
On an Apple silicon MacBook, the CPU and GPU share the same memory pool. Start with the same Qwen pair and compare the estimate with the memory left by macOS and your apps. Apple’s explanation of unified memory
For less than 16 GB, start with 4B at a short context. LM Studio recommends small models and modest context on 8 GB Macs. With more than 16 GB, use the extra headroom to try a longer context or estimate a larger model. LM Studio system requirements
The metric that matters: KV bytes per token
The key-value (KV) cache holds attention data so the model can reuse it as it generates text. A longer context can require a larger cache. LM Studio describes how Qwen3.5’s hybrid attention and Gemma 4’s sliding windows reduce cache memory at longer contexts. Transformers cache guide · LM Studio’s MLX engine notes
Use the difference between the two context estimates below to see what the longer context costs for your download and settings. If that increase eats your headroom, shorten the context or estimate the 4B at the length you need. LM Studio lms load documentation
Why pick Qwen3.5-9B over Gemma 4 12B?
Start with Qwen3.5-9B for its smaller catalog download. Gemma 4 12B is a 7.40 GB alternative. If Qwen misses instructions or leaves out details on a prompt you use often, estimate Gemma at the same context and compare the two answers. LM Studio Gemma 4 catalog
When is gpt-oss-20b worth the squeeze?
Try gpt-oss-20b if you have a reasoning task the 9B struggles with and can keep the other memory demands low. OpenAI says the MXFP4 model can run within 16 GB of memory. LM Studio lists a 12.00 GB download. OpenAI model card · LM Studio gpt-oss catalog
Estimate it at the shortest context that serves the task. Load it only if that estimate leaves room with your usual apps open. Keep it if the same prompt gives a more useful answer and the machine stays responsive.
What doesn’t fit in 16GB of RAM?
Skip the catalog versions of Qwen3.5-27B (17.00 GB) and Qwen3.6-27B (16.10 GB) on a machine with only 16 GB of system RAM. Qwen3.5 catalog · Qwen3.6 catalog
LM Studio lists Gemma 4 26B A4B as a 15.60 GB download. Gemma 4 catalog Use the estimator below at your intended context and compare Estimated Total Memory with available RAM.
With 16 GB of dedicated VRAM, you have a separate GPU memory pool. Try Qwen3.5-9B with --gpu max and compare Estimated GPU Memory with available VRAM. If the estimate leaves room, try your intended context before loading with the same flag. Microsoft’s guide to dedicated GPU memory · LM Studio GPU offload documentation
Use the same full-offload check for gpt-oss-20b if you need it. The 7B VRAM guide explains how to size GPU memory. The GGUF quantization guide covers other weight formats and sizes.
Wiring it up: prove the fit
-
Download and find the key. Search for the 9B model from the table in Discover and download it. Run
lms lsand copy the key from the row for your download. LM Studio download guide · LM Studiolms lsdocumentationlms ls -
Estimate at two contexts. Replace
<key>with your downloaded key and<needed-context>with the token count you plan to use. Run the second command at that count even if the first estimate looks comfortable. LM Studiolms loaddocumentationlms load <key> --estimate-only --context-length 4096 lms load <key> --estimate-only --context-length <needed-context> -
Compare both estimates with available memory. With your usual apps open, compare Estimated Total Memory with available system memory on a shared-memory or CPU-only setup. On Windows, read Available in Task Manager. On a Mac, open Memory in Activity Monitor and subtract Memory Used from Physical Memory for a rough budget. Microsoft’s available memory documentation · Apple’s Activity Monitor guide
On a discrete GPU, compare Estimated GPU Memory with the dedicated VRAM still available, and leave system RAM for anything that stays on the CPU. If headroom is tight, retry at 4096 if your task fits. If you need the longer context, download 4B and repeat with its key. Microsoft’s GPU memory guide · LM Studio estimate documentation
-
Load and send a real prompt. Replace
<chosen-context>with the token count that left enough headroom. Keep the same GPU setting as in the estimate. Run the chat command after the model loads, replacing the example text with a prompt and input of the size you normally use. LM Studiolms load· LM Studiolms chatlms load <key> --context-length <chosen-context> --identifier fit-check lms chat fit-check -p "Summarize this meeting transcript and list the decisions: [paste transcript here]"Keep the setting if the answer completes, the machine stays responsive, and memory has room to spare. On a Mac, watch Memory Pressure and Swap Used in Activity Monitor during the prompt. Apple’s Activity Monitor guide If pressure stays elevated or swap keeps rising, run
lms unloadand select the model you just loaded. LM Studio unload documentation Then retry with a shorter context or the 4B.
See the LM Studio loading guide for the app workflow. If you use Ollama, see the LM Studio vs Ollama comparison.
Evidence note. Download sizes come from LM Studio’s catalog. The CLI steps were documented from LM Studio’s CLI guides and the 0.3.27 release notes, which introduced CLI memory estimation. No hands-on testing was performed for this guide.
Related across the network
- How Much VRAM Do You Need to Run Local LLMs with Ollama? — ollamalab.com
- Ollama Tokens per Second: What Sets Your Speed — ollamalab.com