Analysis updated 2026-07-25
Run the Laguna S 2.1 language model locally on a Mac for private chat.
Serve the model through an OpenAI-compatible API for your own apps.
Connect an optional web frontend to the API server for a browser chat UI.
| ozymand1as/guppy | 0xallam/my-recipe | 0xhassaan/nn-from-scratch | |
|---|---|---|---|
| Stars | 0 | — | 0 |
| Language | Python | Python | Python |
| Last pushed | — | 2022-11-22 | — |
| Maintenance | — | Dormant | — |
| Setup difficulty | hard | moderate | moderate |
| Complexity | 5/5 | 2/5 | 4/5 |
| Audience | researcher | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires compiling a C engine, converting large model weights with Python scripts, and a Mac with ample RAM and disk space.
This repository is a port of an existing AI inference engine called Colibri, adapted to run a specific large language model known as Laguna S 2.1. The Laguna model, created by Poolside AI, has roughly 100 billion parameters. The original Colibri engine was built for a different, larger model called GLM-5.2 with 744 billion parameters. This fork adjusts the engine so it works with Laguna's smaller size, different memory requirements, and distinct architectural details. The project involves several technical differences from the original engine. Laguna uses fewer layers, a smaller hidden size, and a varying number of attention heads per layer ranging from 48 to 72. It also uses a mix of global and sliding window attention, a different type of positional encoding called YaNE RoPE, and a softplus gating mechanism in its router rather than sigmoid. The model weights are quantized to int4 format, taking up about 56 GB of disk space, while embeddings use int8 format. RAM usage sits around 20 GB. To get it running, a user downloads the model files, converts them to the int4 format using a provided Python script, compiles the main engine written in C, and then launches the model. There are three ways to interact with it: a simple chat script, an OpenAI-compatible API server, or direct execution of the compiled binary. An optional web frontend from the upstream Colibri project can also be built and connected to the API server. The fork includes several bug fixes that were necessary to make Laguna work correctly. These fixes address issues like incorrect gate application, config parsing for per-layer head counts, a segfault related to expert cache allocation, a buffer over-read in the router bias, and a sliding window mask problem where softmax was using zero instead of a large negative number. The README lists eight specific fixes in total. Performance on Apple Silicon Macs ranges from 0.4 to 1.5 tokens per second. The expert cache hit rate falls between 50 and 90 percent depending on prompt similarity. The project is licensed under Apache 2.0, with the model weights themselves under MIT.
A modified AI engine that runs the Laguna S 2.1 large language model on Apple Silicon Macs. It lets you chat with the model or serve it via an OpenAI-compatible API.
Mainly Python. The stack also includes C, Python, Apple Silicon.
Use freely for any purpose including commercial use, as long as you keep the copyright notice. Model weights are under MIT.
Setup difficulty is rated hard, with roughly 1day+ to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.