Instructions to use deresolution/Qwen3.8-27B-mxfp4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use deresolution/Qwen3.8-27B-mxfp4 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("deresolution/Qwen3.8-27B-mxfp4") 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 deresolution/Qwen3.8-27B-mxfp4 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "deresolution/Qwen3.8-27B-mxfp4"
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": "deresolution/Qwen3.8-27B-mxfp4" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use deresolution/Qwen3.8-27B-mxfp4 with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "deresolution/Qwen3.8-27B-mxfp4"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "deresolution/Qwen3.8-27B-mxfp4" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deresolution/Qwen3.8-27B-mxfp4", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use deresolution/Qwen3.8-27B-mxfp4 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 "deresolution/Qwen3.8-27B-mxfp4"
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 deresolution/Qwen3.8-27B-mxfp4
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use deresolution/Qwen3.8-27B-mxfp4 with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "deresolution/Qwen3.8-27B-mxfp4"
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 "deresolution/Qwen3.8-27B-mxfp4" \ --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 MXFP4 MLX
An unofficial MLX MXFP4 conversion of Qwen/Qwen3.8-27B, produced for Apple Silicon inference. This repository is a quantized conversion, not a fine-tune, merge, or retraining of the original model. It is not affiliated with or endorsed by Qwen.
Quantization
| Setting | Value |
|---|---|
| Source | Qwen/Qwen3.8-27B BF16 checkpoint |
| Original architecture parameter count | 27B |
| Conversion tool | mlx-lm 0.31.3 |
| Weight format | MXFP4 |
| Nominal bits | 4 |
| Group size | 32 |
| Non-quantized dtype | BF16 |
| Resulting disk size | approximately 14 GB |
The conversion command was:
mlx_lm.convert \
--hf-path Qwen/Qwen3.8-27B \
--quantize \
--q-bits 4 \
--q-mode mxfp4 \
--q-group-size 32 \
--dtype bfloat16 \
--mlx-path Qwen3.8-27B-mxfp4
Parameter-count note
This remains the full 27B-parameter Qwen 3.8 architecture. Quantization changes how the values are stored; it does not remove transformer layers or turn the model into a 5B architecture.
The Hugging Face “Model size 5B params” badge is generated automatically from the shapes of the packed MLX 4-bit safetensors. A packed 4-bit tensor holds multiple original weight values in each stored element, so that generic counter under-reports MLX quantized models. It is a Hub display limitation and cannot be overridden from model-card metadata. The 13.4 GB MLX file-size badge is the relevant storage figure for this conversion; the original parameter count is 27B.
Usage
Load this repository with a current MLX-compatible runtime such as
MLX-LM or
oMLX. Qwen 3.8 requires a recent MLX-LM
release that supports the qwen3_5 architecture.
This target can run on its own. For the long-context DFlash2 profile described below, it is paired with a separately published, matched DFlash2 draft model. The draft is an optional speculative-decoding helper; it is not the chat model.
DFlash2 companion (optional)
For oMLX speculative decoding, pair this target with the separately published
deresolution/Qwen3.8-27B-DFlash2-mxfp4
draft sidecar. It is an MLX MXFP4 conversion of the upstream
incoai/Qwen3.8-27B-DFlash2.
Configure the sidecar as this target's DFlash draft model. Do not enable
Lightning MTP and DFlash simultaneously.
Long-context configuration notes
On a 32 GB Apple Silicon Mac, this target was tested in oMLX with a 49,152-token server window, TurboQuant KV cache at 3.5 bits, and a pre-quantized DFlash2 helper. That is a machine-specific configuration, not a claim that the model will fit that context on every Mac. See the full build guide for the commands, memory tradeoffs, and staged verification procedure.
License and attribution
This derivative conversion retains the upstream Apache License 2.0. See the source model's model card for its intended use, limitations, and upstream documentation.
- Downloads last month
- -
4-bit
Model tree for deresolution/Qwen3.8-27B-mxfp4
Base model
Qwen/Qwen3.8-27B