Skip to content

Feat/ subnet mechanisms#627

Merged
ibraheem-abe merged 41 commits intostagingfrom
feat/sub-subnets
Sep 25, 2025
Merged

Feat/ subnet mechanisms#627
ibraheem-abe merged 41 commits intostagingfrom
feat/sub-subnets

Conversation

@ibraheem-abe
Copy link
Collaborator

@ibraheem-abe ibraheem-abe commented Sep 17, 2025

New commands

1. btcli subnet mech count

Important

Displays total number of active subnet mechanisms in a subnet.

Examples:

Note

  • Subnet doesnt have any mechanisms:
image

Note

  • Subnet has 2 active mechanisms:
image

2. btcli subnet mech set

Important

Change the number of mechanisms in a subnet. This command can be used for both:

  • Increasing the mechanisms
  • or Decreasing them

Examples:

Note

  • Subnet had 1 active mechanism, changing it to 2
image

Note

  • Subnet had 2 active mechanisms, changing it back to 1
image

3. btcli subnet mech emissions

Important

Check the existing emission split between subnet mechanisms

  • If a split is defined, display
  • If not, the cli shows the approximate split that subtensor will do on its end.

Examples:

Note

  • No additional subnet mechanisms are present. Emissions will not get split.
image

Note

  • An emission split was defined by the subnet owner.
image

Note

  • Additional mechanism is present but split was not defined. Hence we show the default distribution
image

4. btcli subnet mech emissions-split

Important

This command will help users split their total emissions across different mechanisms.
Values should be relative to each subnet mechanisms - just like we set weights.
Input can be of both formats:

  • Raw u16s
  • Percentages

Examples:

Note

  • We already had an emission split defined. A subnet owner wants to change the split by providing percentages.
image

Note

  • There was no prior split defined. The subnet owner is defining the split for the first time.
image

Updated commands

1. btcli subnet metagraph --netuid 2

Important

The metagraph command has been updated to accept a new parameter mechid. If not passed, it will prompt and validate the mechanism id

Examples:

Note

  • 2 mechanisms are active in netuid 2
image

Note

  • 1 mechanism is active in netuid 1
image

@ibraheem-abe ibraheem-abe marked this pull request as ready for review September 18, 2025 01:35
@ibraheem-abe ibraheem-abe changed the title Feat/sub subnets Feat/ subnet mechanisms Sep 18, 2025
@ibraheem-abe ibraheem-abe requested a review from a team September 18, 2025 23:44
basfroman
basfroman previously approved these changes Sep 18, 2025
@thewhaleking thewhaleking added the enhancement New feature or request label Sep 23, 2025
@ibraheem-abe ibraheem-abe merged commit 045e4a9 into staging Sep 25, 2025
52 checks passed
@ibraheem-abe ibraheem-abe mentioned this pull request Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Do not merge enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants