Admin
Sudo logic for calling select functions throughout select pallets
Overview
The admin pallet is responsible for the logic of parameterizing the network. This pallet will transition into a governance-owned functionality as the blockchain matures.
Functions
Note:
The following functions can only be called by the Sudo Account.
Model Vote In
Storage
Parameters
value: The path of the open-sourced hugging face model.
e.g. If the path is "https://huggingface.co/petals-team/StableBeluga2" then the
model_path
should be petals-team/StableBeluga2
Model Vote Out
Storage
Parameters
value: The path of the open-sourced hugging face model.
e.g. If the path is "https://huggingface.co/petals-team/StableBeluga2" then the
model_path
should be petals-team/StableBeluga2
Max Models
Storage
Parameters
value: The maximum models.
Min Model Peers
Storage
Parameters
value: The minimum model peers per model.
Max Model Peers
Storage
Parameters
value: The maximum model peers per model.
Min Stake Balance
Storage
Parameters
value: The minimum required stake balance for each peer towards a model.
Tx Rate Limit
Storage
Parameters
value: The transaction rate limit.
Max Zero Consensus Epochs
Storage
Parameters
value: The maximum amount of zero consensus epochs per model.
Min Required Model Consensus Submit Epochs
Storage
MinRequiredModelConsensusSubmitEpochs
Parameters
value: The minimum required epochs for a model to begin accepting consensus submissions.
Min Required Peer Consensus Submit Epochs
Storage
MinRequiredPeerConsensusSubmitEpochs
Parameters
value: The minimum required epochs for a peer to begin submitting consensus data.
Min Required Peer Consensus Inclusion Epochs
Storage
MinRequiredPeerConsensusInclusionEpochs
Parameters
value: The minimum required epochs for a peer to be included, required, and accepted in peer consensus.
Max Outlier Delta Percent
Storage
Parameters
value: The maximum percent delta a score of a peer another peer submits can be away from the average resulted score.
Model Peer Consensus Submit Percent Requirement
Storage
ModelPeerConsensusSubmitPercentRequirement
Parameters
value: The required percentage of peers to submit data to form consensus.
Consensus Blocks Interval
Storage
Parameters
value: Blocks per consensus epoch.
Peer Removal Threshold
Storage
Parameters
value: The required percentage of consensus to remove a peer.
Max Model Rewards Weight
Storage
Parameters
value: The maximum percentage of rewards any model can have.
Max Model Rewards Weight
Storage
Parameters
value: The percentage of the stake vault to be distributed based on model validator stake balances.
Max Model Per Peer Initialization Cost
Storage
Parameters
value: The value of the model peer multiplier cost to initialize a model.
Remove Model Peer Epoch Percentage
Storage
RemoveModelPeerEpochPercentage
Parameters
value: The percentage value of an epoch where a model can be updated or removed.
Model Consensus Unconfirmed Threshold
Storage
ModelConsensusUnconfirmedThreshold
Parameters
value: The threshold value to unconfirm an epoch's consensus for a model.
Last updated