A minimal PyTorch mirror for private remote servers with no network access.
pip install tiny-torch-mirror-
Create a config file
tiny-torch-mirror config
-
Edit the config file
Set themirror_rootto your private mirror root directory. -
Install this package on your private server.
# on your private server pip install tiny-torch-mirror -
Run the sync command locally.
tiny-torch-mirror sync
Start the mirror server:
tiny-torch-mirror serve --path <path to your private mirror> --port 8081Install packages from the mirror:
To install torch and torchvision with CUDA 11.8:
pip install torch torchvision --index-url http://localhost:8081/whl/cu118