Skip to content

ZenAI-Vietnam/image-generation-subnet

 
 

Repository files navigation

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 market.
  • scripts: Contains scripts for running validators and miners.

Example Usage

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

Validator

  • Normal run
python neurons/validator/validator.py \
--netuid 1 \
--subtensor.chain_endpoint ws://20.243.203.20:9946 \
--wallet.name validator --wallet.hotkey default \
--proxy.port 8080 \
--proxy.public_ip http://localhost \
--proxy.market_registering_url http://localhost:10003/get_credentials \  # the endpoint of dependency_modules/market/app.py
--reward_endpoint http://localhost:10002/verify \  # the endpoint of dependency_modules/rewarding/app.py
--prompt_generating_endpoint http://localhost:10001/prompt_generate  # the endpoint of dependency_modules/prompt_generating/app.py
  • pm2 run
  1. Install pm2 and jq
  2. Execute
pm2 start run.sh --attach

Miner

python neurons/miner/miner.py \
--netuid 1 \
--subtensor.chain_endpoint ws://20.243.203.20:9946 \
--wallet.name miner --wallet.hotkey default \
--generate_endpoint http://127.0.0.1:10006/generate \ # the endpoint of neurons/miner/example_endpoint
--info_endpoint http://127.0.0.1:10006/info \ # the endpoint of neurons/miner/example_endpoint
--axon.port 12689 # public port on the host machine

About

Template Design for a Bittensor subnetwork

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.6%
  • Shell 10.2%
  • Dockerfile 0.2%