-
Clone the repository.
git clone https://github.com/honestflix/comtensor-backend.git cd comtensor
-
Install venv
apt install python3.10-venv python3 -m venv my-env . my-env/bin/activate
-
Install dependancies
python3 -m pip install -e . python3 -m pip install -r requirements.txt
We can run each subnet code according to their own guide.
ex. For Healthcare subnet, please read crossvals/healthcare/readme.md
uvicorn server:app --host 0.0.0.0 --port 8000 --reload
-
Make sub-directory in
crossvals
directory and name it with subnet name.ex.
crossvals/healthcare
Add all your files in this directory.
-
Declare the class inheriting from
CommitBasedCrossval
class orSynapseBasedCrossval
class.ex.
import bittensor as bt from constants import BASE_DIR from base.commit_based_crossval import CommitBasedCrossval class HealthcareCrosscal(CommitBasedCrossval): ...
-
Then customize this class with your own functions and implementing abstruct functions.
-
Additionally, don't forget write readme for each subnet code.