Skip to content

Commit

Permalink
Revert changing eval to every 5000 steps; Eval final 10 ckpts of pete…
Browse files Browse the repository at this point in the history
…ish13
  • Loading branch information
liujch1998 committed Nov 25, 2024
1 parent c2ab4da commit e643734
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/beaker/peteish/peteish13-eval.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ torchrun \
--save_overwrite \
--device_eval_batch_size=16 \
--wandb.group="peteish13-highlr" \
--load_path="/weka/oe-training-default/ai2-llm/checkpoints/OLMo-medium/peteish13-highlr-zlossfix/step596057"
--load_path="/weka/oe-training-default/ai2-llm/checkpoints/OLMo-medium/peteish13-highlr-zlossfix"
# --load_path="/weka/oe-training-default/ai2-llm/checkpoints/OLMo-medium/peteish13-highlr-zlossfix/step596057"

# '--load_path=${path.last_checkpoint:${save_folder}}' \
6 changes: 3 additions & 3 deletions scripts/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ def main(cfg: TrainConfig) -> None:
load_paths = [
x for x in load_paths if x.split("/")[-1].replace("-unsharded", "").split("step")[-1].isdigit()
]
load_paths = [
x for x in load_paths if int(x.split("/")[-1].replace("-unsharded", "").split("step")[-1]) % 5000 == 0
]
# load_paths = [
# x for x in load_paths if int(x.split("/")[-1].replace("-unsharded", "").split("step")[-1]) % 5000 == 0
# ]
load_paths = list(
sorted(load_paths, key=lambda x: int(x.split("/")[-1].replace("-unsharded", "").split("step")[-1]))
)
Expand Down

0 comments on commit e643734

Please sign in to comment.