mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-11-06 02:42:15 +08:00
parent
3e5a099187
commit
c558e44692
@ -139,12 +139,14 @@ class LogCallback(TrainerCallback):
|
|||||||
r"""
|
r"""
|
||||||
Event called after an evaluation phase.
|
Event called after an evaluation phase.
|
||||||
"""
|
"""
|
||||||
|
if not self.do_train:
|
||||||
self._close_thread_pool()
|
self._close_thread_pool()
|
||||||
|
|
||||||
def on_predict(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs):
|
def on_predict(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs):
|
||||||
r"""
|
r"""
|
||||||
Event called after a successful prediction.
|
Event called after a successful prediction.
|
||||||
"""
|
"""
|
||||||
|
if not self.do_train:
|
||||||
self._close_thread_pool()
|
self._close_thread_pool()
|
||||||
|
|
||||||
def on_log(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs):
|
def on_log(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user