How to use from
Pi
Start the MLX server
# Install MLX LM:
uv tool install mlx-lm
# Start a local OpenAI-compatible server:
mlx_lm.server --model "rapid-mlx/Qwen3.8-27B-4bit-MTP-MLX"
Configure the model in Pi
# Install Pi:
npm install -g @mariozechner/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
  "providers": {
    "mlx-lm": {
      "baseUrl": "http://localhost:8080/v1",
      "api": "openai-completions",
      "apiKey": "none",
      "models": [
        {
          "id": "rapid-mlx/Qwen3.8-27B-4bit-MTP-MLX"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

Qwen3.8-27B 4-bit MLX + MTP

An official Rapid-MLX, self-contained MLX package of Qwen3.8-27B. It includes both the 4-bit target weights and the matching native Multi-Token Prediction (MTP) drafter in model-mtp.safetensors.

Users download one repository; the target and acceleration weights stay paired. The MTP weights were derived from the same upstream Qwen checkpoint as the target. Upstream model license and limitations continue to apply.

Rapid-MLX

Use a Rapid-MLX release that supports Qwen3.8 native MTP. Rapid can load the target and use the colocated model-mtp.safetensors as its MTP sidecar. MTP is speculative decoding: accepted output remains identical to greedy autoregressive decoding. Runtime should fall back to autoregressive decoding when MTP is unavailable or is not beneficial on the current Mac.

rapidmlx serve rapid-mlx/Qwen3.8-27B-4bit-MTP-MLX \
  --speculative-config '{"method":"mtp","model":"rapid-mlx/Qwen3.8-27B-4bit-MTP-MLX"}'

Validation

On an Apple-silicon Studio test system, a paired greedy smoke test produced the same emitted-token hash with and without MTP. One measured prompt ran at 39.66 tok/s autoregressive and 46.73 tok/s with Rapid MTP (1.18x). Performance varies by prompt and hardware; this is a compatibility result, not a universal speed claim.

Contents

  • model-*.safetensors: Qwen3.8-27B MLX 4-bit target weights
  • model-mtp.safetensors: matching MLX 4-bit native MTP drafter
  • tokenizer, processor, generation, and model configuration files

The target is based on mlx-community/Qwen3.8-27B-4bit; the MTP drafter is based on mlx-community/Qwen3.8-27B-MTP-4bit. Both originate from Qwen/Qwen3.8-27B.

Downloads last month
502
Safetensors
Model size
5B params
Tensor type
BF16
·
U32
·
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for rapid-mlx/Qwen3.8-27B-4bit-MTP-MLX

Base model

Qwen/Qwen3.8-27B
Quantized
(810)
this model