Install

Latest release

Install the package with pip:

$ pip install fastabx

fastabx requires Python 3.12 or later, and PyTorch 2.8.0 [1] (with CUDA 12.8 on Linux). The pinned PyTorch version is the default one on PyPI. Wheels compatible with other versions and variants of PyTorch are available on the GitHub Releases page.

fastabx is available on Linux x86-64 (with glibc 2.34 or later [2]), macOS arm64, and Windows x86-64.

Build from source

To build a wheel:

  1. Clone the repository:

$ git clone https://github.com/bootphon/fastabx.git
$ cd fastabx
  1. Run the following command to build a wheel with uv:

$ uv build --wheel

Note

On Linux and macOS, make sure to have CXX=g++. If you want to build with CUDA support, you must have the CUDA toolkit installed and set the CUDA_HOME environment variable. If you are on a cluster with a module system, you can probably load the cuda/12.4 module.

Footnotes