Aris 3.8-27B (MLX, 8-bit)
Aris 3.8-27B is a coding-agent fine-tune of Arete-27B by Nous Research. Arete-27B is built on Qwen3.8-27B by the Qwen team at Alibaba Cloud, and the 3.8 in our name is Qwen's version number. This repo holds the MLX weights at 8 bits, for Apple Silicon Macs with 48 GB of memory or more. For a 32 GB Mac there's a 4-bit build.
The model learned from its own successful agent runs: write the code, run the tests, fix what fails, then stop. In our tests it keeps Arete's accuracy and second-guesses itself less while it thinks.
What we changed
- Fine-tune. We trained a LoRA by expert iteration:
- Arete-27B worked through Exercism's Python and Rust practice exercises in a real agent loop with a shell. Its thinking was held to about 3,000 tokens a turn.
- The 247 runs that passed their exercise's whole test suite became the training set: 109 in Python and 138 in Rust, 4.8 million tokens in all.
- The LoRA is rank 16 on all 64 layers: the attention, linear attention and MLP projections. That is 108.8M trainable parameters.
- Training ran two epochs (124 steps) at a learning rate of 5e-5, with a linear warmup and cosine decay. It was done in MLX on the 8-bit weights.
- Fused, then quantized. We merged the LoRA into Nous's bf16 weights and quantized them with mlx-lm's own conversion: affine, group size 64, 8.5 bits per weight.
- The fused weights agree with the 8-bit model running the LoRA on 99.5% of next tokens (mean KL 0.0025 over 402 positions).
- They decode about 30% faster.
- Text only. The vision encoder isn't included.
- Template and settings unchanged. The chat template, with Arete's reasoning-effort levels, and the generation settings are Arete's.
Results
Every run went through Aris Server on Apple Silicon, with thinking on.
Reasoning bench. 76 items at effort high: 60 MATH-500 problems across levels 1 to 5, and 16 questions that apply a spec's rules: npm semver ranges and operator precedence.
| Arete-27B, 8-bit | Aris 3.8-27B, 8-bit | |
|---|---|---|
| Correct | 71/76 (93.4%) | 72/76 (94.7%) |
| Self-corrections ("wait", "hmm", "let me reconsider") per 1,000 output tokens | 2.95 | 2.57 |
| Answers that hit the token cap | 0 | 0 |
The accuracy difference is within noise. Aris was measured with the LoRA applied at runtime, which the fused weights match.
Agent tasks. Claude Code drove the model through four tasks. Each one builds a small library from a spec, and hidden tests the model never saw grade the result. Each task was run once.
| Task | Language | Arete-27B | Aris 3.8-27B |
|---|---|---|---|
| JSON Pointer and JSON Patch (RFC 6901, RFC 6902) | TypeScript | 34/35 ¹ | 35/35 |
| npm semver range matching | Rust | 50/52 | 50/52 |
| Expression evaluator | Rust | 45/45 | 45/45 |
.gitignore matching | Python | 64/64 ² | 64/64 |
Aris finished all four tasks without help.
¹ Arete got a hint mid-run. ² The server ran out of memory mid-run, and the run was resumed by hand.
All the Arete runs used an earlier server build, so the difference in how the runs went isn't the fine-tune's alone.
Long context. We built a synthetic codebase of made-up code and asked 18 questions at each size. The questions find a value at different depths, follow a value through three files, or compute from one. The context was sent in the conversation, the way coding agents send it.
| Context | Correct |
|---|---|
| 50k tokens | 18/18 |
| 100k tokens | 17/18 |
With the same 50k context in the system prompt instead, it scored 16/18. We didn't run Arete on this test.
Memory and speed
- The weights take 27 GB, so the model needs a Mac with 48 GB of memory or more.
- On an M4 Pro with 48 GB, Aris Server with an 8-bit KV cache fits about 125k tokens of context. There the model decodes about 8 tokens a second and reads prompts at 80 to 105 tokens a second.
Use it
Install Aris Server. It serves the model to Claude Code or any other client of the Anthropic Messages API, and it knows this model by name: pull picks the build this Mac holds before downloading anything.
uv tool install aris-server
aris-server pull aris-3.8-27b
aris-server serve --model aris-3.8-27b
ANTHROPIC_BASE_URL=http://127.0.0.1:8484 ANTHROPIC_AUTH_TOKEN=local claude --model aris-3.8-27b
The built-in settings are the ones our runs used: the 8-bit KV cache, Claude Code's effort mapped to Arete's trained effort levels, and a think budget for each effort.
Claude Code assumes a 200k-token window. To have it compact the conversation before the server's limit, set CLAUDE_CODE_MAX_CONTEXT_TOKENS to the context the server reports; its /v1/models endpoint lists it.
You can also use mlx-lm directly:
pip install mlx-lm
mlx_lm.generate --model YourAris/Aris-3.8-27B-MLX-8bit --prompt "Write a Python function that parses ISO 8601 durations."
Limitations
- Languages. The training tasks were all Python and Rust. In other languages, expect Arete's behavior.
- Small comparisons. The bench has 76 items, and each of the four agent tasks was run once.
- Long thinking. Thinking can still run long on hard problems. A think budget, like the one above, keeps it in check.
- Inherited behavior. It inherits Arete-27B's value-alignment training and Qwen3.8-27B's knowledge cutoff.
License and credit
Apache-2.0, the same license as Arete-27B and Qwen3.8-27B. A copy is in LICENSE.
This model is built on Qwen3.8-27B by the Qwen team at Alibaba Cloud and on Arete-27B by Nous Research. Thank you both. The training tasks came from Exercism's Python and Rust tracks (MIT). Aris isn't affiliated with or endorsed by Alibaba Cloud, Nous Research or Exercism.
Made by Aris.