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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tiny_torch_mirror-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 7161ad0c1fee2dec1b81e0edcd2a8d40801bb8a0136aa0a625a2da5964cdb8af
MD5 2ba7dc3f917e35a2b4102bc691e62476
BLAKE2b-256 0cf0611544c3860e6b9511f471500fbaf8431a544a02b03edf08833fd0fd8cfa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tiny_torch_mirror-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f4c6db00ec7ac596296a129d68e49d8428d8f277b9a8cc93090e87b56db49be5
MD5 8a03cef3eb64ad31b8e25e3dc84ad8a0
BLAKE2b-256 74499b2c6a8f85e3e643176d83fbd878ce0262391238c9d38966f71f2b981743

See more details on using hashes here.

Provenance

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