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.

Colibri: Run 744B GLM-5.2 MoE on Consumer Machines with Pure C

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

Analyzed by OSRepos on July 11, 2026

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.

  1. Clone the repository and build:

    cd c
    ./setup.sh # Checks gcc/OpenMP, builds, self-tests
    

    This command will build the coli executable and perform initial checks.

  2. Install Python dependencies for conversion:

    pip install torch safetensors huggingface_hub numpy
    
  3. Convert the GLM-5.2 model:

    ./coli convert --model /path/to/your/model/directory
    

    This 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.

  1. Interactive Chat:
    To start an interactive chat session, simply point COLI_MODEL to your model directory:

    COLI_MODEL=/path/to/your/model/directory ./coli chat
    

    The engine automatically detects RAM budget, expert cache, and MTP settings.

  2. 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-colibri
    

    You 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

Related repositories

Similar repositories that may be relevant next.

Codebase-Memory-MCP: High-Performance Code Intelligence for AI Agents

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.

code-intelligenceAI agentsknowledge-graph
TidesDB: A High-Performance Embeddable Storage Engine in C

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.

Cstorage-engineembeddable
wireguard-tools: Essential Utilities for WireGuard VPN Configuration

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.

WireGuardNetworkingVPN
pylibmc: A Fast Python Client for Memcached

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.

PythonMemcachedC

Source repository

Open the original repository on GitHub.

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️