Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8fdefe9

Browse files
authored
Fixes conditional bug when loading ckpt (#149)
1 parent21bf5ab commit8fdefe9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

‎src/cookbook/utils/config.py‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,7 @@ def build_train_config(config_path: Path, run_name: str, group_id: str, beaker_u
196196
trainer=config.trainer.build(train_module,data_loader)
197197

198198
# If we have a load path and there is no checkpoint in the save folder, load the checkpoint from the load path.
199-
if (
200-
nottrainer.maybe_load_checkpoint(trainer.save_folder,load_trainer_state=base_config.load_state)
201-
andbase_config.load_path
202-
):
199+
ifnottrainer.maybe_load_checkpoint(trainer.save_folder)andbase_config.load_path:
203200
logger.info(
204201
f"Loading checkpoint from{base_config.load_path} and load_trainer_state:{base_config.load_state}"
205202
)
@@ -241,7 +238,7 @@ def mk_launch_configs(group: ExperimentGroup, beaker_user: str) -> list[BeakerLa
241238
budget=group.config.budgetor"ai2/oe-data",
242239
workspace=group.config.workspace,
243240
preemptible=group.config.preemptible,
244-
beaker_image="petew/olmo-core-tch270cu126",
241+
beaker_image="petew/olmo-core-tch270cu128",
245242
priority=group.config.priority,
246243
env_vars=[BeakerEnvVar(name="NCCL_DEBUG",value="INFO"ifgroup.config.nccl_debugelse"WARN")],
247244
env_secrets=[

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp