Skip to main content

Simple utility to install pytorch, pytorch-geometric and pytorch-lightning. Detects CUDA version automatically.

Project description

icon

torchinstaller

Installing PyTorch has never been easier

PYPI Version Licence

torchinstaller is a super simple helper to install PyTorch stuff without having to check cuda versions and go to websites for the installer URLs. It installs PyTorch components based on requested or detected CUDA version, and doesn't check python versions.

Only Linux and macOS supported

It detects what cuda version is available and runs the pip command to install latest PyTorch and compatible cuda version

Installation

pip install torchinstaller

Usage

$ torchinstall --help

 Usage: torchinstall [OPTIONS] COMMAND [ARGS]...

╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion          Install completion for the current shell.                                            │
│ --show-completion             Show completion for the current shell, to copy it or customize the installation.     │
│ --help                        Show this message and exit.                                                          │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ─────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ platforms        List available compute platforms                                                                  │
│ install          Install PyTorch and related libraries                                                             │
│ sync             Update installation commands by parsing the pytorch website                                       │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

List the platforms that have been synced via torchinstall sync

$ torchinstall platforms
Available Compute Platforms:
 - cu102
 - cu111
 - cu113
 - cu116
 - cu117
 - cu118
 - cu121
 - cu124
 - cu126
 - cu128
 - rocm4.0.1
 - rocm4.1
 - rocm4.2
 - rocm4.5.2
 - rocm5.1.1
 - rocm5.2
 - rocm5.4.2
 - rocm5.6
 - rocm5.7
 - rocm6.0
 - rocm6.1
 - rocm6.2
 - rocm6.2.4
 - rocm6.3

Note: pytorch-geometric can be problematic to install. Installing from source has been added to facilitate installation, but referring to their documentation may be necessary to address errors if they occur.

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

torchinstaller-0.9.1.tar.gz (58.1 kB view details)

Uploaded Source

Built Distribution

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

torchinstaller-0.9.1-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

Details for the file torchinstaller-0.9.1.tar.gz.

File metadata

  • Download URL: torchinstaller-0.9.1.tar.gz
  • Upload date:
  • Size: 58.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.0

File hashes

Hashes for torchinstaller-0.9.1.tar.gz
Algorithm Hash digest
SHA256 a6c1c017e2cd6f0a18fd3c91b35e0e5304a2592915e6eac8fe59cd854d182061
MD5 29cfe82b594822d640692f03a6bc0b2f
BLAKE2b-256 2a85bb5718f3edc17dc594286f86f6f08dd523269ec2de12f18b36916fa8eaed

See more details on using hashes here.

File details

Details for the file torchinstaller-0.9.1-py3-none-any.whl.

File metadata

File hashes

Hashes for torchinstaller-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 14ce7d99e19926d76f0b40ae2f836ca2fe038a3171e1b9deebaef6f09675127e
MD5 f0935307287657b14e610d8658e603fa
BLAKE2b-256 83dacef4f4993d5bb2a88aac705336c589b6c09465f79272b4bade7c7ba07afc

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