Introduction
If you are new to the Bittensor developer ecosystem read this section first before proceeding to participate in the Bittensor network.
The Bittensor ecosystem consists of the following three components (refer to the above diagram):
- An incentive-based competition mechanism: You can either create your custom incentive mechanism for your own competition or join a competition that already exists in the Bittensor ecosystem. Each such incentive-based competition market is called a subnet. Subnets constitute the core of the Bittensor ecosystem.
For example, the text prompting subnet, developed by the Open Tensor foundation, incentivizes subnet miners that produce the best prompt completions in response to the prompts sent by the subnet validators in that subnet.
- A blockchain that runs the above subnets and supports their proper functioning so that the incentive-based competition market is decentralized, is permissionless and is collusion-resistant, i.e., is resistant to market manipulation.
- The Bittensor API that connects all the essential elements within the above two components, and also connects the subnets and the blockchain.
Bittensor provides all the open source tools, codebase and the documentation, with step-by-step tutorials and guides, to enable you to participate in the Bittensor ecosystem.
Participating in Bittensor ecosystem
You participate in the Bittensor ecosystem by participating in a subnet.
How a subnet works
Subnets exist to operationalize the incentive-based competition mechanisms. See the below diagram.
Here is an explanation of the primary components of a subnet. Note that this explanation is highly simplified, and is intended only to convey the essential conceptual core of the subnet.
The item numbers below correspond to the numbers in the above diagram.
- A subnet is defined by the incentive mechanism it supports. The incentive mechanism is unique to the subnet.
- Entities in the subnet, called subnet miners, each perform a useful task, i.e., solve some problem, as defined in the incentive mechanism of the subnet.
- Separate entities in the same subnet, called subnet validators, each independently evaluate the task performed by the subnet miners.
- The subnet validators then each express their opinion on the quality of the miners. These opinions of the subnet validators are then provided as a collective input to the Yuma Consensus mechanism on the blockchain by using the Bittensor API.
- The output of the Yuma Consensus mechanism from the blockchain will then determine how the rewards for the subnet miners and subnet validators are to be distributed. The rewards are in the form of TAO tokens.
When you participate in the Bittensor ecosystem, most of your activity occurs within the subnet you participate in. This is true whether you created your own incentive mechanism, i.e., your own subnet, or joined an existing subnet either as a subnet validator or as a subnet miner. Nevertheless, you can interact with other subnet entities.
You can use Python with the Bittensor API to write your incentive mechanism.
Bittensor personas
You can participate in the Bittensor ecosystem as the following personas:
- Subnet owner: When you only want to create a subnet but transfer the tasks of operating the subnet to others.
- Subnet validator: When you are responsible for running the subnet validator.
- Subnet miner: When you are responsible for running the subnet miner.
- Blockchain operator: When you run the blockchain. This mostly applies during the offline testing of your subnet and your incentive mechanism, when you need a local emulation of the Bittensor blockchain because you are disconnected from the Bittensor network.
Participating in a subnet
When creating a subnet you should always start by first developing and testing the subnet incentive mechanism locally, then connecting to the Bittensor testchain and finally go live by connecting to the Bittensor mainchain. See the below conceptual deployment diagram showing the three stages.
Testing the incentive mechanism means running one or more validators and miners to ensure that rewards are distributed in the intended way.
We recommend all subnet participants to become familiar with the incentive mechanism before joining a subnet or creating a new subnet.