Skip to main content

glyd-gpu

The GPU half of Glyd: a bf16 model's weights held compressed in GPU memory, bit for bit, and multiplied from there (about a third less GPU memory), for PyTorch and transformers, and as a vLLM quantization method.

pip install "glyd[gpu]"      # glyd.from_pretrained, glyd.fit
pip install "glyd[vllm]"     # vllm serve MODEL --quantization glyd; glyd run MODEL

This package is what those two extras install: glyd[gpu] is glyd-gpu[gpu] (PyTorch, transformers, accelerate) and glyd[vllm] is glyd-gpu[vllm] (vLLM 0.30); installed on its own it needs none of them. It ships as compiled wheels for Linux with an NVIDIA GPU (Ampere or later; CUDA 12 or 13 builds of PyTorch). Import name: glyd_gpu; python -m glyd_gpu has fit, pack and verify.

The engine

glyd run starts Glyd's own engine, glyd-engine (a program in this package, beside the libraries), for a model it runs on a GPU where it is measured at least as fast as vLLM and with less memory, and where it will certainly run the model (checked before anything is downloaded), and vLLM everywhere else, as before: it is measured on no GPU yet, so until it is every model runs on vLLM. The 2026 models (Qwen3.5, Qwen3.8, Gemma 4) run on vLLM: the engine does not run them yet. glyd serve runs vLLM, which serves more users at once than the engine's 8. Where the engine does not get up (it refuses, crashes, is killed or goes silent) the command goes on with vLLM, with one line saying why. GLYD_ENGINE=0 keeps vLLM, and GLYD_ENGINE=1 asks for the engine for glyd serve. It needs only the NVIDIA driver and this package's library.

C, C++, Rust

The wheel carries the GPU libraries (libglyd_gpu_cuda12.so and libglyd_gpu_cuda13.so: they need only the NVIDIA driver, and are built with the CUDA 12 and 13 runtimes linked in) and their C header, glyd_gpu.h, in the package's directory:

python -c "import glyd_gpu, os; print(os.path.dirname(glyd_gpu.__file__))"

For a program that multiplies by the matrices of a model saved by glyd pack (or glyd.save_pretrained), or decodes them back to bf16 bit for bit, without Python: the functions the header declares take the arrays of a pack as the save names them, passed as they are, and choose how to run each product themselves. Linking: gcc prog.c -I DIR -I CUDA/include -L DIR -lglyd_gpu_cuda13 -L CUDA/lib64 -lcudart -Wl,-rpath,DIR.

License: Business Source License 1.1 (LICENSE), as all of Glyd from v0.29.0. Free forever for personal and non-commercial use (including education, research and nonprofits) on computers you own or rent for yourself, and for anyone to try, test and develop with. Commercial use needs a license: suryakoritala@getglyd.com. Each version becomes Apache-2.0 four years after its release.

Metadata

Release files for glyd-gpu 0.29.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for glyd-gpu 0.29.1
File Interpreter ABI Platform
glyd_gpu-0.29.1-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details
glyd_gpu-0.29.1-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details

Total release size: 66.4 MB

Release files / glyd_gpu-0.29.1-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL glyd_gpu-0.29.1-cp310-abi3-manylinux_2_28_x86_64.whl
Size 33.4 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
f13ae93803df3d14a2dc8782ea66a5a5087e39feb6c2215622c10b55edc99b07
BLAKE2b-256 checksum
How to use checksums
e8744b7950e9ea5ec50c09be8bca62724cc1d5210c07b6fba675c25f2763467d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / glyd_gpu-0.29.1-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL glyd_gpu-0.29.1-cp310-abi3-manylinux_2_28_aarch64.whl
Size 32.9 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
204cb66fa0f0fa994ee6f21a95aef10242d4ea33db83def323d4f81c3c3ea1ab
BLAKE2b-256 checksum
How to use checksums
d05af4b8ac475c7afc7bf712bac991903b4f57464080ec7c8b6b006d0aff6414
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page