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 -h
usage: torchinstall [-h] [--pytorch [PYTORCH]] [--pyg] [--pyg-lib-source]
                    [--compute-platform {+,cu102,cu111,cu113,cu116,cu117,cu118,cu121,rocm4.0.1,rocm4.1,rocm4.2,rocm4.5.2,rocm5.1.1,rocm5.2,rocm5.4.2,rocm5.6,rocm5.7}]
                    [--lightning] [--use {pip,conda,mamba}] [-install] [--sync]

options:
  -h, --help            show this help message and exit
  --pytorch [PYTORCH], -pt [PYTORCH]
                        Flag to install pytorch, can optionally specify a desired version. Must be full
                        semantic version, e.g. 1.13.1, not 1.13, defaults to `latest`
  --pyg, -pyg           Flag to install pytorch-geometric
  --pyg-lib-source, -pyg-src
                        Flag to install PyG from source. i.e. PyG doesn't support wheels for M1/M2 macs.
                        They recommend installing from source
  --compute-platform {+,cu102,cu111,cu113,cu116,cu117,cu118,cu121,rocm4.0.1,rocm4.1,rocm4.2,rocm4.5.2,rocm5.1.1,rocm5.2,rocm5.4.2,rocm5.6,rocm5.7}, -c {+,cu102,cu111,cu113,cu116,cu117,cu118,cu121,rocm4.0.1,rocm4.1,rocm4.2,rocm4.5.2,rocm5.1.1,rocm5.2,rocm5.4.2,rocm5.6,rocm5.7}
                        Manually specify platform version (cuda or rocm) instead ofauto-detect (useful
                        for cluster installations).
  --lightning, -l       Flag to install lightning (lightning.ai)
  --use {pip,conda,mamba}, -u {pip,conda,mamba}
                        set command to install with.
  -install, -i          Run installation (default is to dry run commands)
  --sync, -s            update installation commands by parsing the pytorch website

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.8.10.tar.gz (43.1 kB view details)

Uploaded Source

Built Distribution

torchinstaller-0.8.10-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: torchinstaller-0.8.10.tar.gz
  • Upload date:
  • Size: 43.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for torchinstaller-0.8.10.tar.gz
Algorithm Hash digest
SHA256 70aca05f406cd9d5b6527fe7649b50c6236bba147f4d0b50f3986cf4829fb35c
MD5 fc7ce2a3845faacc9371d6ec2bcddb0d
BLAKE2b-256 32f9f8bf84a065a8642f3c04e40a4275369e8ed604482907a8b77b5a9645aa8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torchinstaller-0.8.10-py3-none-any.whl
Algorithm Hash digest
SHA256 2c005a96ed0db84bc8db2e033b4e0e415a792cd22d01fb2e4ef83ea357e0ce74
MD5 0c41953acf8d644f01f704e793cc0f4d
BLAKE2b-256 f731fc07d532d74b0025732db83dce36ebe99bcf51029599dc448e8826b9429f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page