Skip to content

renlabs-dev/commune-subnet-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Commune Subnet Templeate

Subnet template built on top of CommuneX.

Lern how to structure, build and deploy a subnet on Commune AI!

Dependencies

The whole subnet template is built on top of the CommuneX library / SDK. Which is truly the only essential dependency.

Although in order to make the template more explict we also provide additional libraries. You can find the whole dependency list we used in the requirements.txt file.

communex
typer
uvicorn
keylimiter
pydantic-settings

Miner

From the root of your project, you can just call comx module serve. For example:

comx module serve commune-subnet-template.subnet.miner.model.Miner <name-of-your-com-key> [--subnets-whitelist <your-subnet-netuid>] \
[--ip <text>] [--port <number>]

Validator

To run the validator, just call the file in which you are executing validator.validate_loop(). For example:

python3 -m commune-subnet-template.subnet.cli <name-of-your-com-key>

Further reading

For full documentation of the Commune AI ecosystem, please visit the Official Commune Page, and it's developer documentation. There you can learn about all subnet details, deployment, and more!

About

Structure of a sample Commune Ai subnet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages