Skip to content

Commit

Permalink
Merge pull request #254 from macrocosm-os/hotfix/bittensor-integratio…
Browse files Browse the repository at this point in the history
…n-issue

Hotfix - latest bittensor version integration issues
  • Loading branch information
p-ferreira committed Jun 6, 2024
2 parents 6c98a6f + 901db5e commit cd8a9b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion prompting/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# DEALINGS IN THE SOFTWARE.

# Define the version of the template module.
__version__ = "2.4.0"
__version__ = "2.4.1"
version_split = __version__.split(".")
__spec_version__ = (
(10000 * int(version_split[0]))
Expand Down
6 changes: 3 additions & 3 deletions prompting/base/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,14 @@ def set_weights(self):
raw_weights = torch.nn.functional.normalize(self.scores, p=1, dim=0)

bt.logging.debug("raw_weights", raw_weights)
bt.logging.debug("raw_weight_uids", self.metagraph.uids.to("cpu"))
bt.logging.debug("raw_weight_uids", self.metagraph.uids)
# Process the raw weights to final_weights via subtensor limitations.
(
processed_weight_uids,
processed_weights,
) = bt.utils.weight_utils.process_weights_for_netuid(
uids=self.metagraph.uids.to("cpu"),
weights=raw_weights.to("cpu"),
uids=self.metagraph.uids,
weights=raw_weights.to("cpu").numpy(),
netuid=self.config.netuid,
subtensor=self.subtensor,
metagraph=self.metagraph,
Expand Down

0 comments on commit cd8a9b8

Please sign in to comment.