Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge/master642 staging no-ff #1615

Merged
merged 2 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
# Changelog

## 6.4.2 / 2023-12-07

## What's Changed
* Fix broken explorer links https://github.com/opentensor/bittensor/pull/1607
* Fix spamming bittensor subtensor logging https://github.com/opentensor/bittensor/pull/1608
* Fix hanging subtensor websocket https://github.com/opentensor/bittensor/pull/1609
* Hparam update to palette: https://github.com/opentensor/bittensor/pull/1612

**Full Changelog**: https://github.com/opentensor/bittensor/compare/v6.4.1...v6.4.2


## 6.4.1 / 2023-12-01

## What's Changed
* add helpful messages to signal coming changes in https://github.com/opentensor/bittensor/pull/1600/commits/86c0c3ccfcd91d0e3ff87f53bdc3e9c5e68661da
* revert default subtensor network to finney in https://github.com/opentensor/bittensor/pull/1600/commits/8c69a3c15cd556384d0309e951f0a9b164dd36cb

**Full Changelog**: https://github.com/opentensor/bittensor/compare/v6.0.1...v6.4.1
**Full Changelog**: https://github.com/opentensor/bittensor/compare/v6.4.0...v6.4.1


## 6.4.0 / 2023-11-29
Expand Down
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ positional arguments:
lock_cost Return the lock cost to register a subnet.
create Create a new bittensor subnetwork on this chain.
register Register a wallet to a network.
register Register a wallet to a network using PoW.
pow_register Register a wallet to a network using PoW.
hyperparameters View subnet hyperparameters.

options:
Expand Down Expand Up @@ -282,28 +282,28 @@ Axon: Serves Synapse protocols with custom blacklist, priority and verify functi
```python
import bittensor

class MySyanpse( bittensor.Synapse ):
class MySynapse( bittensor.Synapse ):
input: int = 1
output: int = None

# Define a custom request forwarding function
def forward( synapse: MySyanpse ) -> MySyanpse:
def forward( synapse: MySynapse ) -> MySynapse:
# Apply custom logic to synapse and return it
synapse.output = 2
return synapse

# Define a custom request verification function
def verify_my_synapse( synapse: MySyanpse ):
def verify_my_synapse( synapse: MySynapse ):
# Apply custom verification logic to synapse
# Optionally raise Exception

# Define a custom request blacklist function
def blacklist_my_synapse( synapse: MySyanpse ) -> bool:
def blacklist_my_synapse( synapse: MySynapse ) -> bool:
# Apply custom blacklist
# return False ( if non blacklisted ) or True ( if blacklisted )

# Define a custom request priority function
def prioritize_my_synape( synapse: MySyanpse ) -> float:
def prioritize_my_synape( synapse: MySynapse ) -> float:
# Apply custom priority
return 1.0

Expand All @@ -321,6 +321,7 @@ my_axon.attach(

Dendrite: Inheriting from PyTorch's Module class, represents the abstracted implementation of a network client module designed
to send requests to those endpoints to receive inputs.

Example:
```python
dendrite_obj = dendrite( wallet = bittensor.wallet() )
Expand All @@ -340,7 +341,7 @@ Use the `root` subcommand to access setting weights on the network across subnet
```bash
btcli root weights --wallet.name <coldname> --wallet.hotkey <hotname>
Enter netuids (e.g. 0, 1, 2 ...):
# Here enter your selected netuids to wet weights on
# Here enter your selected netuids to set weights on
1, 2

>Enter weights (e.g. 0.09, 0.09, 0.09 ...):
Expand Down Expand Up @@ -377,4 +378,4 @@ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR I


## Acknowledgments
**learning-at-home/hivemind**
**learning-at-home/hivemind**
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.4.1
6.4.2
2 changes: 1 addition & 1 deletion bittensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
nest_asyncio.apply()

# Bittensor code and protocol version.
__version__ = "6.4.1"
__version__ = "6.4.2"
version_split = __version__.split(".")
__version_as_int__ = (
(100 * int(version_split[0]))
Expand Down
6 changes: 6 additions & 0 deletions bittensor/chain_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@
["max_burn", "Compact<u64>"],
["bonds_moving_avg", "Compact<u64>"],
["max_regs_per_block", "Compact<u16>"],
["serving_rate_limit", "Compact<u64>"],
["max_validators", "Compact<u16>"],
],
},
}
Expand Down Expand Up @@ -963,6 +965,8 @@ class SubnetHyperparameters:
max_burn: int
bonds_moving_avg: int
max_regs_per_block: int
serving_rate_limit: int
max_validators: int

@classmethod
def from_vec_u8(cls, vec_u8: List[int]) -> Optional["SubnetHyperparameters"]:
Expand Down Expand Up @@ -1013,6 +1017,8 @@ def fix_decoded_values(cls, decoded: Dict) -> "SubnetHyperparameters":
max_burn=decoded["max_burn"],
bonds_moving_avg=decoded["bonds_moving_avg"],
max_regs_per_block=decoded["max_regs_per_block"],
max_validators=decoded["max_validators"],
serving_rate_limit=decoded["serving_rate_limit"],
)

def to_parameter_dict(self) -> "torch.nn.ParameterDict":
Expand Down
2 changes: 1 addition & 1 deletion bittensor/commands/stake.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def get_stake_accounts(wallet) -> Dict[str, Dict[str, Union[str, Balance]]]:
Returns:
A dictionary mapping SS58 addresses to their respective stake account details.
"""
subtensor = bittensor.subtensor(config=cli.config)
subtensor = bittensor.subtensor(config=cli.config, log_verbose=False)

wallet_stake_accounts = {}

Expand Down