Skip to content

Commit

Permalink
refactor: adding step configuration to SAM example
Browse files Browse the repository at this point in the history
Signed-off-by: Lee, Kin Long Kelvin <[email protected]>
  • Loading branch information
laserkelvin committed Sep 10, 2024
1 parent 60a04e7 commit ff0a415
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/callbacks/SAM.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
},
)

# run a quick training loop
trainer = pl.Trainer(fast_dev_run=1000, callbacks=[SAM()])
# run a quick training loop, skipping the first five steps
trainer = pl.Trainer(
fast_dev_run=100, callbacks=[SAM(skip_step_count=5, logging=True, log_level="INFO")]
)
trainer.fit(task, datamodule=dm)

0 comments on commit ff0a415

Please sign in to comment.