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.0.tar.gz (17.7 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.0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tiny_torch_mirror-0.1.0.tar.gz
  • Upload date:
  • Size: 17.7 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.0.tar.gz
Algorithm Hash digest
SHA256 93d834410d964b409800871848aa271e36ea94d90119e697be99369397979e15
MD5 268075b8742f71d6b246ea185b6cb0dc
BLAKE2b-256 b36c33380b161f97a248d82b26a6f371464668320c4e872751bb7d40eec42476

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tiny_torch_mirror-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d102f8607a6d070cb516f036831c1cbc2396c4c006e6ca72521873791eb3c15
MD5 5c28bf9ca7b4daa67471f130312e372a
BLAKE2b-256 f4ba52ce0a22b06213494846a4224f5a451af29ca9a4f0c1ace79bb14a6981c6

See more details on using hashes here.

Provenance

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