mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-11-05 18:32:14 +08:00
Update callbacks.py
Former-commit-id: 44ebe58083dc62128fd14df474c11c6e09af43db
This commit is contained in:
parent
e0d9f6f2b7
commit
6d4a107546
@ -46,8 +46,6 @@ class LogCallback(TrainerCallback):
|
||||
r"""
|
||||
Event called after logging the last logs.
|
||||
"""
|
||||
if "step" not in state.log_history[-1]:
|
||||
return
|
||||
cur_time = time.time()
|
||||
cur_steps = state.log_history[-1].get("step")
|
||||
elapsed_time = cur_time - self.start_time
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user