Instructions to use johninthepool/Qwen3.8-27B-MTPLX-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use johninthepool/Qwen3.8-27B-MTPLX-bf16 with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("johninthepool/Qwen3.8-27B-MTPLX-bf16") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use johninthepool/Qwen3.8-27B-MTPLX-bf16 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "johninthepool/Qwen3.8-27B-MTPLX-bf16"
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": "johninthepool/Qwen3.8-27B-MTPLX-bf16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use johninthepool/Qwen3.8-27B-MTPLX-bf16 with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "johninthepool/Qwen3.8-27B-MTPLX-bf16"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "johninthepool/Qwen3.8-27B-MTPLX-bf16" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- MLX LM
How to use johninthepool/Qwen3.8-27B-MTPLX-bf16 with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "johninthepool/Qwen3.8-27B-MTPLX-bf16"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "johninthepool/Qwen3.8-27B-MTPLX-bf16" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "johninthepool/Qwen3.8-27B-MTPLX-bf16", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use johninthepool/Qwen3.8-27B-MTPLX-bf16 with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "johninthepool/Qwen3.8-27B-MTPLX-bf16"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default johninthepool/Qwen3.8-27B-MTPLX-bf16
Run Hermes
hermes
- Atomic Chat
Qwen3.8-27B-MTPLX-bf16
MTP weights kept. This is a full-precision MLX build — no quantization at all. The multi-token-prediction head is preserved at bf16 (
mtp_policy: keep_bf16), same as the body.
A full-precision, unquantized MLX build of Qwen/Qwen3.8-27B for Apple Silicon, produced with mtplx forge. This is not a repackaging of the original PyTorch/safetensors bf16 release — it's converted into native MLX format for direct loading on Apple Silicon, with the MTP head intact so speculative decoding works out of the box.
Why this build exists
The original Qwen/Qwen3.8-27B weights are safetensors in HF/PyTorch format. Loading those directly through generic MLX conversion paths risks losing the model's 15 MTP tensors (see the 4-bit/8-bit sibling cards for the full explanation of why). This build applies the same mtp_policy: keep_bf16 forge recipe as the quantized variants, but with body_bits: 0 — meaning the trunk is not quantized at all. It exists for anyone who wants zero quantization-related quality loss and has the memory to spare.
Recipe
| Parameter | Value |
|---|---|
| Body precision | bf16 (unquantized) |
| MTP head | kept at bf16 |
| Source | Qwen/Qwen3.8-27B (bf16 native) |
Requirements
- Apple Silicon Mac (M-series) with 64GB+ unified memory recommended — full bf16 weights are ~55GB on disk/in memory before KV cache.
- mtplx — required to use the native MTP speculative-decode path.
Usage
mtplx quickstart --model johninthepool/Qwen3.8-27B-MTPLX-bf16 --port 8020 \
--reasoning off --paged-kv-quantization q8
Which variant should you use?
- This one (bf16): maximum fidelity, largest footprint. Use if you have the RAM and want zero quantization loss.
- 8-bit: near-lossless, roughly half the footprint. Best default for most 64GB+ machines.
- 4-bit: smallest footprint, best throughput, small quality tradeoff.
Provenance
Converted directly from Qwen/Qwen3.8-27B to MLX format with no fine-tuning, distillation, or precision changes beyond format conversion. Output is expected to be numerically equivalent to the source model.
- Downloads last month
- 450
Quantized
Model tree for johninthepool/Qwen3.8-27B-MTPLX-bf16
Base model
Qwen/Qwen3.8-27B