Qwen3.8-27B-pi-MLX-adapter
Coding LoRA for Apple Silicon
2 min read
This adapter (LoRA — a lightweight add-on built on top of a base model) ports the capabilities of the pi coding agent to the MLX architecture for running on Mac computers. Trained with AsyncGRPO, it handles terminal tasks and code generation efficiently. It lets you run a capable language model locally on MLX-supported hardware while saving memory by attaching the adapter to the base weights. The tool is aimed at developers and users who want offline, local coding workflows.
Key features
- MLX optimization: Built specifically for the MLX framework on Apple Silicon devices.
- Stronger coding performance: Delivers higher accuracy on terminal commands and programming tasks compared to the base model.
- Token efficiency: Reduces the number of tool calls needed per task.
- Flexible integration: Works on top of various quantized versions of the base model.
What you can do
- Terminal automation: Generate complex bash scripts and system management commands.
- Software development: Use the model as a local assistant for writing and debugging code.
- Server deployment: Spin up a local API server for coding agents via mlx_lm.server.
Example
from huggingface_hub import snapshot_download
from mlx_lm import load, generate
adapter = snapshot_download("netprojects/Qwen3.8-27B-pi-MLX-adapter")
model, tokenizer = load("mlx-community/Qwen3.8-27B-4bit", adapter_path=adapter)
prompt = tokenizer.apply_chat_template([{"role": "user", "content": "Hello"}], add_generation_prompt=True,
enable_thinking=False, tokenize=False)
print(generate(model, tokenizer, prompt=prompt, max_tokens=200))Read more
Details• Benchmark results: Terminal-Bench 2.1 increased from 39.5% to 55.8%, SWE-bench Pro from 29.4% to 62.7%
• Adapter size: 638 MB in native float32 format
• Requirements: Requires mlx-lm version 0.32.2 or higher
• License: Apache-2.0










Comments