Instructions to use netprojects/Qwen3.8-27B-opencode-adapted-MLX-adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use netprojects/Qwen3.8-27B-opencode-adapted-MLX-adapter with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("netprojects/Qwen3.8-27B-opencode-adapted-MLX-adapter") config = load_config("netprojects/Qwen3.8-27B-opencode-adapted-MLX-adapter") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use netprojects/Qwen3.8-27B-opencode-adapted-MLX-adapter with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/Qwen3.8-27B-opencode-adapted-MLX-adapter"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "netprojects/Qwen3.8-27B-opencode-adapted-MLX-adapter" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use netprojects/Qwen3.8-27B-opencode-adapted-MLX-adapter 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 "netprojects/Qwen3.8-27B-opencode-adapted-MLX-adapter"
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 netprojects/Qwen3.8-27B-opencode-adapted-MLX-adapter
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use netprojects/Qwen3.8-27B-opencode-adapted-MLX-adapter with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/Qwen3.8-27B-opencode-adapted-MLX-adapter"
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 "netprojects/Qwen3.8-27B-opencode-adapted-MLX-adapter" \ --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"
Qwen3.8-27B-opencode-adapted adapter for mlx-lm
The LoRA from harness-hub/Qwen3.8-27B-opencode-adapted
(revision b4171c0) in mlx-lm's adapter format: rank 32, scale 2.0 (alpha 64), on q, k, v, o of the 16 full-attention
layers and gate, up, down of all 64 layers. The weights are the original float32 values, transposed to mlx-lm's layout. Size: 638 MB.
harness-hub trained this LoRA with reinforcement learning (AsyncGRPO in TRL) to be the model behind the OpenCode coding agent on software-engineering and terminal tasks. Their published results, under OpenCode with thinking off: SWE-bench Pro (hard 51) 35.3% โ 51.0% and Terminal-Bench 2.1 46.4% โ 52.4% against the base model, and with thinking off it matches the base model thinking at its highest effort while generating about a sixth of the tokens. See the original adapter card for the method, data and full results.
Use it on top of any MLX build of Qwen/Qwen3.8-27B to keep one base model and switch the adapter on and off. For a single ready-to-run model, the merged builds are simpler and slightly faster:
| Build | Size | Same next token as bf16 | KL vs bf16 |
|---|---|---|---|
| netprojects/Qwen3.8-27B-opencode-adapted-MLX-6bit (recommended) | 23.1 GB | 98.7% | 0.0014 |
| netprojects/Qwen3.8-27B-opencode-adapted-MLX-8bit | 30.0 GB | 99.2% | 0.0004 |
| netprojects/Qwen3.8-27B-opencode-adapted-MLX-4bit | 16.3 GB | 96.7% | 0.0203 |
| netprojects/Qwen3.8-27B-opencode-adapted-MLX-bf16 | 55.6 GB | reference | reference |
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-adapted-MLX-adapter \
--chat-template-config '{"enable_thinking": false}' --prompt "Write a bash one-liner that counts lines in all .py files." --max-tokens 300
from huggingface_hub import snapshot_download
from mlx_lm import load, generate
adapter = snapshot_download("netprojects/Qwen3.8-27B-opencode-adapted-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))
mlx_lm.server --model mlx-community/Qwen3.8-27B-4bit --adapter-path <local adapter dir> serves it for OpenCode (see the
6-bit card for the OpenCode configuration; keep thinking off).
What was checked
On a MacBook Pro M5 Max (128 GB), 18 November 2026, mlx 0.32.4 / mlx-lm 0.32.2.
- Loaded in mlx-lm on
mlx-community/Qwen3.8-27B-4bit, it creates exactly 256 LoRA modules with scale 2.0, and each module's update equals2.0 ยท B @ Afrom harness-hub's original file exactly. - With the included chat template and thinking off, base 4-bit + adapter produced a well-formed tool call and passed 3/3 short coding tasks.
License
Apache-2.0, as Qwen3.8-27B and the harness-hub adapter. LICENSE is the Apache-2.0 text from the Qwen3.8-27B repository
and NOTICE describes the conversion and credits harness-hub and the Qwen Team (Alibaba Cloud).
Published by NetProjects (Internet Projects Ltd). Not affiliated with Hugging Face, harness-hub or Alibaba.
More MLX builds from NetProjects: huggingface.co/netprojects ยท netprojects.com
Quantized
Model tree for netprojects/Qwen3.8-27B-opencode-adapted-MLX-adapter
Base model
Qwen/Qwen3.8-27B