Skip to main content

Linax - State Space Models in JAX

Linax Banner

pre-commit tests license uvJAX PyPI version Discord

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

  • easy to use
  • lightning-fast
  • highly modular
  • easily accessible.

Table of contents

News

  • [2025-10]: We are happy to officially launch the first 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

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

uv add linax

or

uv add linax[cu12]

If pip is your package manager of choice, run

pip install linax

or

pip install linax[cu12]

Full Library Installation

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

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

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 LinOSS Oscillatory State Space Models tk-rusch/linoss linax
2023 LRU Resurrecting Recurrent Neural Networks for Long Sequences LRU paper linax
2022 S5 Simplified State Space Layers for Sequence Modeling lindermanlab/S5 linax
2022 S4D On the Parameterization and Initialization of Diagonal State Space Models state-spaces/s4 linax

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{linax2025,
  title  = {Linax: A Lightweight Collection of State Space Models in JAX},
  author = {Armstrong, Benedict and Nazari, Philipp and Ruscio, Francesco Maria},
  url    = {https://github.com/camail-official/linax},
  year   = {2025}
}

Metadata

Release files for linax 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 linax 0.1.0
File Size Uploaded Provenance Actions
linax-0.1.0.tar.gz 230.9 kB Without provenance Details for linax-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 271.5 kB

Release files / linax-0.1.0.tar.gz

Download URL linax-0.1.0.tar.gz
Size 230.9 kB
Tags Source
SHA-256 checksum
How to use checksums
36ad5a696340e939069ede383b0770d2ec31a1aec53b9d717179a2923e37a682
BLAKE2b-256 checksum
How to use checksums
c815f2764f8913566b45e36ee326f2b9fbcf02d3f30cf764f135c92038bcedaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.5

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

Download URL linax-0.1.0-py3-none-any.whl
Size 40.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6843c282db845ebeb7b1cef4f4f2b10289fe199928cc4dd53203661574b5b77f
BLAKE2b-256 checksum
How to use checksums
1bbbcca747ea52a4e8ce1bc184c3b53a24b25a0b920d6b1f22d87d2380df1c5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.5

Security for linax 0.1.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.1.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