opentensor / bittensor-subnet-template

Template Design for a Bittensor subnetwork
MIT License
65 stars 112 forks source link

Update: Remove pytorch & replace it with numpy #85

Closed synthpolis closed 3 months ago

synthpolis commented 4 months ago

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).

gus-opentensor commented 4 months ago

@synthpolis thank you for the submitting, once we have numpy into bittensor we will re-review this.