Skip to content
/ cubit Public
forked from opentensor/cubit

A Cython library to solve the Bittensor registration POW on CUDA

License

Notifications You must be signed in to change notification settings

0xluk/cubit

 
 

Repository files navigation

cubit

A python package to register on the bittensor network using a CUDA device.

Requirements

  • Ubuntu 20.04 or higher
  • bittensor>=3.0.0
  • sm_86 enabled CUDA GPU (30XX series, Axxxx series or higher)

Install

Using the wheel for your version of python (3.6, 3.7, etc.) from releases

For Python 3.6

pip install https://github.com/opentensor/cubit/releases/download/v1.1.1/cubit-1.1.1-cp36-cp36m-linux_x86_64.whl

For Python 3.7

pip install https://github.com/opentensor/cubit/releases/download/v1.1.1/cubit-1.1.1-cp37-cp37m-linux_x86_64.whl

For Python 3.8

pip install https://github.com/opentensor/cubit/releases/download/v1.1.1/cubit-1.1.1-cp38-cp38-linux_x86_64.whl

For Python 3.9

pip install https://github.com/opentensor/cubit/releases/download/v1.1.1/cubit-1.1.1-cp39-cp39-linux_x86_64.whl

Install testing dependencies

Install test extras from wheel For Python 3.6

pip install https://github.com/opentensor/cubit/releases/download/v1.1.1/cubit-1.1.1-cp36-cp36m-linux_x86_64.whl[test]

For Python 3.7

pip install https://github.com/opentensor/cubit/releases/download/v1.1.1/cubit-1.1.1-cp37-cp37m-linux_x86_64.whl[test]

For Python 3.8

pip install https://github.com/opentensor/cubit/releases/download/v1.1.1/cubit-1.1.1-cp38-cp38-linux_x86_64.whl[test]

For Python 3.9

pip install https://github.com/opentensor/cubit/releases/download/v1.1.1/cubit-1.1.1-cp39-cp39-linux_x86_64.whl[test]

From source

Requirements

You can check if you have cuda-toolkit with

nvcc --version

Clone repo

git clone https://github.com/opentensor/cubit.git

Enter dir

cd cubit/

Install as editable

pip install -e .

Install testing dependencies

Install test extras as editable

pip install -e .[test]

Unit Testing

Testing uses unittest as there is an issue with pytest and Cython compatability

python3 -m unittest test.py

Acknowledgments

https://github.com/rmcgibbo/npcuda-example/
https://github.com/mochimodev/cuda-hashing-algos/
https://github.com/camfairchild/bittensor_register_cuda/

About

A Cython library to solve the Bittensor registration POW on CUDA

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Cuda 55.4%
  • Python 26.7%
  • Cython 11.0%
  • C++ 6.4%
  • Dockerfile 0.5%