From 796580125111045295a05c304d45b96d0f99ffd0 Mon Sep 17 00:00:00 2001 From: Shaopeng Fu Date: Thu, 22 Aug 2024 17:42:00 +0300 Subject: [PATCH] fix: (issue #32689) `AttributeError` raised when using `Trainer` with `eval_on_start=True` in Jupyter Notebook. (#32849) fix: `AttributeError` raised when using `Trainer` with `eval_on_start=True` in Jupyter Notebook. --- src/transformers/utils/notebook.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/transformers/utils/notebook.py b/src/transformers/utils/notebook.py index 9704aca242a60f..300ff6fde48238 100644 --- a/src/transformers/utils/notebook.py +++ b/src/transformers/utils/notebook.py @@ -114,6 +114,8 @@ def __init__( self.last_value = None self.comment = None self.output = None + self.value = None + self.label = None def update(self, value: int, force_update: bool = False, comment: str = None): """