You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replaced torch with numpy through the codebase, except places where torch is needed.
By default pip install bittensor will not install torch.
Torch is now an optional dependency which can be installed alongside bittensor by specifying the [torch] extra flag.
Quantitative Performance Benefits
pip install bittensor[torch] (with cuda) takes up 5.5GB, while pip install bittensor (numpy only) takes up 680M and it's faster (for instance from 62s to 24s on my machine with all wheels cached)
Caveats
Commands which require torch will print an error message prompting the user to install torch if the package is missing.
CLI users upgrading bittensor and having torch available should not be affected - all commands will work the same.
Users installing bittensor from scratch and attempting to register will need the torch package. btcli s pow_register and btcli w faucet commands will explicitly prompt the user to install torch.
Library users would have to deal with the changes from torch to numpy (primary affecting the metagraph data). The migration is straightforward, see common replacements:
#1777
Description of the Change
Replaced torch with numpy through the codebase, except places where torch is needed.
By default
pip install bittensor
will not install torch.Torch is now an optional dependency which can be installed alongside bittensor by specifying the
[torch]
extra flag.Quantitative Performance Benefits
pip install bittensor[torch]
(with cuda) takes up 5.5GB, whilepip install bittensor
(numpy only) takes up 680M and it's faster (for instance from 62s to 24s on my machine with all wheels cached)Caveats
Commands which require torch will print an error message prompting the user to install torch if the package is missing.
CLI users upgrading bittensor and having torch available should not be affected - all commands will work the same.
Users installing bittensor from scratch and attempting to register will need the torch package.
btcli s pow_register
andbtcli w faucet
commands will explicitly prompt the user to install torch.Library users would have to deal with the changes from torch to numpy (primary affecting the metagraph data). The migration is straightforward, see common replacements:
Verification Process
Installed it with and without [torch] in fresh venvs and manually tested btcli commands.
Tested on compute horde staging miner and validator.
Applicable Issues
Release Notes
pip install bittensor
will not install torch by default - this can be done withpip install bittensor[torch]
btcli s pow_register
andbtcli w faucet
commands will fail if torch is not installed.The text was updated successfully, but these errors were encountered: