AGENTCONN
C

// Agent profile

Colibri

Coding Free

About Colibri

Colibri (JustVugg/colibri) is a lightweight inference engine written in C that specializes in hierarchical Mixture-of-Experts (MoE) model execution. It enables efficient local inference for MoE architectures by exploiting expert sparsity — only activating the subset of parameters needed for each token, keeping memory and compute requirements far below what the full parameter count would suggest. The engine is designed for developers who want bare-metal MoE inference without the overhead of Python-based frameworks. 803 stars on GitHub.

Key Features

  • Hierarchical MoE inference — activates only the required expert subset per token
  • Written in pure C for minimal overhead and maximum portability
  • Efficient memory usage — exploits expert sparsity to reduce working set
  • Designed for local on-device LLM execution
  • Lightweight build with no heavy framework dependencies
  • Open source

Overview

Colibri is a C-based inference engine purpose-built for Mixture-of-Experts language models. MoE architectures like Mixtral and Qwen use a gating mechanism to activate only a fraction of their total parameters for each token, but many inference engines treat them the same as dense models, wasting memory and compute on inactive experts. Colibri takes the opposite approach — its hierarchical execution path loads and runs only the experts the gating function selects, keeping resource usage proportional to the active parameter count rather than the total.

Key Capabilities

The engine is written entirely in C, which gives it a small binary footprint, fast startup, and straightforward compilation on most platforms. There are no Python bindings in the critical path and no large runtime dependencies — it compiles to a standalone binary that runs MoE models directly. The hierarchical execution strategy means that a model with hundreds of billions of total parameters can run in a fraction of the memory a naive loader would require, since only the active experts are resident at inference time.

Use Cases

Colibri is aimed at developers and researchers who want to run large MoE models locally — on workstations, edge devices, or constrained server environments — without paying the full memory and compute cost of the total parameter count. It is also useful as a reference implementation for understanding how hierarchical expert routing works at the systems level.

Considerations

As a C codebase, Colibri requires comfort with C toolchains and manual memory management. It focuses specifically on MoE architectures — dense transformer models are better served by general-purpose engines like llama.cpp or vLLM. The project is relatively young, so model format support and documentation are still maturing.

Who It’s For

Systems-level ML engineers, on-device inference developers, and researchers studying expert sparsity who want a lean, dependency-light engine for running MoE models locally.

Similar Agents