Skip to main content

State Space Models in Jax

Project description

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}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

linax-0.1.0.tar.gz (230.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

linax-0.1.0-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

File details

Details for the file linax-0.1.0.tar.gz.

File metadata

  • Download URL: linax-0.1.0.tar.gz
  • Upload date:
  • Size: 230.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.5

File hashes

Hashes for linax-0.1.0.tar.gz
Algorithm Hash digest
SHA256 36ad5a696340e939069ede383b0770d2ec31a1aec53b9d717179a2923e37a682
MD5 6d385d426db061a6330d304c880328c2
BLAKE2b-256 c815f2764f8913566b45e36ee326f2b9fbcf02d3f30cf764f135c92038bcedaf

See more details on using hashes here.

File details

Details for the file linax-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: linax-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 40.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.5

File hashes

Hashes for linax-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6843c282db845ebeb7b1cef4f4f2b10289fe199928cc4dd53203661574b5b77f
MD5 2962880788d2a61d8dd7b6bf90f557c3
BLAKE2b-256 1bbbcca747ea52a4e8ce1bc184c3b53a24b25a0b920d6b1f22d87d2380df1c5c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page