Skip to content

SpeculativeDecodingNotSupportedError: Speculative decoding is not supported for batched MLX models. #269

Description

@Clete2

I am running MLX qwen/qwen3-4b and want to use speculative decoding with Qwen2.5 0.5B Instruct, or Qwen3 1.7B, which LM Studio claims are both compatible. However when trying to load either one as the Draft Model in the UI, I get the following error:

2026-02-06 22:24:20 [DEBUG]
 [batched_model_kit][INFO]: Loading model from /Users/clete2/.lmstudio/models/lmstudio-community/Qwen3-4B-MLX-8bit...
2026-02-06 22:24:21 [DEBUG]
 [batched_model_kit][INFO]: BatchedModelKit loaded successfully
2026-02-06 22:24:22 [DEBUG]
 SpeculativeDecodingNotSupportedError: Speculative decoding is not supported for batched MLX models.

At:
  /Users/clete2/.lmstudio/extensions/backends/vendor/_amphibian/app-mlx-generate-mac14-arm64@15/lib/python3.11/site-packages/mlx_engine/generate.py(253): load_draft_model
2026-02-06 22:24:22 [DEBUG]
 lmstudio-llama-cpp: failed to load model. Error: SpeculativeDecodingNotSupportedError: Speculative decoding is not supported for batched MLX models.
Image

Even if I set batch size to 1, or try to make a single call into it, I will still get an error about Speculative decoding not being supported for batched MLX models.

Is it possible to load the model in non-batched mode?

Image

LM Studio 0.4.2 (Build 2)

MacBook Pro M4 Pro 48GB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions