Skip to content
,

LM Studio Speculative Decoding: Up to 2x Faster with a Draft Model (Setup and Best Pairs)

8–13 minutes
Woman in a living room holding a tablet with an LM STUDIO card, hook 2x faster LM Studio trick

Speculative decoding can make LM Studio answer up to twice as fast or more with the exact same quality, and it’s built right into the app.

You pair your main model with a tiny “draft” model from the same family, flip one dropdown, and the big model starts accepting several tokens at a time instead of one.

It doesn’t help every time, though. Pick the wrong draft model and generation actually gets slower.

This guide covers how it works, how to turn it on, which draft models to pair with which main models, how to check whether it’s helping, and how to use it from the API and Python SDK.

It’s based on LM Studio’s docs and release notes as of December 2026.

TL;DR

  • Turn it on: enable Developer mode (Settings → Developer), load a model, then pick a Draft Model in the Speculative Decoding section of the chat sidebar.
  • Pick a draft from the same family with the same vocabulary, and much smaller: Llama 3.1 8B + Llama 3.2 1B, Qwen 2.5 14B + Qwen 2.5 0.5B.
  • Size rule from LM Studio: max draft 1B for a 7B model, 3B for 14B, 7B for 32B. No speed-up expected for 3B main models.
  • Check it: turn on “visualize accepted draft tokens”. More green = more speed-up.
  • Best for code, facts and structured answers. Worst for creative writing.

New to LM Studio? Start with my LM Studio guide for installing it and downloading a model.

How Speculative Decoding Works

A normal LLM writes one token at a time. Each token needs a full pass through the model, and on a home PC that pass is mostly limited by memory speed, not raw compute. A big model can check several tokens in one pass almost as fast as it can make one.

Speculative decoding uses that. LM Studio’s docs describe it as two models working together:

  1. A small, fast draft model quickly guesses the next few tokens.
  2. The large main model checks all of those guesses in one go.
  3. The main model only accepts tokens that match what it would have written itself. After the last accepted token, it always adds one token of its own.

If the draft guesses well, you get several tokens for the price of one main-model pass. If it guesses badly, the main model throws the guesses away, and you’ve wasted the draft’s time.

The important part: quality doesn’t change. The main model has the final say on every token, so the answer is the same kind of answer it would give anyway. Only the speed changes.

The one hard rule is that the draft model must have the same vocabulary (tokenizer) as the main model. That’s why it has to come from the same model family.

How to Enable It in LM Studio

  1. Turn on Developer mode. Go to Settings → Developer. Developer mode replaced the older “Power User” mode and shows all advanced settings.
  2. Download a small model from the same family as your main model (see the pairing table below).
  3. Load your main model in the Chat tab.
  4. Open the right-hand sidebar and find the Speculative Decoding section. Pick your draft in the Draft Model dropdown.
  5. Start chatting. That’s it.

LM Studio checks compatibility for you. The dropdown only lists draft models that match your main model. If it says there are no compatible draft models, download a smaller version of the same family.

A few details worth knowing, from LM Studio’s 0.3.10 release notes, when the feature arrived:

  • It works with both engines: llama.cpp (GGUF, on Windows, Linux and Mac) and MLX (Apple Silicon, including M1 and M2).
  • Main and draft must use the same engine. Pair a GGUF with a GGUF, or MLX with MLX.
  • LM Studio tries to put the draft model entirely on the GPU if you have one. Your main model’s GPU offload settings stay as you set them.
  • You can set a default draft model per model in My Models. It’s then used automatically whenever that model runs, in chat or through the API.

Which Draft Model to Use

Two rules from LM Studio: same family, and much smaller. These are the example pairs from LM Studio’s docs:

Main model Draft model
Llama 3.1 8B Instruct Llama 3.2 1B Instruct
Qwen 2.5 14B Instruct Qwen 2.5 0.5B Instruct
DeepSeek R1 Distill Qwen 32B DeepSeek R1 Distill Qwen 1.5B

