Instructions to use donedynamics/Qwen3.8-27B-heretic-MLX-6bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use donedynamics/Qwen3.8-27B-heretic-MLX-6bit 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("donedynamics/Qwen3.8-27B-heretic-MLX-6bit") 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 donedynamics/Qwen3.8-27B-heretic-MLX-6bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "donedynamics/Qwen3.8-27B-heretic-MLX-6bit"
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": "donedynamics/Qwen3.8-27B-heretic-MLX-6bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use donedynamics/Qwen3.8-27B-heretic-MLX-6bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "donedynamics/Qwen3.8-27B-heretic-MLX-6bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "donedynamics/Qwen3.8-27B-heretic-MLX-6bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "donedynamics/Qwen3.8-27B-heretic-MLX-6bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use donedynamics/Qwen3.8-27B-heretic-MLX-6bit 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 "donedynamics/Qwen3.8-27B-heretic-MLX-6bit"
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 donedynamics/Qwen3.8-27B-heretic-MLX-6bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use donedynamics/Qwen3.8-27B-heretic-MLX-6bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "donedynamics/Qwen3.8-27B-heretic-MLX-6bit"
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 "donedynamics/Qwen3.8-27B-heretic-MLX-6bit" \ --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-heretic-MLX-6bit
6-bit quantized MLX conversion of trohrbaugh/Qwen3.8-27B-heretic-ara, for Apple Silicon.
What this is
The base model is an abliterated ("heretic") derivative of Qwen/Qwen3.8-27B: its refusal behaviour has been surgically removed, so it will answer prompts a safety-tuned model would decline. This repo only changes the format and precision — it adds no alignment, and removes none either. Evaluate it before putting it in front of users, and apply your own filtering where your use case needs it.
Lineage: Qwen/Qwen3.8-27B → trohrbaugh/Qwen3.8-27B-heretic-ara → this MLX build.
Text-only
The base model is multimodal (image-text-to-text). This conversion is text-only.
mlx-lm converts the language tower only: the config carries no vision_config, and no
tensor belongs to the vision tower. Image and video input will not work.
Quantization
Affine quantization, group size 64, 6.501 effective bits per weight.
The full set
All four builds were converted from the same source revision and measured the same way.
| Build | Size | Bits/weight | Generation | Peak memory |
|---|---|---|---|---|
| 4-bit | 15.1 GB | 4.501 | 37.9 tok/s | 15.5 GB |
| 6-bit | 21.9 GB | 6.501 | 27.9 tok/s | 22.2 GB |
| 8-bit | 28.6 GB | 8.501 | 22.2 tok/s | 28.9 GB |
| bf16 | 50.0 GB | 16 | 12.7 tok/s | 54.1 GB |
Measured on a Mac Studio M3 Ultra (512 GB unified memory), macOS 26.5.2, mlx-lm 0.31.3,
68-token prompt, 120 generated tokens. Single run, one machine, one prompt — an
order-of-magnitude guide, not a benchmark.
This repo is the 6-bit build: 21.9 GB, 5 shards, 27.9 tok/s, 22.2 GB peak memory.
Usage
pip install mlx-lm
mlx_lm.generate --model donedynamics/Qwen3.8-27B-heretic-MLX-6bit \\
--prompt "Introduce yourself briefly." --max-tokens 256
from mlx_lm import load, generate
model, tokenizer = load("donedynamics/Qwen3.8-27B-heretic-MLX-6bit")
messages = [{"role": "user", "content": "Introduce yourself briefly."}]
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
print(generate(model, tokenizer, prompt=prompt, max_tokens=256))
Reasoning mode
The chat template supports enable_thinking and reasoning_effort. Thinking is on by
default and consumes tokens before the answer begins, so a small max_tokens budget may
return reasoning only. Pass enable_thinking=False to apply_chat_template for direct
answers.
Conversion
mlx_lm.convert --hf-path trohrbaugh/Qwen3.8-27B-heretic-ara -q --q-bits 6 \\
--mlx-path Qwen3.8-27B-heretic-MLX-6bit
Converted with mlx-lm 0.31.3 from the bf16 weights at revision
a67ae100d933c0d17af3232bda35825979fc63ce. Before conversion the source was verified:
7 shards, 1199 tensors, all safetensors headers parsed, no missing files.
License and attribution
Apache-2.0, inherited through the lineage above. Credit for the model goes to the Qwen
team at Alibaba Group's Tongyi Lab, and for the abliteration to trohrbaugh. This repo
contributes only the MLX conversion.
- Downloads last month
- -
6-bit
Model tree for donedynamics/Qwen3.8-27B-heretic-MLX-6bit
Base model
trohrbaugh/Qwen3.8-27B-heretic-ara