{"id":20324141,"url":"https://github.com/opentensor/cubit","last_synced_at":"2025-04-11T19:41:01.386Z","repository":{"id":58813926,"uuid":"493323571","full_name":"opentensor/cubit","owner":"opentensor","description":"A Cython library to solve the Bittensor registration POW on CUDA","archived":false,"fork":false,"pushed_at":"2024-01-11T16:59:59.000Z","size":123,"stargazers_count":11,"open_issues_count":1,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-25T15:34:44.175Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Cuda","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opentensor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-17T16:06:22.000Z","updated_at":"2024-08-13T07:01:14.000Z","dependencies_parsed_at":"2024-11-14T19:44:00.072Z","dependency_job_id":null,"html_url":"https://github.com/opentensor/cubit","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentensor%2Fcubit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentensor%2Fcubit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentensor%2Fcubit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentensor%2Fcubit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opentensor","download_url":"https://codeload.github.com/opentensor/cubit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248468312,"owners_count":21108789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T19:32:28.864Z","updated_at":"2025-04-11T19:41:01.359Z","avatar_url":"https://github.com/opentensor.png","language":"Cuda","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cubit\n\nA python package to register on the bittensor network using a CUDA device.\n\n## Requirements\n- Ubuntu 20.04 or higher  \n- bittensor\u003e=3.0.0  \n- sm_61, sm_70, sm_75, sm_80, or sm_86 enabled CUDA GPU (See [here](https://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/))\n\n## Building docker image\n\n1. Change the base image to the target bittensor version\n1. Build the image:\n    1. `sudo docker build -t opentensorfdn/bittensor:VERSION_BT-cubitVERSION_CUBIT -f ./docker/Dockerfile .`\n1. Push the image\n    1. `sudo docker push opentensorfdn/bittensor:VERSION_BT-cubitVERSION_CUBIT`\n\n## Install\nUsing the wheel for your version of python (3.8, etc.) from [releases](https://github.com/opentensor/cubit/releases/latest)   \nFor Python 3.8  \n```\npip install https://github.com/opentensor/cubit/releases/download/v1.1.2/cubit-1.1.2-cp38-cp38-linux_x86_64.whl\n```   \nFor Python 3.9  \n```\npip install https://github.com/opentensor/cubit/releases/download/v1.1.2/cubit-1.1.2-cp39-cp39-linux_x86_64.whl\n```   \nFor Python 3.10  \n```\npip install https://github.com/opentensor/cubit/releases/download/v1.1.2/cubit-1.1.2-cp310-cp310-linux_x86_64.whl\n```   \n#### Install testing dependencies\nInstall `test` extras from wheel\nFor Python 3.8  \n```\npip install https://github.com/opentensor/cubit/releases/download/v1.1.2/cubit-1.1.2-cp38-cp38-linux_x86_64.whl[test]\n```   \nFor Python 3.9  \n```\npip install https://github.com/opentensor/cubit/releases/download/v1.1.2/cubit-1.1.2-cp39-cp39-linux_x86_64.whl[test]\n```   \nFor Python 3.10  \n```\npip install https://github.com/opentensor/cubit/releases/download/v1.1.2/cubit-1.1.2-cp310-cp310-linux_x86_64.whl[test]\n```   \n### From source\n#### Requirements   \n- [cuda-toolkit 11.3 or higher](https://developer.nvidia.com/cuda-downloads)\n    - nvcc\n- gcc (9.3.1 or higher)\n- python 3.8 or higher  \n    \nYou can check if you have cuda-toolkit with \n```\nnvcc --version\n```  \n\n\nClone repo  \n```\ngit clone https://github.com/opentensor/cubit.git\n```  \nEnter dir  \n```\ncd cubit/\n```   \nInstall as editable    \n```\npip install -e .\n```  \n\n#### Install testing dependencies\nInstall `test` extras as editable   \n```\npip install -e .[test]\n```  \n## Unit Testing \nTesting uses unittest as there is an issue with pytest and Cython compatability\n\n```\npython3 -m unittest test.py\n```  \n\n## Acknowledgments\n  \nhttps://github.com/rmcgibbo/npcuda-example/  \nhttps://github.com/mochimodev/cuda-hashing-algos/  \nhttps://github.com/camfairchild/bittensor_register_cuda/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentensor%2Fcubit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopentensor%2Fcubit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentensor%2Fcubit/lists"}