LM Studio Local Testing Guide
A guide for testing local LLMs with LM Studio on developer laptops, especially Apple Silicon machines with 8 GB unified memory.
LM Studio Local Testing Guide
This guide helps you run and test a local LLM with LM Studio on a developer laptop, especially Apple Silicon machines with 8 GB unified memory.
1. What LM Studio is for
LM Studio lets you:
- Download and run LLMs locally (for example Qwen, Phi, Gemma, Llama)
- Chat with models using a desktop UI
- Expose a local OpenAI-compatible API endpoint for your apps
- Keep prompts and responses on your machine (offline usage is possible after model download)
2. Hardware expectations (important)
For an 8 GB Mac, stay in the 2B to 4B model range for day-to-day work.
- 2B to 4B models: usually fast and stable
- 7B+ models: can work, but often need heavy quantization, smaller context, and slower generation
3. Recommended models (June 2026)
| Model | Approx. size | Best for |
|---|---|---|
| Qwen2.5 3B Instruct | ~2 GB | Best balance of speed and quality |
| Qwen2.5 4B Instruct | ~2.5-3 GB | Better quality with good speed |
| Phi-3 Mini 3.8B Instruct | ~2-3 GB | Coding, debugging, reasoning |
| Gemma 2 2B Instruct | ~1.5-2 GB | Fast responses, low memory usage |
| Llama 3.2 3B Instruct | ~2 GB | Solid general chat |
If your main goal is coding, start with:
- Phi-3 Mini 3.8B Instruct
- Qwen2.5 4B Instruct
4. Install and first run
- Download LM Studio for your OS from the official site.
- Install and open LM Studio.
- Go to model search and download one model from the list above.
- Prefer
Q4_K_Mquantization for 8 GB systems. - Start a chat and run a quick sanity test prompt.
Example test prompt:
Explain what this TypeScript function does and suggest one improvement:
function sum(a: number, b: number) { return a + b; }5. Good default settings for 8 GB Macs
- Quantization:
Q4_K_M(fallback:Q4_0if memory is tight) - Context window: 4096 to 8192 tokens
- GPU offload: as high as LM Studio allows without instability
- Flash attention: enable if available
Avoid on 8 GB as a daily setup:
- Most 7B and 8B models with large context windows
- 14B+ models
- High-bit quantizations unless model is very small
6. Suggested model lineup for web/dev work
For Python, TypeScript, React/Next.js, SQL/Prisma:
- Qwen2.5 4B Instruct
Q4_K_M(main assistant) - Phi-3 Mini 3.8B Instruct
Q4_K_M(coding specialist) - Gemma 2 2B Instruct
Q4_K_M(fast fallback)
7. Troubleshooting quick wins
- If generation is slow: reduce context window first, then switch to a smaller model.
- If LM Studio becomes unstable: lower model size or use a lower-memory quantization.
- If answers are low quality: try a better 4B model before increasing context.
- If you need fully offline use: download models first, then disconnect from network.
8. Optional: MLX on Apple Silicon
If you want maximum Apple Silicon performance, MLX-based model runtimes can be faster and more memory-efficient than GGUF in many cases. LM Studio is usually the easiest starting point, while MLX is a stronger performance path for advanced users.
Last updated: June 1, 2026
Continue with the companion page: LM Studio Companion: Walkthrough, Prompts, and Benchmarks
LM Studio Companion Guide
A companion guide for LM Studio, including a screenshot walkthrough, coding prompts, and mini benchmark checklist.
Getting Started with MDX
This guide provides an introduction to using MDX for writing documentation and guides. It covers the basics of text formatting, lists, links, images, blockquotes, code blocks, tables, and footnotes.