Instructions to use erenextlabs/pusula-mlx-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use erenextlabs/pusula-mlx-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download erenextlabs/pusula-mlx-4bit --local-dir pusula-mlx-4bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Pusula MLX 4-bit
Pusula for Apple silicon. This repository contains Decision 3.0 (vllm-sr/d3)
quantized to 4 bits with MLX, together with the unmodified
Pusula v2.0 adapter. Pusula runs on an Apple silicon Mac with the
pusula package, without a GPU server. For each message, typed questions are answered with a
probability for every option in a single forward pass, without text generation.
The smallest version. For Pusula, micro and macro accuracy are within 0.02 points of GPU BF16. Base Decision 3.0 (adapter off) loses about 0.5 points at 4-bit, mostly on duygu and eylem_gerekli, and Pusula insana_devret differs from the 6-bit, 8-bit and GPU BF16 results (84.78 vs 83.77 at 8-bit, exact McNemar p 0.0005). For most uses, the 6-bit version is recommended. Per-question agreement with GPU BF16 has not been measured yet.
Doฤru karar, doฤru yรถn.
| Version | Pusula v2.0 adapter (erenextlabs/pusula, revision db9b467) on MLX 4-bit Decision 3.0 |
| Base model | vllm-sr/d3 (26B, Apache-2.0), text backbone quantized to 4 bits (MLX affine, group size 64) |
| This repository | MLX 4-bit Decision 3.0 (14.4 GB) + Pusula LoRA adapter (rank 32) and code readout in adapter/ (0.9 GB) |
| Other versions | pusula-mlx-4bit (this repository): 14.4 GB weights; pusula-mlx-6bit, recommended: 20.9 GB weights; pusula-mlx-8bit: 27.3 GB weights |
| Language | Turkish |
| Hardware | Apple silicon Mac; measured on an M3 Max with 36 GB unified memory |
Results
Full Turkish Decision Benchmark
(2,194 messages, 19,861 questions), on an Apple M3 Max with 36 GB unified memory. Micro accuracy (%) / macro
accuracy (%) / ECE (15 bins), computed as d3train eval computes them. The GPU BF16 row is the same evaluation of
the published weights on a GPU. Base Decision 3.0 is this model with the adapter switched off.
| Run | Base Decision 3.0 | Pusula | Pusula gain (micro) |
|---|---|---|---|
| MLX 4-bit (this repository) | 86.92 / 88.08 / 0.009 | 91.39 / 92.20 / 0.032 | +4.47 |
| GPU BF16 | 87.50 / 88.52 / 0.009 | 91.41 / 92.22 / 0.031 | +3.91 |
Pusula answers every question with the adapter on, which is the v2.1 default (PUSULA_OWN_BASE=templates; the
benchmark has no eksik_bilgi question). With the v2.0 setting (custom questions answered by base Decision 3.0,
as in the published 92.0 of the Pusula card), the macro accuracy is
92.12. Results of all three versions and per question type are given in the
MLX guide.
Memory and speed, measured on the M3 Max with 36 GB:
| Weights | 14.4 GB (download 15.3 GB with the adapter) |
| Peak memory footprint, Pusula | 20.9 GB (token budget 4096, 2 GB buffer cache limit, 100 questions, /usr/bin/time -l) |
| Speed, base Decision 3.0 | 172 prompt tokens/s |
| Smaller machines | not measured |
Usage
The model is loaded with the pusula package and its MLX extra. Generic mlx-lm loading is not sufficient, since
the code readout, the Pusula adapter and the non-causal attention of the d3 prompt contract are applied by
pusula.mlx_d3.
pip install "pusula[mlx] @ git+https://github.com/erenextlabs/pusula@v2.1"
hf download erenextlabs/pusula-mlx-4bit --local-dir pusula-mlx-4bit
hf download erenextlabs/turkish-decision-benchmark tr_decision_bench_v1.jsonl --repo-type dataset --local-dir .
Score the benchmark, or a question file in the same format, with Pusula (--base switches the adapter off and
gives base Decision 3.0):
python -m pusula.mlx_d3 eval --mlx pusula-mlx-4bit --adapter pusula-mlx-4bit/adapter \
--data tr_decision_bench_v1.jsonl --out pusula-mlx.json
Each run writes a report (accuracy per question type, micro and macro accuracy, ECE, speed) and one prediction line per question. Commands for comparisons with other runs and with GPU predictions are given in the MLX guide.
Training
No training was done for this repository. The adapter in adapter/ is the Pusula v2.0 adapter, unchanged; its
training is described on the Pusula card. The text backbone
of vllm-sr/d3 was quantized once with python -m pusula.mlx_d3 convert --bits 4 (MLX affine quantization,
group size 64). The LoRA adapter is applied at run time in full precision on top of the quantized weights.
Limitations
- The limitations of Pusula v2.0 apply.
pusula.mlx_d3scores question files from the command line. TheD3EnginePython interface and the HTTP server (pusula-serve) of the Pusula repository do not run on MLX.- Memory and speed were measured only on an M3 Max with 36 GB. Smaller machines were not measured.
- Results were measured on the Turkish Decision Benchmark only; evaluation on application-specific data is recommended before deployment.
Contributors and citation
Pusula is developed by Erenext's AI Lab. The contributors are listed below:
| Name | Role | GitHub | Hugging Face |
|---|---|---|---|
| Hasan ลahin | Project lead | hsnsahinhsn | hsnsahinhsn |
| Ahmet Sayman | Contributor | Saymanlabs-LLC | saymanlabs |
Source code: github.com/erenextlabs/pusula.
@software{pusula2026,
title = {Pusula: A Full-Featured Decision Model Built for Turkish},
author = {ลahin, Hasan and Sayman, Ahmet},
year = {2026},
version = {2.0},
url = {https://github.com/erenextlabs/pusula},
license = {Apache-2.0}
}
License and attribution
Released under Apache-2.0. This repository contains a version of vllm-sr/d3 (vLLM Semantic Router Team,
Apache-2.0) quantized with MLX, which is itself built on Qwen3.8-27B (Apache-2.0), and the Pusula v2.0 adapter
(erenextlabs/pusula, Apache-2.0). In version 2.0 of the adapter,
Gemma-4-31B-it (Google, Apache-2.0) was used to write synthetic training messages and Qwen3.8-27B to label them;
boun-tabilab/TabiBERT (Apache-2.0) was used for data curation. The sectors and occupations of the synthetic messages
were sampled from NACE Rev. 2.1 (Source: Eurostat) and the ESCO classification of the European Commission
(ยฉ European Union). See NOTICE.
- Downloads last month
- 18
4-bit