cmgenerate

Local LLM inference in Rust: a library, CLI, chat client, HTTP server, and tool agent. Reads memory-mapped weights and runs quantized kernels on the CPU, with Vulkan, CUDA and Metal acceleration.

Downloads — version 0.3.6

Linuxx86-64 tar.gz · 57,0 MiB Linuxaarch64 (ARM64) tar.gz · 54,6 MiB Windowsx86-64 zip · 55,3 MiB Windowsaarch64 (ARM64) zip · 53,1 MiB macOSx86-64 tar.gz · 57,7 MiB macOSaarch64 (ARM64) tar.gz · 56,7 MiB

Linux binaries link glibc 2.28 or later.

What each archive contains

Every archive unpacks to the nine programs below, the web UI's assets in webui/, README.md and the man pages (as written and as PDF).

ProgramPurpose
cmgenerateGenerate, inspect, score, or convert; also --repl and --serve
cmchatPersistent chat with line editing and history
cmserveHTTP server with address and model-name options
cmagentChat with file tools and optional shell commands
cmfinetuneLoRA finetuning on the CPU, and merging an adapter into a GGUF
cmtranscribeSpeech to text with Parakeet TDT (Phonon-2 or a Parakeet GGUF); text, JSON, SRT or VTT
cmspeechText to speech with Kokoro-82M; English built in, more languages with espeak-ng
cmvoiceagentSpoken front end for cmagent: microphone, Parakeet, Kokoro, spoken approvals
cmagent-webuiBrowser front end for cmagent: conversations, approvals, files, skills, voice; serves webui/

Running

Unpack, then run from the extracted directory. A model can be a GGUF file, safetensors file, llama2.c .bin, or a HuggingFace directory with config.json.

tar xzf cmgenerate-0.3.6-linux-x86_64.tar.gz
cd cmgenerate-0.3.6-linux-x86_64
./cmgenerate model.gguf "Explain Rust ownership." -n 128 -t 0
./cmchat model.gguf
./cmserve model.gguf --listen 8080
./cmagent model.gguf "Summarize this repository."
./cmagent-webui --root ~/project   # then open http://localhost:8787

--help lists each program's options; /help lists the commands inside a conversation. The man pages in man/ explain the options in detail: man -l man/cmgenerate.1.