Instructions to use AbstractFramework/kev-0.8b-mlx-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use AbstractFramework/kev-0.8b-mlx-8bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download AbstractFramework/kev-0.8b-mlx-8bit --local-dir kev-0.8b-mlx-8bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
kev-0.8b-mlx-8bit: model card
Browse files11 unmodified lines1213141516171819202122232425262728293031326 unmodified lines39404142434445464748495051525354555611 unmodified lines# Kev-0.8B for MLX, 8-bit (group 64)A decision model: it reads a document (the *state*) and answers typed questions about it — `choice`over named options, `noul` (the probability a statement is true), `score` over ordered levels — withcalibrated probabilities, in one forward pass, without generating text.This is [jaredpalmer/kev-0.8b](https://huggingface.co/jaredpalmer/kev-0.8b) (Jared Palmer, Apache-2.0: a rank-16 LoRA plus apointer head on a Qwen3.5 base) with the adapter folded into the base and the backbone quantized for[mlx-lm](https://github.com/ml-explore/mlx-lm) at 8-bit (group 64) (0.8 GB). The pointer head(`head.safetensors`) stays in float32; `decision.json` records the recipe and the source checkpoint.## Measuredpublic-pool-v6 development set (1,328 records): accuracy 0.761 (bf16 0.763), Brier 0.321, ECE 0.025; argmax agreement with bf16 0.990, mean |Δp| 0.006; 24 ms per record on an M5 Max.## Use with AbstractCore```pythonfrom abstractcore import create_llm6 unmodified lines"criteria": {"returns": "Exchanges, refunds, wrong or damaged items","shipping": "Delivery status, delays, lost packages","billing": "Charges, invoices, payment problems"}},"escalate": {"type": "noul", "instructions": "Does this need urgent human attention?"},"frustration": {"type": "score", "instructions": "How frustrated is the customer?","criteria": ["Calm", "Frustrated", "Very angry"]},},)result.decisions["department"].choice, result.decisions["escalate"].noul```Or over HTTP on an AbstractCore server: `POST /v1/decisions` with `{"model": "mlx/AbstractFramework/kev-0.8b-mlx-8bit", "state": ..., "questions": ...}`.Docs: https://github.com/lpalbou/AbstractCore/blob/main/docs/decision-models.md## AttributionWeights derived from jaredpalmer/kev-0.8b (Jared Palmer) on Qwen/Qwen3.5 base models (Alibaba), both Apache-2.0.Converted with `python -m abstractcore.decision.convert`.11 unmodified lines1213141516171819202122232425262728293031323334353637383940414243444546474849506 unmodified lines5758596061626364656667686970717273747576777879808182838485868788899091929394959697989910011 unmodified lines# Kev-0.8B for MLX, 8-bit (group 64)**What it is.** A decision model: it reads a document (the *state*) and answers typed questions about it— `choice` over named options, `noul` (the probability that a statement is true), `score` over orderedlevels — with calibrated probabilities, in one forward pass, without generating text. Use it to classify,route, triage, score or check documents and threshold the probabilities (send the uncertain cases to a human).**Why this checkpoint.** The published [jaredpalmer/kev-0.8b](https://huggingface.co/jaredpalmer/kev-0.8b) (Jared Palmer,Apache-2.0) is a rank-16 LoRA plus a pointer head on a Qwen3.5 base: running it means downloading thebase model, folding the adapter in at every load and keeping bf16 weights in memory. This repository is themerged result quantized for [mlx-lm](https://github.com/ml-explore/mlx-lm) at 8-bit (group 64) (0.8 GB):one download, loads in a few seconds, same answers within the measured tolerance below. The pointer head(`head.safetensors`) stays in float32; `decision.json` records the recipe and the source checkpoint.**How accuracy is protected.** A decision model's value is its calibration, and a plain 4-bitquantization damages it: every linear layer at 4 bits (group 64) costs Kev-4B a point of accuracy andmoves a tenth of its answers by more than 0.10 probability. The recipes here were chosen by measuringevery candidate against the bf16 weights on the model author's public development set (1,328 records,1,592 questions: argmax agreement, mean and maximum probability shift, accuracy, Brier, ECE), per modulegroup and group size. Quantization sensitivity sits in the Gated DeltaNet projections and the group size;keeping those projections at 8 bits with 32-element groups keeps the accuracy, and the 8-bit checkpoint isindistinguishable from bf16. The companion checkpoints are `AbstractFramework/kev-0.8b-mlx-8bit` and`AbstractFramework/kev-0.8b-mlx-4bit`; prefer 8-bit when you threshold probabilities, 4-bit when size matters.## Measuredpublic-pool-v6 development set (1,328 records): accuracy 0.761 (bf16 0.763), Brier 0.321, ECE 0.025; argmax agreement with bf16 0.990, mean |Δp| 0.006; 24 ms per record on an M5 Max.## Use with AbstractCore```bashpip install "abstractcore[apple]"abstractcore models download mlx AbstractFramework/kev-0.8b-mlx-8bit``````pythonfrom abstractcore import create_llm6 unmodified lines"criteria": {"returns": "Exchanges, refunds, wrong or damaged items","shipping": "Delivery status, delays, lost packages","billing": "Charges, invoices, payment problems"}},"escalate": "Does this need urgent human attention?", # shorthand for a noul question"frustration": {"type": "score", "instructions": "How frustrated is the customer?","criteria": ["Calm", "Frustrated", "Very angry"]},},)result.decisions["department"].choice # "returns"result.decisions["department"].probabilities # {"returns": 0.50, "shipping": 0.37, "billing": 0.13}result.decisions["escalate"].noul # 0.73result.decisions["frustration"].score # expected level, 0..2```Over HTTP (`abstractcore serve`), the same request is `POST /v1/decisions` with`{"model": "mlx/AbstractFramework/kev-0.8b-mlx-8bit", "state": ..., "questions": ...}`.## The state cache (KV cache) and what to expectThe document is read once per request and reused for every question in it; AbstractCore also keepsthe computed state of the last four documents, so a second request about the same document only paysfor its questions. Measured on an M5 Max with this family's 8-bit Kev-4B:| Request | First time | Same document again ||---|---|---|| a 100-token support ticket, three questions | ~95 ms | ~45 ms || a 6,300-token contract, three questions | ~1.4 s | ~0.1 s |Reading the document is the cost (about 3,000 tokens per second for Kev-4B, four to five times fasterfor Kev-0.8B); the questions themselves cost tens of milliseconds. Ask everything you need about adocument in one call, or in consecutive calls while it is still cached. To disable the cache (everyrequest re-reads its document): `create_llm("mlx", model=..., decision_prefix_cache_size=0)`; to keepmore documents: `decision_prefix_cache_size=16`. The cache lives in memory for the life of the provider.## Docs- Decision models in AbstractCore: https://github.com/lpalbou/AbstractCore/blob/main/docs/decision-models.md(engines, every supported model, conversion recipes, the full measurements)- AbstractFramework: https://github.com/lpalbou/abstractframework## AttributionWeights derived from jaredpalmer/kev-0.8b (Jared Palmer) on Qwen/Qwen3.5 base models (Alibaba), both Apache-2.0.Converted and measured with `python -m abstractcore.decision.convert`.
README.md+55-11