CVQ: Ciru Vector Quantization

M5 Ultra 256 - CVQ - Inkling 2 Mini

Inkling 2 Mini in CVQ (Ciru Vector Quantization) for the Apple M5 Ultra. It runs on the 256 GiB machine with room to spare.

This repository holds the expert weights in two precisions, 3.13 bits and 4.13 bits per weight, so one download gives you three configurations. On a single stream the 3-bit build decodes at 170.6 tok/s and prefills a 4K prompt at 11,118 tok/s.

CVQ is a format for one machine and one engine. These weights load in Ciru RCS on Apple M5 Ultra. They do not load in Transformers, MLX or llama.cpp.

At a glance

Source model thinkingmachines/Inkling-2-Mini at commit c9d02830
What is here CVQ expert weights for all 24 layers, in 3.13-bit and 4.13-bit form
What is not here The rest of the model. Ciru RCS reads it from the original checkpoint.
Download size 21 GiB, 289 files
Memory in use 25.8 GiB (3-bit) or 28.6 GiB (4-bit) in the benchmark configuration
Context Up to 1M tokens (47 to 50 GiB in use)
Minimum hardware Apple M5 Ultra, 256 GiB

Three configurations from one download

Configuration Expert bits per weight Files used
CVQ-3 3.13 every *.vq4
CVQ-3/4 mix 3.46 *_w13.vq4 and *_w2.g4
CVQ-4 4.13 every *.g4

Benchmarks

Measured on an idle Apple M5 Ultra running Ciru RCS.

Accuracy against the original model

Teacher-forced over 100 held-out positions, scored against the original model.

Bits Perplexity Mean KL (max) Top-1 Top-10 Needle / tool calling
CVQ-4 4.13 16.799 0.01329 (0.1059) 95.0% 91.9% pass / pass
CVQ-3/4 mix 3.46 15.977 0.02060 (0.1535) 87.0% 90.9% pass / pass
CVQ-3 3.13 16.130 0.03522 (0.1867) 87.0% 89.3% pass / pass

The mix row is from an earlier engine build than the other two.

Speculative decoding produces the same tokens as plain decoding (256 of 256 in the 4-stream check).

Speed

Tokens per second on real, varied prompts, 256-token generations, paired runs.

Measurement CVQ-3 CVQ-4
Prefill, 4K prompt 11,118 11,016
Prefill, 32K prompt 9,488 9,428
Decode, one stream 170.6 168.8
Decode, one stream, speculative 225 to 236 234 to 238
Decode, 4 streams 288.4 271.6
Decode, 4 streams, batched speculative 403 to 460 325 to 410
Decode, 8 streams 403.1 383.9
Decode, 8 streams, batched speculative 539 to 773 472 to 657

The ranges cover mixed and coding prompts.

What is in this repository

codebook256.u8                 the shared 256-entry codebook
L{0..23}_w13.vq4  .sc  .tiers  expert input projections, 3.13 bits per weight
L{0..23}_w13.g4   .sc  .tiers  expert input projections, 4.13 bits per weight
L{0..23}_w2.vq4   .sc  .tiers  expert output projections, 3.13 bits per weight
L{0..23}_w2.g4    .sc  .tiers  expert output projections, 4.13 bits per weight
LICENSE                        Apache License 2.0

Each matrix has three files: the packed codes, a .sc file of float32 scales and a .tiers file of 4-bit gain tiers. The .vq4 files store 12 bytes per 32 weights (eight 8-bit codebook indices and 32 sign bits). The .g4 files store one 4-bit code per weight. Nothing is encrypted or obfuscated.

Running it

Ciru RCS 0.2.0-beta.23 and later download these weights for you.

  1. Get Ciru RCS from the setup guide and downloads page.
  2. Open Models, find Inkling-2-Mini CVQ and click Download & load. The app downloads this repository (22.3 GB) and the original checkpoint from thinkingmachines/Inkling-2-Mini (20.2 GB). It checks every file against its SHA-256 and then loads the model. If Inkling-2-Mini is already downloaded in the app, only this repository is fetched.
  3. Pick a preset: CVQ-3 · 256K, CVQ-3 · 1M, CVQ-4 · 256K or CVQ-4 · 1M. You can switch between them without another download. The app has no preset for the CVQ-3/4 mix yet. Ciru RCS serves an OpenAI-compatible API on http://127.0.0.1:18753/v1, model main.

To use files you downloaded yourself, click Use local folder… on the same card, choose the folder with these weights, then the folder with the original checkpoint when asked.

hf download ciruai/M5-Ultra-256-CVQ-Inkling-2-Mini --local-dir ~/Models/M5-Ultra-256-CVQ-Inkling-2-Mini
hf download thinkingmachines/Inkling-2-Mini --local-dir ~/Models/Inkling-2-Mini

License and attribution

Inkling 2 Mini is released by Thinking Machines under the Apache License 2.0, and so are these files. The expert weights were re-quantized into CVQ; nothing else about the model was changed.

Quantized and published by Ciru. Ciru is not affiliated with Thinking Machines.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ciruai/M5-Ultra-256-CVQ-Inkling-2-Mini

Quantized
(480)
this model