Skip to content

Latest commit

 

History

History
84 lines (70 loc) · 2.2 KB

README.md

File metadata and controls

84 lines (70 loc) · 2.2 KB

Image Generating Subnet


Introduction

Welcome to the Image Generating Subnet project. This README provides an overview of the project's structure and example usage for both validators and miners.

The Incentivized Internet

Project Structure

  • image_generation_subnet: Contains base, feature functions, and utilities for validators and miners.
  • neurons: Contains the validator and miner loop.
  • dependency_modules: Includes servers for prompt_generation, rewarding, and miner_endpoint.

Installation

  1. Clone the repository.
git clone https://github.com/NicheTensor/NicheImage.git
  1. Install the dependencies.
pip install -r requirements.txt
  1. Install the project.
pip install -e .

Example Usage

Before running the following commands, make sure to replace the placeholder arguments with appropriate values.

Start Services

  1. [Validator] Prompting API
python dependency_modules/prompt_generating/app.py --port <port>
  1. [Validator] Rewarding API
python dependency_modules/rewarding/app.py --port <port> --model_name <model_name>
  1. [Miner] Generation API
python dependency_modules/miner_endpoint/app.py --port <port> --model_name <model_name>

Start Miner

Pre-requisites: Make sure you have an generation endpoint running.

pm2 start python --name "miner" -- -m neurons.miner.miner \
--netuid <netuid> \
--wallet.name <wallet_name> --wallet.hotkey <wallet_hotkey> \
--subtensor.network <network> \
--generate_endpoint <your_miner_endpoint>/generate \
--info_endpoint <your_miner_endpoint>/info \
--axon.port <your_public_port> \

View logs

pm2 logs miner

Start Validator

Pre-requisites: Make sure generating and rewarding endpoint are running.

pm2 start python --name "validator" -- -m neurons.validator.validator \
--netuid <netuid> \
--wallet.name <wallet_name> --wallet.hotkey <wallet_hotkey> \
--subtensor.network <network> \
--axon.port <your_public_port> \

View logs

pm2 logs validator