1. Learn
  2. Run and serve it

LM Studio guide: download, run and serve local models

How to use LM Studio to find a model that fits your GPU or Mac, set GPU offload and context, and run its local OpenAI-compatible server.

Updated Oct 26, 2026 · RunItLocal.io

LM Studio is the easiest way to run local models without a terminal. It's a free desktop app for Windows, Mac and Linux. You search for a model inside it, it tells you whether the file fits your memory, and you chat in a clean window. It can also run a local server so other apps can use the model. It's built on llama.cpp, and on Apple silicon it also runs MLX models.

Not sure it's the right tool? Ollama vs llama.cpp vs LM Studio compares all three.

Step 1: Install and pick a model

Download LM Studio from its website and open it. Go to the search (Discover) section and type a model name, for example "Qwen3 8B".

You'll see several files for the same model. They're different quantizations: smaller files lose a little quality. LM Studio marks which ones fit your hardware. Good defaults:

  • Q4_K_M for most people. The best balance of size and quality.
  • Q5_K_M or Q6_K if you have memory to spare.
  • MLX 4-bit on a Mac, which is often a little faster than GGUF there.

Quantization explained covers the tradeoffs.

Step 2: Pick by memory

The model file plus about 1.2 GB for context has to fit in your graphics memory. A quick guide:

Your memoryStart withWhy
8 GB GPUQwen3 8BFits with room for context
12 GB GPUQwen3 14B or Gemma 3 12BGemma reads images too
16 GB GPUgpt-oss 20BMixture of experts, so it's fast
24 GB GPUQwen3 30B-A3B or Qwen3 32BThe sweet spot for one card
Mac, 32 GB+Qwen3 30B-A3BAbout two thirds of memory is usable

Here's what our calculator estimates for a 12 GB RTX 3060, the card in our "Starter" build:

RTX 3060, 12 GB · estimated with our calculator · full page

  • Qwen3 4BQuick everyday chat and summaries
    ~79 tok/s
    Runs greatqwen3:4b
  • Qwen3 8BA solid all-rounder for chat and writing
    ~38 tok/s
    Runs greatqwen3:8b
  • Gemma 3 12BReads images as well as text
    ~24 tok/s
    Usablegemma3:12b
  • Qwen3 14BNoticeably smarter at reasoning and code
    ~21 tok/s
    Usableqwen3:14b
  • gpt-oss 20BOpenAI's open model. Fast, strong reasoning
    needs 16 GB
    Too biggpt-oss:20b
  • Gemma 3 27BGoogle's best open model for its size
    needs 19 GB
    Too biggemma3:27b
  • Qwen3 30B-A3B30B smarts at small-model speed
    needs 21 GB
    Too bigqwen3:30b
  • Qwen3 32BStrong coding and long answers
    needs 22 GB
    Too bigqwen3:32b
  • Llama 3.3 70BClose to the big cloud models
    needs 45 GB
    Too bigllama3.3:70b
  • gpt-oss 120BOpenAI's largest open model
    needs 67 GB
    Too biggpt-oss:120b
  • Qwen3 235B-A22BAlibaba's flagship open model, for multi-GPU rigs
    needs 144 GB
    Too bigqwen3:235b
  • DeepSeek R1 671BThe full DeepSeek R1, for the biggest rigs
    needs 406 GB
    Too bigdeepseek-r1:671b

Step 3: Load it with the right settings

When you load a model, LM Studio shows a few settings. Two matter:

  • GPU offload. How many of the model's layers go on the GPU. Set it to the maximum if the model fits. If it doesn't load, lower it; the rest runs on the CPU, which is much slower.
  • Context length. How much text the model can see at once. Longer costs memory. 8K is fine for chat; raise it for long documents. See how much VRAM you need.

If a model loads but runs slowly, check the offload setting first. Partial offload is the usual reason.

Step 4: Chat

Pick the loaded model at the top of the chat window and type. You can set a system prompt for standing instructions, and drop in images if the model supports them, like Gemma 3.

Step 5: Run the local server

This is what makes LM Studio useful beyond its own window. Open the Developer section, load a model, and start the server. It serves an OpenAI-compatible API at http://localhost:1234/v1.

Test it from a terminal:

curl http://localhost:1234/v1/models

That lists the models it can serve. Then point any OpenAI-compatible app, like a coding extension or a script, at http://localhost:1234/v1. Use the model name from that list.

There's also a command-line tool, lms, that ships with the app. It's handy for scripting:

lms server start

lms ls lists the models you've downloaded.

Using it from other devices

By default the server only answers on your own computer. The server settings have an option to serve on your local network. Turn it on only on a network you trust, and don't forward the port to the internet. For phones and laptops away from home, use a private network instead; see remote access with Tailscale or Cloudflare.

When to switch

LM Studio is great for trying models and for one person. Move on when:

  • You want a background service other apps rely on. Ollama is built for that; start with the Ollama API guide.
  • You want every setting, or to tune a multi-GPU rig. Use the llama.cpp server directly.

Models you download in LM Studio are ordinary GGUF files, so you can import them into Ollama without downloading again.