Skip to main content

Discretax - State Space Models in JAX

Discretax logo

pre-commit tests license uvJAX PyPI version Discord

discretax is a collection of state space models implemented in JAX. It is

  • easy to use
  • fast
  • modular

Table of contents

News

  • [2026-03]: After a big refactor, we are renaming the project from linax to discretax.
  • [2025-10]: We are happy to launch the first beta version of linax. 🎉

Just get me Going

If you don't care about the details, we provide example notebooks that are ready to use.

Join the Community

To join our growing community of JAX and state space model enthusiasts, join our Discord server. Feel free to write us a message (either there or to our personal email, see the bottom of this page) if you have any questions, comments, or just want to say hi!

🤫 Psssst! Rumor has it we are also developing an end-to-end JAX training pipeline. Stay tuned for JAX Lightning. So join the discord server to be the first to hear about our newest project(s)!

Installation

discretax is available as a PyPI package. To install it via uv, just run

uv add discretax

or

uv add discretax[cu12]

If pip is your package manager of choice, run

pip install discretax

or

pip install discretax[cu12]

Full Library Installation

If you want to install the full library, especially if you want to contribute to the project, clone the discretax repository and cd into it

git clone https://github.com/camail-official/discretax.git
cd discretax

If you want to install dependencies for CPU, run

uv sync

for GPU run

uv sync --extra cu12

To include development tooling (pre-commit, Ruff), install:

uv sync --extra dev

After installing the development dependencies (activate your environment if needed), enable the git hooks:

pre-commit install

Supported Models

Year Model Paper Code Our implementation
2024 DeltaNet Parallelizing Linear Transformers with the Delta Rule sustcsonglin/flash-linear-attention discretax
2024 LinOSS Oscillatory State Space Models tk-rusch/linoss discretax
2023 LRU Resurrecting Recurrent Neural Networks for Long Sequences LRU paper discretax
2022 S5 Simplified State Space Layers for Sequence Modeling lindermanlab/S5 discretax
2022 S4D On the Parameterization and Initialization of Diagonal State Space Models state-spaces/s4 discretax

Contributing

If you want to contribute to the project, please check out contributing

Core Contributors

This repository has been created and is maintained by:

This work has been carried out within the Computational Applied Mathematics & AI Lab, led by T. Konstantin Rusch.

Citation

If you find this repository useful, please consider citing it.

@software{discretax2025,
  title  = {Discretax: A Lightweight Collection of State Space Models in JAX},
  author = {Nazari, Philipp* and Ruscio, Francesco Maria* and Armstrong, Benedict and Rusch, T. Konstantin},
  url    = {https://github.com/camail-official/discretax},
  year   = {2025}
}

Metadata

Release files for discretax 0.3.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 discretax 0.3.0
File Size Uploaded Provenance Actions
discretax-0.3.0.tar.gz 368.2 kB Without provenance Details for discretax-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 413.9 kB

Release files / discretax-0.3.0.tar.gz

Download URL discretax-0.3.0.tar.gz
Size 368.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cf660fdad9cf79d04f5b8838c30807176a9fad544c9a0e4ecefb96d75732693a
BLAKE2b-256 checksum
How to use checksums
c0ecaad785909c4034aae084109840ce74d5b2a2e389a016f8cb6778a58d9a78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / discretax-0.3.0-py3-none-any.whl

Download URL discretax-0.3.0-py3-none-any.whl
Size 45.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18fadcb8af422d15eb681a4a7bc5f83f3f8b825db6321db8d93966b68d9a54de
BLAKE2b-256 checksum
How to use checksums
5c793b498e14a1e3a0ee420dedeef7035d6082da5b68e427ecdf6a445cc866f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for discretax 0.3.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files No provenance

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