Colibri: Run 744B GLM-5.2 MoE on Consumer Machines with Pure C
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
Colibri is an innovative project that enables running the massive 744B-parameter GLM-5.2 Mixture-of-Experts (MoE) model on consumer-grade machines with as little as 25GB of RAM. It achieves this remarkable feat through a pure C engine with zero dependencies, streaming model experts from disk on demand. This allows users to interact with a frontier-class LLM without requiring expensive GPU hardware.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
Colibri is an impressive open-source project that redefines what's possible for running large language models on consumer hardware. It allows users to run the GLM-5.2 (744B-parameter Mixture-of-Experts) model on machines with as little as 25GB of RAM. The core innovation lies in its pure C engine, which has zero dependencies and efficiently streams model experts from disk, making an "immense model" accessible via a "tiny engine." This project is ideal for anyone looking to experiment with a frontier-class LLM without the need for high-end GPUs.
Installation
Getting Colibri up and running involves a few straightforward steps. First, clone the repository and build the engine. Python is only required for the one-time model conversion.
-
Clone the repository and build:
cd c ./setup.sh # Checks gcc/OpenMP, builds, self-testsThis command will build the
coliexecutable and perform initial checks. -
Install Python dependencies for conversion:
pip install torch safetensors huggingface_hub numpy -
Convert the GLM-5.2 model:
./coli convert --model /path/to/your/model/directoryThis process downloads the GLM-5.2-FP8 shards one by one, converts them to the int4 container format, and prepares the MTP head for speculative decoding. It's resumable and does not require the full 756 GB FP8 checkpoint to exist on disk at once. Alternatively, you can download a pre-converted int4 model from Hugging Face: https://huggingface.co/jlnsrk/GLM-5.2-colibri-int4. Ensure you get the int8 MTP heads from the community clone if needed: https://huggingface.co/mateogrgic/GLM-5.2-colibri-int4-with-int8-mtp.
Examples
Once the model is converted and ready, you can start interacting with Colibri.
-
Interactive Chat:
To start an interactive chat session, simply pointCOLI_MODELto your model directory:COLI_MODEL=/path/to/your/model/directory ./coli chatThe engine automatically detects RAM budget, expert cache, and MTP settings.
-
OpenAI-compatible API Server:
Colibri also provides an OpenAI-compatible HTTP API server, allowing you to integrate the model into other applications.cd c COLI_MODEL=/path/to/your/model/directory COLI_API_KEY=local-secret ./coli serve \ --host 127.0.0.1 --port 8000 --model-id glm-5.2-colibriYou can then query it using
curl:curl http://127.0.0.1:8000/v1/chat/completions \ -H 'Authorization: Bearer local-secret' \ -H 'Content-Type: application/json' \ -d '{ "model": "glm-5.2-colibri", "messages": [{"role": "user", "content": "Hello"}], "stream": true }'
Why Use It
Colibri stands out for several compelling reasons, making it a unique solution for large language model inference:
- Accessibility: It democratizes access to frontier-class LLMs like GLM-5.2, allowing them to run on standard consumer machines, bypassing the need for expensive GPU clusters.
- Efficiency: Built in pure C with zero dependencies, Colibri is incredibly lightweight and optimized. It intelligently streams experts from disk, ensuring that only necessary parts of the massive model are loaded into RAM, minimizing memory footprint.
- Advanced Features: Colibri incorporates sophisticated techniques such as Native MTP speculative decoding for faster generation, compressed KV-cache persistence for warm conversation restarts, and a "learning cache" that automatically pins frequently used experts into RAM, making the engine faster with continued use.
- Cross-Platform Support: It supports Linux, macOS, and native Windows 11 (via MinGW-w64), making it versatile for various development environments.
- OpenAI-Compatible API: The built-in API server simplifies integration into existing AI applications and workflows.
Links
- GitHub Repository: https://github.com/JustVugg/colibri
- Hugging Face Model (int4): https://huggingface.co/jlnsrk/GLM-5.2-colibri-int4
- Hugging Face Model (int8 MTP): https://huggingface.co/mateogrgic/GLM-5.2-colibri-int4-with-int8-mtp
Related repositories
Similar repositories that may be relevant next.
Codebase-Memory-MCP: High-Performance Code Intelligence for AI Agents
June 20, 2026
Codebase-Memory-MCP is an exceptionally fast and efficient code intelligence engine tailored for AI coding agents. It transforms your codebase into a persistent knowledge graph, indexing an average repository in milliseconds and supporting 158 languages. This tool significantly reduces token usage and integrates seamlessly with various agents as a single, dependency-free binary.

TidesDB: A High-Performance Embeddable Storage Engine in C
June 9, 2026
TidesDB is a high-performance, adaptive, and durable embeddable storage engine library written in C. It is built on a log-structured merge-tree (LSM-tree) and offers ACID transactions with MVCC, multi-column family support, and cross-platform compatibility. Designed for flash and RAM optimization, TidesDB provides a robust foundation for building scalable key-value or column stores.

wireguard-tools: Essential Utilities for WireGuard VPN Configuration
June 4, 2026
wireguard-tools provides the core userspace utilities for configuring WireGuard VPN tunnels across multiple operating systems. This project includes the `wg` and `wg-quick` tools, simplifying the setup and management of secure network connections. It supports Linux, OpenBSD, FreeBSD, macOS, Windows, and Android, making it a versatile solution for WireGuard users.

pylibmc: A Fast Python Client for Memcached
May 10, 2026
pylibmc is a high-performance Python client for Memcached, implemented as a C wrapper around the libmemcached interface. It offers efficient data caching, Python 2.x and 3.x interoperability, and robust handling of various data types, making it a reliable choice for applications requiring fast memory caching.
Source repository
Open the original repository on GitHub.