Install k2 package
Project description
install-k2
A simple utility to automatically install the correct k2 wheel for your platform and environment.
Installation
pip install install-k2
Usage
After installation, you can run the installer using either command:
# Using hyphen (recommended)
install-k2
# Or using underscore
install_k2
Options
--dry-run: Show what would be installed without making changes
install-k2 --dry-run
What It Does
The installer automatically:
- Detects your operating system (Linux, macOS, Windows)
- Identifies your Python version
- Detects CUDA version (if available on Linux)
- Finds the appropriate PyTorch version
- Downloads and installs the compatible k2 wheel from official sources
Supported Platforms
- Linux: CPU and CUDA wheels
- macOS: CPU wheels (Intel and Apple Silicon)
- Windows: CPU wheels
Wheel Sources
The installer fetches wheels from official k2 repositories:
- Linux CUDA: https://k2-fsa.github.io/k2/installation/pre-compiled-cuda-wheels-linux/
- macOS CPU: https://k2-fsa.github.io/k2/installation/pre-compiled-cpu-wheels-macos/
- Windows CPU: https://k2-fsa.github.io/k2/installation/pre-compiled-cpu-wheels-windows/
Requirements
- Python 3.9 or higher
- PyTorch (automatically detected)
License
Apache License 2.0
Author
The Lattifai Development Team
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
install_k2-0.0.6.tar.gz
(9.6 kB
view details)
File details
Details for the file install_k2-0.0.6.tar.gz.
File metadata
- Download URL: install_k2-0.0.6.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d898ad58bba14aeaf17fd191156561e333d74aa7fec9cbe4cd1d6fe3fa3878f1
|
|
| MD5 |
ae09a631cb90cab01f3fe8c7c748e4de
|
|
| BLAKE2b-256 |
e45e57bb33a3322ebdb8253ed1aa17d887083285a67b76490a4b3c724749e889
|
Provenance
The following attestation bundles were made for install_k2-0.0.6.tar.gz:
Publisher:
publish-wheels.yml on lattifai/install-k2
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
install_k2-0.0.6.tar.gz -
Subject digest:
d898ad58bba14aeaf17fd191156561e333d74aa7fec9cbe4cd1d6fe3fa3878f1 - Sigstore transparency entry: 660284185
- Sigstore integration time:
-
Permalink:
lattifai/install-k2@a238533ee2d253690972d7b95501dfe9672e05ca -
Branch / Tag:
refs/heads/main - Owner: https://github.com/lattifai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-wheels.yml@a238533ee2d253690972d7b95501dfe9672e05ca -
Trigger Event:
workflow_dispatch
-
Statement type: