Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

About this guide

What Glyd does

Glyd compresses an LLM and runs it. It packs the weights and the KV cache losslessly and decodes them inside the GPU kernels, so a model that does not fit your GPU in bf16 often fits and answers exactly as before. When lossless is not enough there are lossy levels, experts kept in RAM, and more GPUs. It is one program written in Rust, from the compressed file to the tokens, with an OpenAI and Anthropic compatible server and a chat page.

Features

  • Lossless weights and KV cache, bit for bit, decoded in the kernels.
  • Four lossy levels (kestrel, swift, wren, hummingbird) for when a model still does not fit.
  • Mixture-of-experts models with their experts in RAM or on the SSD.
  • One model across the GPUs of a machine, and across machines with Starlings (beta).
  • A server for the OpenAI and Anthropic APIs, with tools and constrained JSON, and a chat page.
  • fit: the plan for your GPU before anything is downloaded.

How it works

  1. You name a model: gemma4:12b, google/gemma-4-12B-it, or a path.
  2. fit reads the model's config and plans a level, where the weights go and how much context fits.
  3. On the first run Glyd downloads the model, packs it for your GPU and builds the KV tables.
  4. The kernels read the packed weights and decode them as they compute. Nothing is unpacked into memory first.
  5. run gives a chat in the terminal and at http://localhost:8000. serve gives the same server for programs.

The design is in docs/architecture.md.

How to use it

Install, then first run: a few commands. Choosing a level when the model does not fit. Serving and connecting tools to use it from other programs.

What runs today

  • NVIDIA Ampere or newer (RTX 30 series and up, A10, A100, L4, L40S, H100), Linux x86_64, driver 580 or newer.
  • The families are on the Models page, generated from the code.
  • A 180B mixture of experts on one 12-16 GB GPU: Condor.

Not yet: Windows, macOS, aarch64 and CPU-only engines. AMD is a development build.

Pages

  1. Install
  2. First run
  3. Choosing a level
  4. Serving and the APIs
  5. Connecting tools
  6. Several GPUs and Starlings
  7. Condor
  8. Troubleshooting, by what glyd doctor prints
  9. API reference and the background service, generated from docs/serve-api.md and docs/service.md
  10. Models, generated from glyd-engine/src/support.rs
  11. The model catalog
  12. Checking a machine: the M1 gate, step by step

The command is glyd

Since v0.33.0 glyd is one program with the engine linked in: run, serve, pull, ls, rm, service, ps, stop, fit, doctor, login, connect, supports, preflight and the rest. glyd-engine is a link to it that keeps the engine's older command line. File compression is the same program: glyd FILE -o FILE.glyd.

Benchmarks

This guide has no benchmark tables. Every measurement, with its machine, build and log, is in benchmarks/.

Versions

This guide at /guide/ follows main. Each release tag that has the guide also gets its own copy at /guide/vX.Y.Z/, built from that tag's text.

Supporting Glyd

Glyd is open source under Apache-2.0. GitHub Sponsors pays for the GPUs it is measured and tested on.