Installation
Clone the Repository
git clone https://github.com/blockzero-subnet/weightnet
cd weightnet
Create a Virtual Environment
Create and activate a virtual environment before installing any dependencies:
python -m venv .venv
source .venv/bin/activate # Linux/Mac
Install Dependencies
Install build tools and project dependencies:
sudo apt-get update
sudo apt-get install -y build-essential python3-dev
pip install -r requirements.txt
pip install -e .
This installs all required packages (including Bittensor and PyTorch) and registers the project entry points. There is no need to install Bittensor or the base model separately.
Generate a Config File
Create a template config file for your miner:
python mycelia/shared/config.py \
--get_template miner \
--coldkey_name <your coldkey name> \
--hotkey_name <your hotkey name> \
--run_name <your naming to specify this run>
Then edit the generated YAML config to adjust any specifics. See Configuration for field details.
Verify Everything
# Check GPU is visible
python -c "import torch; print(f'CUDA available: {torch.cuda.is_available()}, GPUs: {torch.cuda.device_count()}')"
# Check bittensor
python -c "import bittensor; print(bittensor.__version__)"
If both pass, proceed to Configuration.