One backbone, many specialists. CMF is a self-describing, memory-mappable single-file format and a dependency-free runtime for quantized LLMs — zero-copy execution on CPU or GPU (Vulkan · Metal · DX12) that overlays task-specialized skills onto one shared model, with no per-model duplication.
25
stars
1,306
commits
Rust
primary language
Sep 8, 2026
updated
Русский: README.ru.md · 中文: README.zh.md
CMF is an auditable model container: one file can hold weights, tokenizer, chat metadata, task masks and skill overlays for inference without a large framework runtime.
CMF v2 is the current on-disk format. Readers validate the envelope, section bounds, tensor metadata and hashes; incompatible changes require a feature bit or version bump. The Rust crate APIs are still pre-1.0 and may change.
The project is usable for local inference and format experiments. Treat model quality and speed numbers as workload-specific measurements, not guarantees; see the focused guides for the test setup behind each claim.
Install the CLI and convert a small public checkpoint:
cargo install cortiq-cli
cortiq convert --model Qwen/Qwen3-0.6B --quant q8 --output qwen.cmf
cortiq run qwen.cmf --prompt "What is the capital of France?" --greedy --no-think
Already have GGUF? Import it directly:
cortiq import-gguf model.gguf --output model.cmf
cortiq verify model.cmf
The CLI also exposes info, bench, ppl, serve, skill, moe-mask,
moe-defrag, requant, compact, sign, imagine, animate and
ltx-video. Run cortiq <command> --help for flags and current limitations.
hash64.cortiq verify fails on malformed bounds or a hash mismatch; python/cmf_reader.py
is a small independent reader for inspection. The normative layout is in the
CMF v2 specification.
Quantization is selected per tensor, so sensitive tensors can stay at a higher precision while large matrix blocks use a compact codec.
| Codec | Typical use |
|---|---|
f16, f32 | norms, embeddings and exact control tensors |
q8, q8_2f | high-fidelity weights; q8_2f adds input-channel scales |
q4, q4t, q4tp | general dense and MoE weights |
q2tp, vbit, vbit_ro | size-constrained or mixed-bit profiles |
q1, q1t, q1s | trained binary or experimental ternary/PTQ paths |
See Q1T/PTQ for the experimental low-bit path and the quantization coverage matrix for codec support by execution path.
CMF_GPU=1 to request GPU.--o1 attention uses fixed-size state and trades
memory growth for a measured quality delta; measure on your model.cortiq serve provides an OpenAI-compatible local HTTP API.imagine, animate and ltx-video pack model assets and run
image, video or audio-capable pipelines when their model guides apply.| Target | Support |
|---|---|
| Linux/macOS/Windows | CPU builds; GPU through the available wgpu backend |
| Apple Silicon | CPU and Metal paths; memory is shared with the system |
| NVIDIA/AMD GPUs | Vulkan or DX12 through wgpu where tested |
| Android/iOS integrations | See the companion mobile project and split guide |
Native conversion covers Qwen, Llama, Mistral, Gemma, Phi, DeepSeek, Kimi
Linear, MiniCPM and several MoE/video families. Model-specific constraints and
published files are indexed in the model guides. For an
unsupported checkpoint, try import-gguf and file a reproducible issue if it
fails.
cargo build --release --workspace
cargo build --release -p cortiq-cli --no-default-features # CPU-only CLI
cargo test --workspace
The workspace is Apache-2.0. Read LICENSE, PATENTS.md, CONTRIBUTING.md and SECURITY.md before redistributing or reporting a vulnerability. Releases and checksums are listed on the GitHub releases page.
1,305 commits
1 commits
Rust
94.0%
Python
4.3%
One backbone, many specialists. CMF is a self-describing, memory-mappable single-file format and a dependency-free runtime for quantized LLMs — zero-copy execution on CPU or GPU (Vulkan · Metal · DX12) that overlays task-specialized skills onto one shared model, with no per-model duplication.
25
stars
1,306
commits
Rust
primary language
Sep 8, 2026
updated
Русский: README.ru.md · 中文: README.zh.md
CMF is an auditable model container: one file can hold weights, tokenizer, chat metadata, task masks and skill overlays for inference without a large framework runtime.
CMF v2 is the current on-disk format. Readers validate the envelope, section bounds, tensor metadata and hashes; incompatible changes require a feature bit or version bump. The Rust crate APIs are still pre-1.0 and may change.
The project is usable for local inference and format experiments. Treat model quality and speed numbers as workload-specific measurements, not guarantees; see the focused guides for the test setup behind each claim.
Install the CLI and convert a small public checkpoint:
cargo install cortiq-cli
cortiq convert --model Qwen/Qwen3-0.6B --quant q8 --output qwen.cmf
cortiq run qwen.cmf --prompt "What is the capital of France?" --greedy --no-think
Already have GGUF? Import it directly:
cortiq import-gguf model.gguf --output model.cmf
cortiq verify model.cmf
The CLI also exposes info, bench, ppl, serve, skill, moe-mask,
moe-defrag, requant, compact, sign, imagine, animate and
ltx-video. Run cortiq <command> --help for flags and current limitations.
hash64.cortiq verify fails on malformed bounds or a hash mismatch; python/cmf_reader.py
is a small independent reader for inspection. The normative layout is in the
CMF v2 specification.
Quantization is selected per tensor, so sensitive tensors can stay at a higher precision while large matrix blocks use a compact codec.
| Codec | Typical use |
|---|---|
f16, f32 | norms, embeddings and exact control tensors |
q8, q8_2f | high-fidelity weights; q8_2f adds input-channel scales |
q4, q4t, q4tp | general dense and MoE weights |
q2tp, vbit, vbit_ro | size-constrained or mixed-bit profiles |
q1, q1t, q1s | trained binary or experimental ternary/PTQ paths |
See Q1T/PTQ for the experimental low-bit path and the quantization coverage matrix for codec support by execution path.
CMF_GPU=1 to request GPU.--o1 attention uses fixed-size state and trades
memory growth for a measured quality delta; measure on your model.cortiq serve provides an OpenAI-compatible local HTTP API.imagine, animate and ltx-video pack model assets and run
image, video or audio-capable pipelines when their model guides apply.| Target | Support |
|---|---|
| Linux/macOS/Windows | CPU builds; GPU through the available wgpu backend |
| Apple Silicon | CPU and Metal paths; memory is shared with the system |
| NVIDIA/AMD GPUs | Vulkan or DX12 through wgpu where tested |
| Android/iOS integrations | See the companion mobile project and split guide |
Native conversion covers Qwen, Llama, Mistral, Gemma, Phi, DeepSeek, Kimi
Linear, MiniCPM and several MoE/video families. Model-specific constraints and
published files are indexed in the model guides. For an
unsupported checkpoint, try import-gguf and file a reproducible issue if it
fails.
cargo build --release --workspace
cargo build --release -p cortiq-cli --no-default-features # CPU-only CLI
cargo test --workspace
The workspace is Apache-2.0. Read LICENSE, PATENTS.md, CONTRIBUTING.md and SECURITY.md before redistributing or reporting a vulnerability. Releases and checksums are listed on the GitHub releases page.
1,305 commits
1 commits
Rust
94.0%
Python
4.3%