Skip to main content

grtools

Core JAX/Flax training infrastructure for generative retrieval research: models (T5 seq2seq, diffusion denoisers), training loops, optimizers, callbacks (evaluation, checkpointing, monitoring), data pipeline transforms, and configs.

Contents

  • grtools.models — T5 encoder-decoder and diffusion (MDLM/BD3LM-style) backbones.
  • grtools.training — a jax.lax.scan-based training loop, sharding, EMA, samplers.
  • grtools.callbacks — periodic evaluation, checkpointing, and monitoring hooks.
  • grtools.dataloading / grtools.pipeline — tokenization, docid codecs, and document/query transform steps for building generative-retrieval datasets.
  • grtools.retrieval — grounding strategies (trie-constrained decode, Hamming-nearest snap) and retrieval evaluation metrics.
  • grtools.configs — dataclass configs (simple_parsing.SerializableMixin) composing training, optimizer, schedule, and callback settings.

Requirements

Python 3.10–3.12. JAX with CUDA extras on Linux, CPU/Metal on macOS.

Installation

pip install grtools

Metadata

Release files for grtools 2026.9.1

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

Source distribution (sdist)

Source distribution for grtools 2026.9.1
File Size Uploaded
grtools-2026.9.1.tar.gz 355.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for grtools 2026.9.1
File Interpreter ABI Platform
grtools-2026.9.1-py3-none-any.whl Python 3 none any Details

Total release size: 793.5 kB

Release files / grtools-2026.9.1.tar.gz

Download URL grtools-2026.9.1.tar.gz
Size 355.7 kB
Tags Source
SHA-256 checksum
How to use checksums
000e3e741529e802496a3d54343d342dce3bd95b267a768963b354019cfb54ac
BLAKE2b-256 checksum
How to use checksums
c7509f6835c9cd7cde8ca7e774b6f007061340a9358543d03a5bf14e1f5ed755
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 23, 2026.

Transparency log

Release files / grtools-2026.9.1-py3-none-any.whl

Download URL grtools-2026.9.1-py3-none-any.whl
Size 437.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
850907c7b940afed8101b2499d8055b89f865025879af3a8fcac95bc6b534cac
BLAKE2b-256 checksum
How to use checksums
ff8205357e16b397591a704e6637a97249b28182a2fd054c8b358ba9daf1e10b
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 23, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2026.9.1 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