Skip to content

minersunion/sn64-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sn64-tools

Bittensor Subnet 64 (Chutes) tools

Prerequisites

Before you start, make sure you have the following installed on your system:

  • Python 3.12 or higher
  • git
  • pip

Installation Steps

1. Clone the Repository

First, clone the repository to your local machine:

git clone https://github.com/minersunion/sn64-tools.git
cd sn64-tools

2. Create and Activate a Virtual Environment

python -m venv venv
source venv/bin/activate

3. Install the Project in Editable Mode

pip install --upgrade pip
pip install -r requirements.txt
pip install -e .

How to use?

In your terminal, use this command to run the script:

python src/delete-remote-gpu.py --hotkey-path ~/.bittensor/wallets/COLDKEY_NAME/hotkeys/HOTKEY_NAME --miner-api-url http://x.x.x.x:32000

It will display all your miner GPUs known by the Chutes validator in a rich table. And then it will prompt you for GPU index numbers or IPs to delete from the validator.

3.

If you want to delete gpus automatically, use the --auto-delete flag to run the script:

while true;do python src/delete-remote-gpu.py --auto-delete;sleep 3600;done

Alternatively, you can run a cron job instead.

Screenshot of delete-remote-gpu.py

Why?

Many miners don't know how to delete their orphan GPUs from the remote validator DB, so they need to ping the subnet owner multiple times per day so that he can do it himself.

But if miners delete their own left over GPUs they they do not use anymore, it may help.