Skip to content

Qwen3.6-27B: no working mlx-lm version exists — qwen3_5 unsupported on 0.30.0, Stream(gpu,3) crash on 0.31.3MLX-LM Mismatch #166

Description

@ltrudeau-design

Rapid-MLX version

0.6.1

Hardware

MacBook Pro M1, 64GB unified memory

macOS version

Sequoia 15.0

Python version

3.14

Model

Qwen3.6-27B 4-bit (local path: ~/.cluster/MLX_Models/qwen36-27b-local)

Full serve command

rapid-mlx serve ~/.cluster/MLX_Models/qwen36-27b-local --host 127.0.0.1 --port 8081 --max-tokens 2048 --prefill-step-size 2048 --no-thinking

What happened?

Package requires mlx-lm>=0.31.0 but no version in that range works with Qwen3.6-27B:

mlx-lm 0.30.0 → ValueError: Model type qwen3_5 not supported
mlx-lm 0.31.3 → RuntimeError: There is no Stream(gpu, 3) in current thread — server starts, accepts requests, but returns 1 token in 21s at 0.0 tok/s

The 0.31+ crash appears to be caused by the removal of the internal Batch API in mlx-lm 0.31+. The log shows: [chunked_prefill] Skipped — mlx-lm 0.31+ removed the internal Batch API.
Qwen3.6 was advertised as Day 0 supported in the v0.6.1 release notes.

Steps to reproduce

Create a fresh venv: python3 -m venv ~/.mlx-venv
Activate: source ~/.mlx-venv/bin/activate
Install: pip install rapid-mlx (resolves mlx-lm 0.31.3)
Serve any Qwen3.6-27B 4-bit model: rapid-mlx serve --port 8081
Send any chat completion request to http://127.0.0.1:8081/v1/chat/completions
Observe: server accepts request, runs for ~21s, returns 1 token at 0.0 tok/s, logs RuntimeError: There is no Stream(gpu, 3) in current thread

To confirm the version conflict:

Downgrade: pip install "mlx-lm==0.30.0"
Restart server — now fails at startup with ValueError: Model type qwen3_5 not supported

No mlx-lm version satisfies both the model architecture requirement and the batched engine.

Error logs / output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions