Instructions to use 0xdfi/Carnice-27b-MLX-Q6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use 0xdfi/Carnice-27b-MLX-Q6 with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("0xdfi/Carnice-27b-MLX-Q6") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- LM Studio
- Pi new
How to use 0xdfi/Carnice-27b-MLX-Q6 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "0xdfi/Carnice-27b-MLX-Q6"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "0xdfi/Carnice-27b-MLX-Q6" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use 0xdfi/Carnice-27b-MLX-Q6 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 "0xdfi/Carnice-27b-MLX-Q6"
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 0xdfi/Carnice-27b-MLX-Q6
Run Hermes
hermes
- MLX LM
How to use 0xdfi/Carnice-27b-MLX-Q6 with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "0xdfi/Carnice-27b-MLX-Q6"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "0xdfi/Carnice-27b-MLX-Q6" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "0xdfi/Carnice-27b-MLX-Q6", "messages": [ {"role": "user", "content": "Hello"} ] }'
Carnice-27b-MLX-Q6
This repo is a straight MLX Q6 quant of kai-os/Carnice-27b for local Apple Silicon inference.
No other edits, additions, merges, or behavioral changes have been made to the model beyond the quantization/export step.
M1 Ultra Mac Studio Throughput
Measured on a Mac Studio with Apple M1 Ultra and 128 GB unified memory.
- Carnice-27b full weights:
10.776tokens/sec average generation,53.939 GBmax peak memory - Carnice-27b-MLX-Q6:
19.124tokens/sec average generation,22.023 GBmax peak memory
Q6 Quant
This is a straight 6-bit MLX quant.
- quantization:
Q6 - final exported model size works out to about
6.501 bits per weight
Original Model
The text below is carried over from kai-os/Carnice-27b, with the quant-specific notes above added for this MLX release.
Carnice-27b is the merged full-model release of the Trinity Hermes-Agent training run on top of Qwen/Qwen3.5-27B.
This repo contains the quantized MLX export of that model.
Acknowledgements
This work would not have been possible without Zachary Mueller, Lambda, Teknium, and Nous Research.
Trained using traces from lambda/hermes-agent-reasoning-traces
Trinity Process
Stage A: Premium Reasoning Backbone
3300train rows193validation rows12288max length- final eval loss
0.5316 - final eval perplexity
1.7016
Stage B: Hermes Alignment
- widened Carnice + DJ + Lambda alignment mix
2269train rows80validation rows- final eval loss
0.2336 - final eval perplexity
1.2632
Stage C: Carnice Polish
600train rows60validation rows- final eval loss
0.2310 - final eval perplexity
1.2599
Intended Use
Carnice-27b is tuned for Hermes-Agent style terminal, file, browser, repo, debugging, and multi-step tool workflows.
Benchmark Status
Reproducible benchmark runs are not attached yet. They will be added only after the dedicated benchmark box run is complete.
Loading with mlx-lm
python -m mlx_lm.generate \
--model /path/to/Carnice-27b-MLX-Q6 \
--prompt "Write a bash command to list large files recursively."
- Downloads last month
- 85
6-bit
