Who it is forA machine learning engineer who writes Python inference code and wants smaller GPU memory use without changing the model.
The problemLoading bf16 model weights in Python takes more GPU memory than the Glyd format needs.
The outcomeA Python object holding Qwen3.5-9B loaded through Glyd, ready for the engineer's own inference code.
What you need first
- Linux (x86_64 or aarch64) with an NVIDIA GPU: Ampere, Ada, Hopper or Blackwell, driver 580 or newer
- For the Python and vLLM steps: Python with pip, and vLLM for serving
- For the codec: Homebrew or a release tarball from the Glyd releases
- A Glyd license from suryakoritala@getglyd.com if the work is commercial, since the README says commercial use needs one
Steps
- Confirm the GPU meets the README's requirements: NVIDIA Ampere, Ada, Hopper or Blackwell on Linux with driver 580 or newer.
- Run
pip install "glyd[vllm]", as shown in the README's vLLM section. - In a Python file, run
import glydand thenmodel = glyd.from_pretrained("Qwen/Qwen3.5-9B"). - Print the loaded object's type and run one short forward pass to confirm the model loads. (inferred, check the README)
Prompt for your agent
In the repo surya-koritala/Glyd, install the package with `pip install "glyd[vllm]"` and run `import glyd` followed by `model = glyd.from_pretrained("Qwen/Qwen3.5-9B")` on a machine with <GPU model>. Report any errors and the GPU memory in use after loading. Verify that the model object is created without an exception.
Caveat. The README gives Python usage only as a single line, so check the returned object's interface yourself before building on it.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for surya-koritala/Glyd and "Load a bf16 model in Python with Glyd"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer