CMF files for cortiq (Rust, no Python): 8-bit, 4-bit and a fixed-memory Turbo; CUDA, Vulkan, Metal, CPU

#2
by infosave - opened

Hi, and thank you for releasing Aion-1.0-Instruct under MIT.

Support for the model is out in cortiq 0.9.9, a Rust inference engine with no Python and no ML framework. The weights are packaged as single CMF files:

  • infosave/Aion-1.0-Instruct-2.3B-cmf: an 8-bit file (2.31 GB) and a 4-bit GPTQ file (1.41 GB). WikiText-2 perplexity is 14.25 and 14.61 against 14.24 for Transformers bf16 on the same windows, and the greedy answers of the 8-bit file match Transformers word for word.
  • infosave/Aion-1.0-Instruct-2.3B-Turbo-cmf: the 4-bit weights with a fixed-size far field for the 7 full-attention layers, so over Vulkan the card holds 3.5 GB and 80 tok/s from an 8 192-token prompt to a 30 000-token one (the standard 4-bit file: 4.6 GB and 53 tok/s at 30 000).

Measured on an NVIDIA L4 (24 GB) with the 4-bit file: 129 tok/s through CUDA and 110 tok/s over Vulkan, a 2048-token prompt read in 0.33 s. A MacBook Air M4 writes 60 tok/s through Metal. The model's own chat template and its <|tool_call|> tool calls work through the OpenAI-compatible server (cortiq serve).

cargo install cortiq-cli
hf download infosave/Aion-1.0-Instruct-2.3B-cmf Aion-1.0-Instruct-2.3B-q8_2f.cmf --local-dir .
cortiq run Aion-1.0-Instruct-2.3B-q8_2f.cmf --prompt "Summarize in three bullet points: ..."

If anything in the conversion looks off against the reference, I would be glad to hear it.

Sign up or log in to comment