Skip to content

Commit 8d3f1bd

Browse files
committed
overwrite the max steps
1 parent 83a6535 commit 8d3f1bd

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

olmoearth_pretrain/internal/full_eval_sweep_finetune.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ def _format_launch_command(
250250
"--launch.num_gpus=1",
251251
"--launch.preemptible=True",
252252
"--launch.task_name=eval",
253+
# Overwrite the max duration to enable eval of the last step of the checkpoint
254+
"--trainer.max_duration.value=700000",
255+
"--trainer.max_duration.unit=steps",
253256
]
254257
parts.extend(checkpoint_args)
255258
parts.append(f"--trainer.callbacks.wandb.project={project_name}")

scripts/2025_10_02_phase2/script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def build_dataset_config(common: CommonComponents) -> OlmoEarthDatasetConfig:
190190

191191
def build_trainer_config(common: CommonComponents) -> TrainerConfig:
192192
"""Build the trainer config for an experiment."""
193-
MAX_DURATION = Duration.steps(700000)
193+
MAX_DURATION = Duration.epochs(300)
194194
METRICS_COLLECT_INTERVAL = 10
195195
CANCEL_CHECK_INTERVAL = 25
196196
LOAD_STRATEGY = LoadStrategy.if_available

0 commit comments

Comments
 (0)