What is this?
This repository is a proof of concept on how we can change PyTorch's package installation for the better. It should enable a path to where we can have users specify which specific accelerator they would like to use by using the following installation command(s):
[!NOTE] This doesn't work as of today this is just showcasing what this could look like if we rolled this as the default torch package.
# Based on accelerator type
pip install torch[cpu]
pip install torch[cuda]
pip install torch[rocm]
pip install torch[xpu]
# Based on accelerator version
pip install torch[cpu-cxx11-abi]
pip install torch[cuda12-4]
pip install torch[cuda12-1]
pip install torch[rocm6-2]
pip install torch[rocm6-1]
How to build
Pre-requisites:
- uv
- python3.12 (with build module installed)
Commands to run
# Build the wheel and rename to platform specific
./generate.py
Work Todo
- Create automation to build on Linux, macOS, & Windows through Github Actions
- Automate this to automatically reflect PyTorch's binary build matrix
Release files for torchpick 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| torchpick-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / torchpick-0.0.1-py3-none-any.whl
| Download URL | torchpick-0.0.1-py3-none-any.whl |
|---|---|
| Size | 1.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb4ce80ea9016c65235f53fb1c20bb1508068f603a0115596e2f28204e1917be
|
|
BLAKE2b-256 checksum How to use checksums |
e62d1325a706208f306251dff27302569e4ff603c8cabe93ae3f270f3aa946bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.6
|