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.
image_generation_subnet
: Contains base, feature functions, and utilities for validators and miners.neurons
: Contains the validator and miner loop.dependency_modules
: Includes servers forprompt_generation
,rewarding
, andmarket
.scripts
: Contains scripts for running validators and miners.
Before running the following commands, make sure to replace the placeholder arguments with appropriate values.
- 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
pm2 start run.sh --attach
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