Newer families work the same way, as long as the sizes share a tokenizer. The Qwen3 dense models are a good example: a 14B or 32B main model with the 0.6B or 1.7B as the draft. LM Studio’s dropdown is the final check. If a pair doesn’t show up, it isn’t compatible.

And this is LM Studio’s guide to the largest draft that still gives a speed-up:

Main model size Max draft size
3B None (no speed-up expected)
7B 1B
14B 3B
32B 7B

Smaller is usually better. The bigger the size gap, the bigger the speed-up, as long as the draft still makes decent guesses.

About quantization: the draft can use a low quant (Q4_0 or Q4_K_M) because only its speed matters, and the main model fixes any wrong guesses. Keep your main model at the quant you’d normally use.

About MoE models: mixture-of-experts models like Qwen3 30B-A3B are already fast because only a few billion parameters are active per token. Speculative decoding usually helps them less than dense models of the same size. Test it before you keep it.

How Much Faster? Real Numbers

LM Studio published these results with the 0.3.10 release:

Hardware Main + draft Without With Speed-up
RTX 3090 Ti (llama.cpp) Qwen2.5 32B Q4_K_M + 0.5B Q4_K_M 21.84 tok/s 45.15 tok/s 2.07x
RTX 3090 Ti (llama.cpp) Llama 3.1 8B Q8_0 + 3.2 1B Q4_0 (maths prompt) 50.11 tok/s 68.40 tok/s 1.36x
RTX 3090 Ti (llama.cpp) Same pair (trip-planning prompt) 46.90 tok/s 49.09 tok/s 1.05x
M3 Pro 36 GB (MLX) Qwen2.5 32B 4-bit + 0.5B 4-bit 7.30 tok/s 17.74 tok/s 2.43x
M3 Pro 36 GB (MLX) Llama 3.1 8B 4-bit + 3.2 1B 4-bit 29.65 tok/s 50.91 tok/s 1.71x

Two patterns stand out:

  • Big main model + tiny draft = biggest win. 32B with 0.5B more than doubled speed on both machines.
  • The prompt matters. The same 8B pair gave 1.36x on a maths question and only 1.05x on an open-ended travel plan.

LM Studio sums it up as “up to 1.5x-3x in some cases”. Treat those as best cases, and measure your own.

How to Tell If It’s Helping

1. Turn on “visualize accepted draft tokens” in the chat sidebar. Tokens get coloured by where they came from. In LM Studio’s words: “The more green, the better.” Lots of green means the draft is guessing well.

2. Compare tokens per second. LM Studio shows tok/sec under each reply. Run the same prompt with and without the draft model. Use a prompt like the ones you really use, and run it two or three times each, since the first run includes warm-up.

3. Check acceptance in the API stats (next section). If far fewer than half of draft tokens are accepted, the pair isn’t worth it.

LM Studio warns that “in cases where tokens are rejected more often than not, you will likely see decreased total generation speed”. If speed drops, switch off the draft or try a smaller one.

Use It from the API and Python SDK

Python SDK (lmstudio-python 1.2.0+)

Pass draftModel in the config. You don’t need to load the draft model yourself. This is the example from LM Studio’s docs:

import lmstudio as lms

model = lms.llm("qwen2.5-7b-instruct")
result = model.respond(
    "What are the prime numbers between 0 and 100?",
    config={"draftModel": "qwen2.5-0.5b-instruct"},
)
print(result)
stats = result.stats
print(f"Accepted {stats.accepted_draft_tokens_count}/{stats.predicted_tokens_count} tokens")

The TypeScript SDK takes the same draftModel option. The SDK reference describes it as a way to increase generation speed “up to 3x for larger models”.

REST API

LM Studio’s API changelog (version 0.3.10) adds a draft_model field to chat completion requests:

