surya-koritala/Glyd

Glyd is a fast inference engine for open LLMs with lossless GPU compression, from a laptop GPU to multi-GPU servers. One program, no Python.

What it solves

Glyd solves the problem of running large language models on hardware with limited memory. It compresses a model's weights and KV cache, losslessly or at a lossy level you choose, and plans the model to fit the GPUs, RAM, and disk you have. This lets you run open LLMs on anything from a laptop GPU to multi-GPU servers without needing to buy expensive high-memory hardware.

How it works

Glyd is written in Rust and uses its own CUDA kernels. It compresses model weights and KV cache at several levels, from lossless (penguin) to increasingly lossy levels (kestrel, swift, wren, hummingbird). The planner picks the best level that fits your hardware—if the model fits with lossless, it uses that, otherwise it chooses a lossy level that fits. For mixture-of-experts models, it can keep less-used experts at lower bit rates and even store experts in RAM or on NVMe. After fitting, it serves the model through OpenAI-, Anthropic-, and Ollama-compatible APIs, so you can use it with tools like Open WebUI, Continue, or Claude Code. Pre-packed models are available on Hugging Face, and any other model is packed locally on first use.

Who it's for

Glyd is for anyone who wants to run open LLMs on their own hardware, from individual developers with a single laptop GPU to teams with multi-GPU servers. It supports NVIDIA GPUs from the RTX 30 series up to B200, with Linux (x86_64 and aarch64) and Windows (preview). It also has beta support for multi-machine clusters and an experimental build for AMD RDNA 3/4. The tool is designed to be a single program that handles fitting, running, and serving models, with no Python required.

Highlights

  • Multiple compression levels: penguin (lossless), kestrel, swift, wren, and hummingbird (lossy, with 2–3 bits per weight on experts).
  • Automatic hardware planning: chooses the best compression level and distributes layers across GPUs, RAM, and disk.
  • Supports popular model families: Gemma, Qwen, Nemotron, Kimi, GLM, DeepSeek, and Muse Spark, with various compression levels.
  • Standard APIs: OpenAI, Anthropic, and Ollama-compatible endpoints, plus structured output and tool calling.
  • Also includes a separate file compression tool (glyd compress).

Related

  • Project
  • Project
  • Dispatch
  • Project
  • Project