DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to load a bf16 model in Python with Glyd

Use glyd.from_pretrained to load Qwen3.5-9B from a Python script.

Short answer: Confirm the GPU meets the README's requirements: NVIDIA Ampere, Ada, Hopper or Blackwell on Linux with driver 580 or newer; then run pip install "glyd[vllm]", as shown in the README's vLLM section; in a Python file, run import glyd and then model = glyd.from_pretrained("Qwen/Qwen3.5-9B"). All steps.

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

  1. Confirm the GPU meets the README's requirements: NVIDIA Ampere, Ada, Hopper or Blackwell on Linux with driver 580 or newer.
  2. Run pip install "glyd[vllm]", as shown in the README's vLLM section.
  3. In a Python file, run import glyd and then model = glyd.from_pretrained("Qwen/Qwen3.5-9B").
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer