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.3.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.3-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tiny_torch_mirror-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 935537529f21ab1e3326901cdad67a95c4839f4f0c17bd3fbdd4d4c2e6a6f4e2
MD5 27d865200311e3c70eadeed2fbb30c10
BLAKE2b-256 1c0cfbd0cc82d576f76083d4d28fed9da81476aaa754bf41b08489a4a8202564

See more details on using hashes here.

Provenance

The following attestation bundles were made for tiny_torch_mirror-0.1.3.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.3-py3-none-any.whl.

File metadata

File hashes

Hashes for tiny_torch_mirror-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8c3bea3b9a5b1c462a44533860b2cc53d71af301facf3010f1282c18c079aad8
MD5 6278706b1466138eb97c6f9f50c70380
BLAKE2b-256 b3862af98f3192643fc69e03a2545fa53b15c595f36d65d6f96e0b30910fa5cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for tiny_torch_mirror-0.1.3-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