Torchshard: Slicing a PyTorch Tensor Into Parallel Shards.
Project description
TorchShard is a lightweight engine for slicing a PyTorch tensor into parallel shards. It can reduce GPU memory and scale up the training when the model has massive linear layers (e.g., ViT, BERT and GPT) or huge classes (millions). It has the same API design as PyTorch.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
torchshard-0.1.0-py3-none-any.whl
(21.0 kB
view hashes)
Close
Hashes for torchshard-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c2b7f82968f9a4cf61bd557e3230b209feb19581381076ccab09c20fa17e64d |
|
MD5 | 0f347c5e8d2e6f9526bf7a1e4a56c966 |
|
BLAKE2b-256 | 50ee24b7d33845184f389fa48f117c7dcde7d0c41da32b31eaaf24b41a234fe7 |