Skip to content

Commit cd8a9b8

Browse files
authored
Merge pull request #254 from macrocosm-os/hotfix/bittensor-integration-issue
Hotfix - latest bittensor version integration issues
2 parents 6c98a6f + 901db5e commit cd8a9b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

prompting/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# DEALINGS IN THE SOFTWARE.
1717

1818
# Define the version of the template module.
19-
__version__ = "2.4.0"
19+
__version__ = "2.4.1"
2020
version_split = __version__.split(".")
2121
__spec_version__ = (
2222
(10000 * int(version_split[0]))

prompting/base/validator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,14 @@ def set_weights(self):
239239
raw_weights = torch.nn.functional.normalize(self.scores, p=1, dim=0)
240240

241241
bt.logging.debug("raw_weights", raw_weights)
242-
bt.logging.debug("raw_weight_uids", self.metagraph.uids.to("cpu"))
242+
bt.logging.debug("raw_weight_uids", self.metagraph.uids)
243243
# Process the raw weights to final_weights via subtensor limitations.
244244
(
245245
processed_weight_uids,
246246
processed_weights,
247247
) = bt.utils.weight_utils.process_weights_for_netuid(
248-
uids=self.metagraph.uids.to("cpu"),
249-
weights=raw_weights.to("cpu"),
248+
uids=self.metagraph.uids,
249+
weights=raw_weights.to("cpu").numpy(),
250250
netuid=self.config.netuid,
251251
subtensor=self.subtensor,
252252
metagraph=self.metagraph,

0 commit comments

Comments
 (0)