Colibri

From akillness/jeo-skills · View interactive version

Colibri is an AI agent skill from the GitHub repository akillness/jeo-skills. Assist with Colibri: pure-C LLM inference engine for running GLM-5.2 (744B MoE) on consumer machines with ~25 GB RAM. Use when setting up, building, converting models, running inference, configuring expert streaming and caching, optimizing speculative decoding (MTP), GPU integration, and integrating

How to use this skill

Skill file

Colibri

Assist with Colibri — the pure-C inference engine for running GLM-5.2 (744B Mixture-of-Experts) on consumer machines with ~25 GB RAM, featuring expert disk-streaming, MLA attention, and native speculative decoding (MTP).

When to use this skill

When not to use this skill

Core architecture

Main components:

  1. glm.c (~2,400 lines) — Faithful GLM-5.2 (glm_moe_dsa) forward pass with MLA attention, MTP speculative decoding, DeepSeek-V3 sigmoid router
  2. Expert streaming — 21,504 routed experts (75 MoE layers × 256 experts) live on disk (~370 GB total at int4), streamed on demand with per-layer LRU cache
  3. Storage hierarchy — Dense layers (attention, shared experts, embeddings) in RAM (~9.9 GB at int4), experts on NVMe/HDD, OS page cache as L2
  4. MTP speculative decoding — GLM-5.2's native multi-token-prediction head (layer 78, int8 for lossless 39–59% draft acceptance) drafts and main model verifies in one forward
  5. MLA attention — q/kv-LoRA + interleaved partial RoPE with compressed KV-cache (576 floats/token vs 32,768 dense — 57× smaller)

CLI modes:

Key parameters

| Parameter | Scope | Default | Notes |

|-----------|-------|---------|-------|

| COLI_MODEL | env | (required) | Path to converted int4 model directory |

| --ram <GB> | plan/chat | auto-detect | RAM budget for dense layers (min 10 GB) |

| --vram <GB> | plan/chat | 0 (CPU-only) | GPU vRAM for pinned experts (requires CUDA build) |

| --cache <MB> | plan/chat | auto-detect | Per-layer LRU cache size for routed experts |

| --mtp on/off | chat | auto-detect | Enable/disable speculative decoding (off = single-token mode) |

| --temperature <0–2> | chat | 0.95 | Sampling temperature (0 = greedy) |

| --top-p <0–1> | chat | 0.9 | Nucleus sampling threshold |

Performance metrics (community benchmarks)

Integration patterns

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.