Skip to main content

A minimalistic PyTorch mirror for educational purposes.

Project description

Tiny Torch Mirror

A minimal PyTorch mirror for private remote servers with no network access.

Installation

pip install tiny-torch-mirror

Usage

Sync to Private Repository from PyTorch Index

  1. Create a config file

    tiny-torch-mirror config
    
  2. Edit the config file
    Set the mirror_root to your private mirror root directory.

  3. Install this package on your private server.

    # on your private server
    pip install tiny-torch-mirror
    
  4. Run the sync command locally.

    tiny-torch-mirror sync
    

Use the Private Mirror

Start the mirror server:

tiny-torch-mirror serve --path <path to your private mirror> --port 8081

Install packages from the mirror:

To install torch and torchvision with CUDA 11.8:

pip install torch torchvision --index-url http://localhost:8081/whl/cu118

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

tiny_torch_mirror-0.1.1.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

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

tiny_torch_mirror-0.1.1-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file tiny_torch_mirror-0.1.1.tar.gz.

File metadata

  • Download URL: tiny_torch_mirror-0.1.1.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tiny_torch_mirror-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6edf9b94796ce7e380c6634d90e87a28a2204bfd387f4f05de20aa92eb3a5034
MD5 b9a7fe3eb35f51f56ae06581d61f4edf
BLAKE2b-256 f1c1d9a8225d52892affa905c1b33a9d815ee3548c7b8ad96884931b2cbd12d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for tiny_torch_mirror-0.1.1.tar.gz:

Publisher: release.yml on luocfprime/tiny-torch-mirror

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tiny_torch_mirror-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tiny_torch_mirror-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2948e4ab1c05473e7c88e7ff33263725b8486ce0ce61f29f284ec727fe67ce56
MD5 0a17a40df50c8054ecc1a7d9fca70598
BLAKE2b-256 c0c0518bc99fb4eebea4f9620fba5253f6b504ca3aebd3f67531fa8fbd7cca37

See more details on using hashes here.

Provenance

The following attestation bundles were made for tiny_torch_mirror-0.1.1-py3-none-any.whl:

Publisher: release.yml on luocfprime/tiny-torch-mirror

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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