Instructions to use leonsarmiento/Arete-27B-4bit-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use leonsarmiento/Arete-27B-4bit-mlx 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("leonsarmiento/Arete-27B-4bit-mlx") config = load_config("leonsarmiento/Arete-27B-4bit-mlx") # 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 leonsarmiento/Arete-27B-4bit-mlx with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "leonsarmiento/Arete-27B-4bit-mlx"
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": "leonsarmiento/Arete-27B-4bit-mlx" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use leonsarmiento/Arete-27B-4bit-mlx 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 "leonsarmiento/Arete-27B-4bit-mlx"
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 leonsarmiento/Arete-27B-4bit-mlx
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use leonsarmiento/Arete-27B-4bit-mlx with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "leonsarmiento/Arete-27B-4bit-mlx"
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 "leonsarmiento/Arete-27B-4bit-mlx" \ --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"
leonsarmiento/Arete-27B-4bit-mlx
Uniform 4-bit MLX quantization of NousResearch/Arete-27B โ plain vanilla, no bundled MTP. Vision tower preserved (multimodal via mlx-vlm). Works in LM Studio and oMLX.
About Arete-27B
Nous Research post-trained Qwen/Qwen3.8-27B to reinforce western values on a Chinese-trained model. Pure supervised fine-tuning โ no RL, no preference optimization, no architectural modification: ~20K prompts / 52.8M tokens across seven value categories (freedom of expression, state ideology, state vs. free market, education, data privacy & surveillance, democracy, environmental policy), distilled from the open teacher Inkling, trained at 64k context over 2 epochs.
Measured on the Propaganda Eval (803 prompts, 7 categories): fact mean 2.32 โ 2.98 (out of 5) and answers containing propaganda 22% โ 0.9%, with the largest change in freedom of expression (fact score 0.89 โ 2.44, propaganda 60% โ 1%). General capability held: Hermes Bench 65.77% โ 65.60% (within noise), Terminal-Bench-2.1 67% โ 70%.
Training details worth knowing for quantization: all language-model weights were trained, the vision encoder was frozen (text-only data), and the MTP head was disabled during training โ and the source repo ships no mtp.* tensors at all, so this quant carries no bundled MTP heads (nothing to graft). text_config.mtp_num_hidden_layers stays 0. For MTP-accelerated Qwen3.8-27B siblings, see leonsarmiento/Qwen3.8-27B-heretic-ara-4bit-mtp-mlx.
For the data-aware alternative of the same model, see leonsarmiento/Arete-27B-oQ4e (imatrix-guided 4/5/6/8-bit mix, +1.6 GB).
Quantization Details
- All quantized layers (attention, linear attention, MLP, embeddings, lm_head, vision tower): uniform 4-bit affine, group_size=64
- Norms: bf16
- Vision tower: preserved at 4-bit (multimodal via mlx-vlm)
- Chat template: byte-identical to source,
reasoning_effortdefaulting toxhigh - MTP: none (source ships none โ see About)
Stats: 15.62 GB ยท 3 shards ยท ~4.56 bpw ยท mlx-vlm ยท vision preserved ยท all shards carry format: mlx metadata.
Verification
- Offline (23/23 PASS): shard metadata + index consistency, zero
mtp.*keys, norms bf16, global 4-bit g64 affine config, chat template present in bothchat_template.jinjaandtokenizer_config.json. Dequant spot-checks against the source BF16 across embed / linear-attn / full-attn / early+late MLP / vision: rel-L1 0.097โ0.104 (text) and 0.166 (vision), correlation โฅ 0.992 โ the expected envelope for 4-bit g64 affine on this architecture. - Runtime (oMLX): loads and generates coherently โ math (15ร37=555), fact recall (Canberra), clean
<think>reasoning with proper turn closure.
Usage
Reasoning parsing / tool calling: reasoning_parser: qwen3, tool_call_parser: qwen3_xml.
Sampling โ thinking mode (Qwen3.8 family defaults): temperature 1.0, top_p 0.95, top_k 20.
Sampling โ non-thinking mode (Qwen recommended): temperature 0.7, top_p 0.8, presence_penalty 1.5, with enable_thinking: false.
Reasoning effort: the chat template accepts reasoning_effort โ {low, medium, high, xhigh} (default xhigh).
(The source repo documents no sampling recommendations; the above are the Qwen3.8-27B family defaults this fine-tune inherits.)
Source
NousResearch/Arete-27B โ built on Qwen/Qwen3.8-27B: dense hybrid-attention VLM, 64 layers (48 linear attention + 16 full attention), 262K context, vision tower. Blog post ยท Evaluation dataset.
Acknowledgements
Thanks to Nous Research for Arete-27B and the open Propaganda Eval.
- Downloads last month
- 20
4-bit