Skip to main content

eqx-zoo: verified Equinox ports of pretrained models

CI PyPI License: Apache-2.0 Python 3.12+ Built with Equinox

eqx-zoo provides pretrained models as plain Equinox modules, loaded straight from Hugging Face checkpoints and numerically verified against the reference implementation in 🤗 Transformers.

Every model is an ordinary pytree, so jax.jit, jax.grad, jax.vmap and the rest of the JAX ecosystem work on it directly.

Installation

pip install eqx-zoo

Requires Python 3.12+. The example below also uses pip install tokenizers.

Quick example

import jax.numpy as jnp
from tokenizers import Tokenizer

from eqx_zoo import CausalLM, generate

tokenizer = Tokenizer.from_pretrained("Qwen/Qwen3-0.6B")
model = CausalLM.from_pretrained("Qwen/Qwen3-0.6B")

prompt = jnp.array(tokenizer.encode("The capital of France is").ids)
tokens = generate(model, prompt, max_new_tokens=30)
print(tokenizer.decode(tokens.tolist()))
# Paris. The capital of Italy is Rome. The capital of Spain is Madrid. ...

Models

Any checkpoint with a supported architecture loads with CausalLM.from_pretrained. These checkpoints are verified by the test suite:

Architecture Verified checkpoints
LlamaForCausalLM SmolLM2-135M, Llama 3.2 1B
Qwen3ForCausalLM Qwen3-0.6B
Qwen2ForCausalLM Qwen2.5-0.5B

Each verified checkpoint is tested against Hugging Face activations captured in float32: every layer's output must match, and greedy generation must reproduce the reference output token for token. See tests/.

Development

git clone https://github.com/xquantize/eqx-zoo && cd eqx-zoo
uv sync
uv run python scripts/make_reference.py   # capture reference activations
uv run pytest

Contributions are welcome. AGENTS.md describes the conventions every model follows.

See also

License

Apache 2.0. Pretrained weights are distributed by their original authors under their own licenses.

Metadata

Release files for eqx-zoo 0.1.0

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

Source distribution (sdist)

Source distribution for eqx-zoo 0.1.0
File Size Uploaded
eqx_zoo-0.1.0.tar.gz 16.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for eqx-zoo 0.1.0
File Interpreter ABI Platform
eqx_zoo-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 34.7 kB

Release files / eqx_zoo-0.1.0.tar.gz

Download URL eqx_zoo-0.1.0.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2bbb143d428f6dddde531ac5c3383212f1c46042315635681e7d1b7e48074706
BLAKE2b-256 checksum
How to use checksums
ec7bffed0ed6e4011a309ee307ade022764b9401bb0ab70f7876d469a37899b1
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 Sep 30, 2026.

Transparency log

Release files / eqx_zoo-0.1.0-py3-none-any.whl

Download URL eqx_zoo-0.1.0-py3-none-any.whl
Size 18.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37f97c9f29001e7d4084130e5667e634b1e6a8c6ed9c864b6bb965f48f6bc4a8
BLAKE2b-256 checksum
How to use checksums
e07441757ba936f44d1b4f33adda99a0224b736eb2916f0a753fc06e274356aa
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 Sep 30, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

This release

0.1.0 This release

2 release files

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