curl http://localhost:1234/api/v0/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-r1-distill-qwen-7b",
    "draft_model": "deepseek-r1-distill-qwen-0.5b",
    "messages": [{"role": "user", "content": "Explain recursion in one paragraph."}]
  }'

The response’s stats object then includes draft_model, total_draft_tokens_count, accepted_draft_tokens_count, rejected_draft_tokens_count and ignored_draft_tokens_count. The release post says this works with the OpenAI-compatible endpoints too.

LM Studio’s REST API has changed a lot since then, so test the field on your version. The simplest option for apps that only speak the OpenAI API is to set a default draft model for that model in My Models.

Then every request uses speculative decoding without any code changes. More on the server in my LM Studio API guide.

Tips for the Biggest Speed-Up

  • Use it for predictable output: code, JSON, maths, factual answers, summaries and rewrites. These give high acceptance.
  • Skip it for creative writing and role-play. Many next words are valid, so the draft rarely guesses the main model’s exact pick. LM Studio’s docs use a story that begins “The door creaked open…” as the example of a bad case.
  • Keep both models on the GPU. If the main model already spills into system RAM, adding a draft can push more of it out. Check with LM Studio not using GPU.
  • Leave memory for the draft’s context. The draft needs its own KV cache. If loading fails, lower context length a little.
  • Use a matching instruct or chat draft for an instruct main model. A base draft guesses chat-style answers less well.
  • Reasoning models work, as long as the draft is from the same distill family (the DeepSeek R1 Distill pair above).

Want more control? Plain llama.cpp has more speculative options than LM Studio exposes, including draft-free n-gram methods and EAGLE-3 drafts. See my llama.cpp speculative decoding guide. For specially trained drafters, see DSpine for Qwen3.8 27B.

Troubleshooting

Problem Likely cause Fix
No Speculative Decoding section Developer mode off, or old LM Studio Settings → Developer; update LM Studio
“No compatible draft models” No small model with the same vocabulary downloaded Download a smaller model from the same family
Draft not listed Different engine (GGUF vs MLX) or tokenizer Use the same format and family for both
Slower than before Draft too big, low acceptance, or RAM spill Smaller draft; check green tokens; keep both on GPU
Model fails to load with draft Not enough VRAM for both Lower context, smaller quant, or smaller draft. See LM Studio not loading models
Speed varies a lot between prompts Normal: acceptance depends on the prompt Judge on your real prompts, not one test

FAQ

Does speculative decoding reduce quality?

No. The main model only accepts tokens that match what it would generate, so quality stays the same. Only speed changes.

How do I enable speculative decoding in LM Studio?

Turn on Developer mode in Settings → Developer, load a model, and pick a Draft Model in the Speculative Decoding section of the chat sidebar.

Which draft model should I use?

A much smaller model from the same family with the same vocabulary, such as Llama 3.2 1B for Llama 3.1 8B, or Qwen 2.5 0.5B for Qwen 2.5 14B.

How much faster is speculative decoding?

LM Studio measured 1.05x to 2.43x depending on models and prompts. Big main models with tiny drafts gain the most.

Why is LM Studio slower with a draft model?

The draft is too big, it guesses poorly for your prompts, or the two models don’t fit in VRAM together. Try a smaller draft or turn it off for creative tasks.

Does it work on Mac?

Yes. It works with MLX models on Apple Silicon (M1 to M4) and with GGUF models through llama.cpp.

Can I use speculative decoding through the LM Studio API?

Yes. Use draftModel in the Python or TypeScript SDK, or set a default draft model for the model in My Models so every API request uses it.

Sources

Free weekly email

Get new AI guides every week

One short weekly email with our newest local AI, ComfyUI and AI tool guides. No spam, no pop-ups, just the good stuff.

Free. Unsubscribe anytime in one click. We only use your email to send this newsletter. See our privacy policy.

Woman in a living room holding a tablet with an LM STUDIO card, hook 2x faster LM Studio trick