Skip to content

Commit 91f1fc0

Browse files
authored
v2.7.2 (#363)
Patch v2.7.2 changes: - Add signature to W&B logs to ensure authenticity of logs. - Increase Multiple Choice task rate from 0.05 to 0.2.
1 parent 66db048 commit 91f1fc0

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

prompting/tasks/task_registry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ class TaskConfig(BaseModel):
2424

2525
class TaskRegistry(BaseModel):
2626
task_configs: ClassVar[list[TaskConfig]] = [
27-
TaskConfig(task=QuestionAnsweringTask, probability=0.55, datasets=[WikiDataset], reward_model=QARewardConfig),
27+
TaskConfig(task=QuestionAnsweringTask, probability=0.4, datasets=[WikiDataset], reward_model=QARewardConfig),
2828
TaskConfig(
2929
task=SummarizationTask, probability=0.2, datasets=[WikiDataset], reward_model=SummarizationRewardConfig
3030
),
3131
TaskConfig(
3232
task=DateQuestionAnsweringTask, probability=0.2, datasets=[WikiDateDataset], reward_model=DateQARewardConfig
3333
),
3434
TaskConfig(
35-
task=MultiChoiceTask, probability=0.05, datasets=[WikiDataset], reward_model=MultiChoiceRewardConfig
35+
task=MultiChoiceTask, probability=0.2, datasets=[WikiDataset], reward_model=MultiChoiceRewardConfig
3636
),
3737
]
3838

prompting/utils/logging.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,10 @@ def init_wandb(reinit=False, neuron: Literal["validator", "miner"] = "validator"
8585

8686
tags += custom_tags
8787

88-
# wandb_config = {key: copy.deepcopy(self.config.get(key, None)) for key in ("neuron", "reward", "netuid", "wandb")}
89-
# wandb_config["neuron"].pop("full_path", None)
88+
wandb_config = {
89+
"HOTKEY_SS58": settings.WALLET.hotkey.ss58_address,
90+
"NETUID": settings.NETUID,
91+
}
9092
wandb.login(anonymous="allow", key=settings.WANDB_API_KEY, verify=True)
9193
logger.info(
9294
f"Logging in to wandb on entity: {settings.WANDB_ENTITY} and project: {settings.WANDB_PROJECT_NAME}"
@@ -99,7 +101,11 @@ def init_wandb(reinit=False, neuron: Literal["validator", "miner"] = "validator"
99101
dir=settings.SAVE_PATH,
100102
tags=tags,
101103
notes=settings.WANDB_NOTES,
104+
config=wandb_config
102105
)
106+
signature = settings.WALLET.hotkey.sign(WANDB.id.encode()).hex()
107+
wandb_config["SIGNATURE"] = signature
108+
WANDB.config.update(wandb_config)
103109
logger.success(f"Started a new wandb run <blue> {WANDB.name} </blue>")
104110

105111

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "prompting"
3-
version = "2.7.1"
3+
version = "2.7.2"
44
description = "Subnetwork 1 runs on Bittensor and is maintained by Macrocosmos. It's an effort to create decentralised AI"
55
authors = ["Kalei Brady, Dmytro Bobrenko, Felix Quinque, Steffen Cruz"]
66
readme = "README.md"

0 commit comments

Comments
 (0)