[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
[ ] Other (please describe):
Breaking Change
N/A
Checklist
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
Screenshots (if applicable)
N/A
Additional Notes
Though the code removes the need for torch installation specially for the subnet template, the user will still need to install torch for the core bittensor module. However, once the above mentioned PR is pulled in, some functionality — namely template/base/utils — can be offloaded to the core module (A TODO for the same is available at template/base/utils/weight_utils.py).
Description
Replace torch with numpy in the subnet template.
Related Issue(s) / PRs
Bittensor: https://github.com/opentensor/bittensor/pull/1786
Type of Change
Breaking Change
N/A
Checklist
Screenshots (if applicable)
N/A
Additional Notes
Though the code removes the need for torch installation specially for the subnet template, the user will still need to install torch for the core bittensor module. However, once the above mentioned PR is pulled in, some functionality — namely template/base/utils — can be offloaded to the core module (A TODO for the same is available at template/base/utils/weight_utils.py).