Update ruff to 0.11.2 (#36962)
* update * update * update --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -3005,9 +3005,9 @@ class TrainerIntegrationTest(TestCasePlus, TrainerIntegrationCommon):
|
||||
)
|
||||
trainer.train()
|
||||
# Check that we have the last known step:
|
||||
assert os.path.exists(
|
||||
os.path.join(tmp_dir, f"checkpoint-{trainer.state.max_steps}")
|
||||
), f"Could not find checkpoint-{trainer.state.max_steps}"
|
||||
assert os.path.exists(os.path.join(tmp_dir, f"checkpoint-{trainer.state.max_steps}")), (
|
||||
f"Could not find checkpoint-{trainer.state.max_steps}"
|
||||
)
|
||||
# And then check the last step
|
||||
assert os.path.exists(os.path.join(tmp_dir, "checkpoint-9")), "Could not find checkpoint-9"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user