Single-file CMF build for local inference (Rust; Vulkan, Metal, CPU)

#4
by infosave - opened

We packaged d1-2B as single CMF files that run with cortiq, a Rust inference engine with no Python: cortiq system-one and an HTTP /v1/system_one endpoint answer named questions over a text, JSON or picture state from one forward pass, with the release's calibration applied, on Vulkan/DX12, Metal or the CPU.

Files: https://huggingface.co/infosave/d1-2B-cmf — q8_2f (2.14 GB) and q4tp (1.31 GB); both give the same 19 of 19 answers as Transformers on our test requests.

The whole pass runs in one GPU submission: one question takes 45 ms on an NVIDIA A40 and 85 ms on an Apple M4.

cargo install cortiq-cli
cortiq system-one d1-2b-q8_2f.cmf --state "I was charged twice. Please refund one charge." \
  --questions '{"refund": {"type": "noul", "instructions": "Is the customer asking for a refund?"}}'

(cortiq 0.8.50)

Sign up or log in to comment