Installation
Hint
You don’t need GPUs to build, install, and run k2.
We provide the following approaches to install k2. You can choose any of them that is appropriate for you.
Available versions of Python, CUDA, and PyTorch of different approaches are listed below:
From conda (recommended)
-
From pip (k2-fsa.org)
From pypi (pypi.org)
-
From source (for advanced users)
Reporting issues
If you encounter any errors while using k2 after installation, please create an issue on GitHub and tell us your current environment by posting the output of the following two commands:
python3 -m k2.version
python3 -m torch.utils.collect_env