Skip to content

Commit

Permalink
Merge pull request #180 from macrocosm-os/SN9-119-increase-ttl-comput…
Browse files Browse the repository at this point in the history
…e-loss

Increased ttl for loss computation
  • Loading branch information
cryptal-mc authored Oct 10, 2024
2 parents 6f1de23 + b9860fd commit 521d012
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions constants/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
"attn_implementation": "flash_attention_2",
},
eval_block_delay=0,
epsilon_func=LinearDecay(0.005, 0.0001, 100800),
epsilon_func=LinearDecay(0.005, 0.0001, 50400),
max_bytes=29 * 1024 * 1024 * 1024,
),
}
Expand Down Expand Up @@ -419,7 +419,7 @@

# validators number of pages to eval over miners on each step.
pages_per_eval_unpack = 5 # With sample unpacking
pages_per_eval_pack = 18
pages_per_eval_pack = 11

# validator eval batch size.
batch_size = 1
Expand Down
3 changes: 2 additions & 1 deletion neurons/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,11 +891,12 @@ async def run_step(self):
tokenizer.eos_token_id,
pack_samples,
),
ttl=400,
ttl=430,
mode="spawn",
)

del model_i

except Exception as e:
bt.logging.error(
f"Error in eval loop: {e}. Setting losses for uid: {uid_i} to infinity."
Expand Down

0 comments on commit 521d012

Please sign in to comment.