Instructions to use underlotus/Qwen3.8-27B-heretic-ara-oQ4e-mtp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use underlotus/Qwen3.8-27B-heretic-ara-oQ4e-mtp 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("underlotus/Qwen3.8-27B-heretic-ara-oQ4e-mtp") config = load_config("underlotus/Qwen3.8-27B-heretic-ara-oQ4e-mtp") # 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 underlotus/Qwen3.8-27B-heretic-ara-oQ4e-mtp with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "underlotus/Qwen3.8-27B-heretic-ara-oQ4e-mtp"
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": "underlotus/Qwen3.8-27B-heretic-ara-oQ4e-mtp" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use underlotus/Qwen3.8-27B-heretic-ara-oQ4e-mtp 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 "underlotus/Qwen3.8-27B-heretic-ara-oQ4e-mtp"
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 underlotus/Qwen3.8-27B-heretic-ara-oQ4e-mtp
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use underlotus/Qwen3.8-27B-heretic-ara-oQ4e-mtp with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "underlotus/Qwen3.8-27B-heretic-ara-oQ4e-mtp"
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 "underlotus/Qwen3.8-27B-heretic-ara-oQ4e-mtp" \ --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-ara — oQ4e (MTP preserved)
Mixed-precision quant of trohrbaugh/Qwen3.8-27B-heretic-ara, produced with oQ (oMLX v0.5.8.dev1). Vision tower intact — image + video input still works. MTP head preserved. Standard MLX safetensors — compatible with oMLX, mlx-lm, LM Studio, and any MLX-capable app.
What is oQ?
Unlike uniform 4-bit quantization, oQ is a data-driven mixed-precision quantizer that calibrates per-layer sensitivity and allocates bits where they matter most. Critical layers (embeddings, LM head, the most sensitive transformer layers) are automatically promoted to higher precision, while less sensitive layers stay at 4-bit. Typical result: ~4.6 bits-per-weight.
Benchmarked on Qwen3.5-35B-A3B (oMLX project):
| Benchmark | mlx-lm 4-bit | oQ4 |
|---|---|---|
| MMLU (300) | 79.7% | 83.3% |
| TruthfulQA (300) | 87.7% | 88.0% |
| HumanEval (full) | 87.2% | 85.4% |
| MBPP (300) | 71.7% | 74.3% |
Performance (oMLX on M4 10-core)
| Context | PP tok/s | TG tok/s | Peak Mem |
|---|---|---|---|
| 1k | 62.4 | 12.7 | 16.7 GB |
| 4k | 60.2 | 12.1 | 18.2 GB |
| Batch | TG tok/s | Speedup |
|---|---|---|
| 1× | 12.7 | 1.00× |
| 2× | 12.0 | 0.94× |
| 4× | 19.3 | 1.52× |
Why this quant
The original BF16 weights require ~55 GB. This oQ4e quant runs in ~16–18 GB on Apple Silicon while keeping the vision tower and MTP head intact.
Quick start
# oMLX
omlx serve --model underlotus/Qwen3.8-27B-heretic-ara-oQ4e-mtp
# mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("underlotus/Qwen3.8-27B-heretic-ara-oQ4e-mtp")
response = generate(model, tokenizer, prompt="Hello!", max_tokens=256)
print(response)
Original model
- Base: Qwen/Qwen3.8-27B
- Decensored: Heretic v1.2.0 (custom fork) with Arbitrary-Rank Ablation (ARA) — 0/100 refusals, KL divergence 0.0535
- Vision: Full multimodal — image + video input supported
- MTP: Multi-token prediction head preserved
License
Apache 2.0, inherited from base model.
- Downloads last month
- 3,833
4-bit
Model tree for underlotus/Qwen3.8-27B-heretic-ara-oQ4e-mtp
Base model
trohrbaugh/Qwen3.8-27B-heretic-ara