Skip to content

Commit

Permalink
Merge pull request #130 from macrocosm-os/dev
Browse files Browse the repository at this point in the history
Release 2.5.1.
  • Loading branch information
Sid-Data-Universe authored Nov 21, 2024
2 parents 7f23ad9 + 0415b2a commit 1237391
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion constants/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# Project Constants.
# ---------------------------------

__version__ = "2.5.0"
__version__ = "2.5.1"
version_split = __version__.split(".")
__spec_version__ = (
(1000 * int(version_split[0]))
Expand Down
8 changes: 4 additions & 4 deletions finetune/eval/if_eval/rule_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ def generate_rule(
"""Generates a rule based on the provided rule_id and existing rules."""
match rule_id:
case RuleId.WORD_COUNT_AT_MOST:
return WordCountAtMostRule(random.choice([x for x in range(50, 150, 5)]))
return WordCountAtMostRule(random.choice([x for x in range(25, 50, 5)]))
case RuleId.WORD_COUNT_AT_LEAST:
return WordCountAtLeastRule(random.choice([x for x in range(25, 250, 10)]))
return WordCountAtLeastRule(random.choice([x for x in range(25, 50, 5)]))
case RuleId.SENTENCE_COUNT_AT_MOST:
return SentenceCountAtMostRule(random.choice([x for x in range(1, 5)]))
return SentenceCountAtMostRule(random.choice([x for x in range(1, 4)]))
case RuleId.SENTENCE_COUNT_AT_LEAST:
return SentenceCountAtLeastRule(random.choice([x for x in range(2, 5)]))
return SentenceCountAtLeastRule(random.choice([x for x in range(2, 4)]))
case RuleId.ALL_UPPER_CASE:
return UppercaseRule()
case RuleId.ALL_LOWER_CASE:
Expand Down
5 changes: 3 additions & 2 deletions neurons/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,8 @@ async def _try_set_weights():
with self.metagraph_lock:
uids = self.metagraph.uids
try:
success, message = self.subtensor.set_weights(
weight_subtensor = bt.subtensor(config=self.config)
success, message = weight_subtensor.set_weights(
netuid=self.config.netuid,
wallet=self.wallet,
uids=uids,
Expand Down Expand Up @@ -1502,6 +1503,6 @@ async def run(self):
width = os.get_terminal_size().columns
except:
width = 0
os.environ['COLUMNS'] = str(max(200,width))
os.environ["COLUMNS"] = str(max(200, width))

asyncio.run(Validator().run())

0 comments on commit 1237391

Please sign in to comment.