MyPrivateClaw logo
MyPrivateClaw
Private AI Directory
Local LLM 8 min readApr 12· Updated Apr 13, 2026✓ Verified April 2026

LM Studio Setup Guide: Run Local LLMs in 5 Minutes

Download, install, and run your first private AI model with LM Studio 0.4.11 — no command line, no cloud, no data leaving your machine.

LM Studio Local LLM Setup Guide Beginner macOS Windows Linux GGUF Quantization

LM Studio is the easiest way to run large language models privately on your own hardware. It provides a polished desktop interface for downloading, loading, and chatting with any GGUF or safetensors model from Hugging Face — no command line required. Version 0.4.11 (April 2026) adds headless server deployment, an OpenAI-compatible API, MCP client support, and a JavaScript and Python SDK. Everything runs locally: your conversations never leave your machine.

NOTELM Studio is free for both home and work use. Source: lmstudio.ai/terms
THE EDGE — WEEKLY DIGEST

Get more guides like this in your inbox

No spam. Unsubscribe anytime.

System Requirements

Before downloading, confirm your hardware meets the minimum requirements. LM Studio supports Apple Silicon Macs, Windows x64/ARM, and Linux x64/ARM64.

WARNINGIntel-based Macs are not supported. LM Studio requires Apple Silicon (M1 or newer) on macOS.
PlatformMinimumRecommended
macOS (Apple Silicon)M1, macOS 14.0 (Sonoma), 8GB RAMM2/M3/M4, 16GB+ RAM
Windows x64AVX2 CPU, 16GB RAM, 4GB VRAMRTX 4090 or higher, 32GB RAM
Windows ARMSnapdragon X Elite16GB+ RAM
Linux x64/ARM64Ubuntu 20.04+, AppImageUbuntu 22.04, 16GB+ RAM, NVIDIA GPU

Step 1 — Download and Install LM Studio

Visit lmstudio.ai/download and download the installer for your operating system. The current version is 0.4.11.

Step 2 — Choose and Download a Model

Open the Discover tab (or press Cmd+2 on Mac / Ctrl+2 on Windows/Linux). Search for a model family by name — try 'Qwen', 'Llama', 'Gemma', or 'Mistral'. LM Studio pulls directly from Hugging Face, so any GGUF model is available.

TIPFirst time? Start with Qwen3.5 4B Q4_K_M (≈2.5GB) or Gemma 3 4B Q4_K_M (≈2.5GB). Both run on 8GB RAM and give fast, capable responses.

Understanding Quantization (Q Levels)

When you search for a model, you will see multiple download options named things like Q3_K_S, Q4_K_M, Q8_0. These are quantized versions of the same model — compressed to different degrees to trade file size against quality.

NOTERule of thumb: choose Q4_K_M or higher if your hardware supports it. The 'K_M' suffix means medium-quality K-quant, which preserves important weights at higher precision.
QuantizationFile Size (7B model)QualityBest For
Q3_K_S~2.0 GBLowerVery limited RAM (8GB Mac)
Q4_K_M~2.7 GBGoodMost users — best balance
Q5_K_M~3.2 GBBetter16GB+ RAM, quality priority
Q8_0~4.7 GBNear-lossless24GB+ VRAM, maximum quality

Step 3 — Load the Model

Once the download completes, open the Chat tab. Click the model loader at the top of the screen (or press Cmd+L on Mac / Ctrl+L on Windows/Linux). Select the model you downloaded from the list. Optionally adjust load parameters such as context length and GPU offload layers.

NOTELoading a model means copying its weights into RAM (or VRAM). A 7B Q4_K_M model uses approximately 4–5GB of memory. The load takes 5–30 seconds depending on your storage speed.

Step 4 — Your First Conversation

Once the model is loaded, type a message in the chat box and press Enter. The model will respond locally — no internet connection required, no data sent to any server. You can adjust system prompt, temperature, and context window in the settings panel on the right.

TIPTry a system prompt like 'You are a helpful assistant. Be concise.' to get more focused responses. System prompts are injected before every conversation and shape the model's behaviour.

Step 5 — Enable the Local API Server

LM Studio includes an OpenAI-compatible local API server. Enable it from the Developer tab (or the server icon in the sidebar). Once running, any application that supports the OpenAI API can connect to it at http://localhost:1234/v1 — including Open WebUI, Cursor, Continue.dev, and your own scripts.

python
# Connect to LM Studio from Python (using the OpenAI SDK)
from openai import OpenAI

client = OpenAI(base_url="http://localhost:1234/v1", api_key="lm-studio")

completion = client.chat.completions.create(
    model="qwen3.5-4b",  # use the model name shown in LM Studio
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "What is quantization in the context of LLMs?"}
    ]
)
print(completion.choices[0].message.content)

Not sure which model to start with? Use this table as a starting point based on your available RAM or VRAM.

HardwareRecommended ModelQuantizationWhy
Mac mini M4 (16GB)Qwen3.5 4B or Gemma 3 4BQ8_0Fits in unified memory, fast on Apple Silicon
Mac mini M4 Pro (24GB)Qwen3.5 8B or Llama 3.1 8BQ8_0Full quality 8B fits comfortably
Mac Studio M4 Max (36GB)Qwen3.5 14B or Mistral Small 4 24BQ6_KExcellent quality, near-lossless
RTX 4090 24GBLlama 3.1 8B or Mistral Small 4 24BQ8_0Full VRAM utilisation, fastest inference
RTX 4070 12GBQwen3.5 7B or Llama 3.1 8BQ4_K_MFits in VRAM with headroom
8GB RAM (any)Qwen3.5 1.7B or Gemma 3 1BQ4_K_MOnly option at this memory level

Privacy Notes

LM Studio is designed for private, local inference. By default, no model data, conversation history, or prompts are sent to any external server. The Discover tab fetches model metadata from Hugging Face to populate search results, but the actual model weights are downloaded directly to your machine. The local API server only listens on localhost (127.0.0.1) by default — it is not exposed to your network unless you explicitly change the bind address.

NOTEFor maximum privacy, disable the 'Send anonymous usage statistics' option in LM Studio Preferences → Privacy. This is enabled by default.

Next Steps

Once you are comfortable with basic chat, explore these features: Chat with Documents (RAG) lets you load PDFs and text files and ask questions about them. MCP client support connects LM Studio to external tools like web search and file access. The CLI (lms command) lets you load models and start the server from a terminal. The headless deployment option (llmster) runs LM Studio on a Linux server with no GUI — useful for a home server or NAS.

Read next

RELATED GUIDES