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
- You name a model:
gemma4:12b,google/gemma-4-12B-it, or a path. fitreads the model's config and plans a level, where the weights go and how much context fits.- On the first run Glyd downloads the model, packs it for your GPU and builds the KV tables.
- The kernels read the packed weights and decode them as they compute. Nothing is unpacked into memory first.
rungives a chat in the terminal and athttp://localhost:8000.servegives 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
- Install
- First run
- Choosing a level
- Serving and the APIs
- Connecting tools
- Several GPUs and Starlings
- Condor
- Troubleshooting, by what
glyd doctorprints - API reference and the background service, generated from
docs/serve-api.mdanddocs/service.md - Models, generated from
glyd-engine/src/support.rs - The model catalog
- 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.