Qwen3.8-27B-opencode-MLX-adapter
faster local coding on Apple Silicon
1 min read
This LoRA adapter (a lightweight add-on for a base model) brings Qwen/Qwen3.8-27B to the mlx-lm format for Apple Silicon chips. Trained with the AsyncGRPO reinforcement learning algorithm, it targets software engineering and terminal workflows inside the OpenCode agent. It skips unnecessary reasoning output to deliver faster, more accurate results. It is a solid fit for developers running local models on a Mac to write and debug code.
Key features
- Built specifically for coding tasks and terminal workflows.
- Trained using AsyncGRPO within the TRL framework.
- Uses the mlx-lm format with rank 32 and scale 2.0 for seamless MLX integration.
- Compact adapter weights at just 638 MB.
What you can do
- Pair the adapter with a base or quantized Qwen3.8-27B model for local code generation.
- Run it as the backend engine for the OpenCode agent on a Mac.
- Spin up a local server with mlx_lm.server to handle API requests.
Example
pip install -U "mlx-lm>=0.32.2"
mlx_lm.generate --model mlx-community/Qwen3.8-27B-4bit --adapter-path netprojects/Qwen3.8-27B-opencode-MLX-adapter \
--chat-template-config '{"enable_thinking": false}' --prompt "Write a bash one-liner that counts lines in all .py files." --max-tokens 300Read more
Details• SWE-bench Pro (hard 51): improved from 35.3% to 51.0%
• Terminal-Bench 2.1: improved from 46.4% to 52.4%
• License: Apache-2.0
• Requirements: compatible mlx-lm build and the base Qwen3.8-27B model










Comments