Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: Remove pytorch & replace it with numpy #85

Merged

Conversation

synthpolis
Copy link
Contributor

@synthpolis synthpolis commented Apr 18, 2024

Description

Replace torch with numpy in the subnet template.

Related Issue(s) / PRs

Bittensor: opentensor/bittensor#1786

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • 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

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • 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).

@gus-opentensor
Copy link
Collaborator

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

@gus-opentensor gus-opentensor merged commit 91269fe into opentensor:main Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants