Downloads · 30 days
41
3% of all-time downloads
jason-schulz/Carnice-9b-MLX
Carnice-9b-MLX is a text generation model from jason-schulz. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as apache-2.0.
4-bit MLX quantization of kai-os/Carnice-9b.
Downloads · 30 days
41
3% of all-time downloads
All-time downloads
1.4K
Public
Parameters
9B
5.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5 GB · 100%
How the weights are stored.
U329B · 100%
From the Hugging Face model README
4-bit MLX quantization of kai-os/Carnice-9b.
This conversion was produced using mlx_lm.convert for use with MLX on Apple Silicon.
Carnice-9b by kai-os is a standalone merged model built on Qwen/Qwen3.5-9B, tuned specifically for the Hermes Agent harness. It was trained in two stages:
The model is optimized for terminal-heavy task execution, file editing, structured tool use, browser-assisted agent behavior, and multi-turn tool calling inside the Hermes runtime.
See the original model card for full training details and data sources.
| Property | Value |
|---|---|
| Quantization | 4-bit |
| Group size | 64 |
| Mode | Affine |
| Original dtype | bfloat16 |
| File size | ~4.7 GB |
| Property | Value |
|---|---|
| Architecture | Qwen3_5ForCausalLM |
| Parameters | ~8.95B |
| Hidden layers | 32 |
| Hidden size | 4096 |
| Attention heads | 16 (4 KV heads) |
| Head dim | 256 |
| Intermediate size | 12288 |
| Max context length | 262,144 tokens (256K) |
| Vocab size | 248,320 |
| Attention | Hybrid (linear + full, every 4th layer is full attention) |
<think> / </think> tags for chain-of-thought reasoning<tool_call> formattingSampled evaluation (30 items per benchmark) on the 4-bit MLX quantized model:
| Benchmark | Accuracy | Correct | Total | Sampled From |
|---|---|---|---|---|
| MMLU | 66.7% | 20 | 30 | 14,042 |
| HellaSwag | 90.0% | 27 | 30 | 10,042 |
| TruthfulQA | 86.7% | 26 | 30 | 817 |
| HumanEval | 83.3% | 25 | 30 | 164 |
| LiveCodeBench | 30.0% | 9 | 30 | 1,055 |
Note: These are sampled results (30 items each), not full benchmark runs. They give a rough signal of quantized model quality but should not be compared directly to full-run scores.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("jason-schulz/Carnice-9b-MLX")
prompt = "Explain the difference between linear and full attention."
messages = [{"role": "user", "content": prompt}]
text = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
response = generate(
model,
tokenizer,
prompt=text,
max_tokens=512,
)
print(response)
mlx_lm.chat --model jason-schulz/Carnice-9b-MLX
Produced with:
mlx_lm.convert \
--hf-path kai-os/Carnice-9b \
--mlx-path Carnice-9b-MLX \
-q \
--q-bits 4 \
--q-group-size 64 \
--q-mode affine
The original model's config.json uses model_type: "qwen_3_5_text", which mlx_lm.convert does not recognize. The conversion will fail with an unsupported model type error. To work around this, manually change model_type to "qwen3_5" in the source model's config.json before running the conversion. The resulting model loads and runs correctly under MLX.