explaingit

ozymand1as/guppy

Analysis updated 2026-07-25

0PythonAudience · researcherComplexity · 5/5LicenseSetup · hard

TLDR

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.

Mindmap

mindmap
  root((repo))
    What it does
      Runs Laguna model
      Chat and API server
      Quantized to int4
    Tech stack
      C engine
      Python scripts
      Apple Silicon
    Use cases
      Local chat interface
      API server
      Custom AI apps
    Performance
      0.4 to 1.5 tokens/sec
      Expert cache 50-90 percent
      20 GB RAM usage
    Audience
      AI researchers
      Local model runners

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run the Laguna S 2.1 language model locally on a Mac for private chat.

USE CASE 2

Serve the model through an OpenAI-compatible API for your own apps.

USE CASE 3

Connect an optional web frontend to the API server for a browser chat UI.

What is it built with?

CPythonApple Silicon

How does it compare?

ozymand1as/guppy0xallam/my-recipe0xhassaan/nn-from-scratch
Stars00
LanguagePythonPythonPython
Last pushed2022-11-22
MaintenanceDormant
Setup difficultyhardmoderatemoderate
Complexity5/52/54/5
Audienceresearchergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1day+

Requires compiling a C engine, converting large model weights with Python scripts, and a Mac with ample RAM and disk space.

Use freely for any purpose including commercial use, as long as you keep the copyright notice. Model weights are under MIT.

In plain English

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.

Copy-paste prompts

Prompt 1
How do I convert the Laguna S 2.1 model weights to int4 format using the provided Python script in this repo?
Prompt 2
What are the steps to compile the C engine and launch the Laguna model with the chat script?
Prompt 3
How do I start the OpenAI-compatible API server for this model and what endpoints does it expose?
Prompt 4
What are the hardware requirements to run this model on Apple Silicon and what performance should I expect?

Frequently asked questions

What is guppy?

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.

What language is guppy written in?

Mainly Python. The stack also includes C, Python, Apple Silicon.

What license does guppy use?

Use freely for any purpose including commercial use, as long as you keep the copyright notice. Model weights are under MIT.

How hard is guppy to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is guppy for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.