-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eval_on_start
triggers AttributeError
in JupyterLab
#32689
Comments
Hi, I have found that the cause of this exception is that in Jupyter Notebook, for a
Running I have open a PR to fix this. |
… `eval_on_start=True` in Jupyter Notebook. (#32849) fix: `AttributeError` raised when using `Trainer` with `eval_on_start=True` in Jupyter Notebook.
…ainer` with `eval_on_start=True` in Jupyter Notebook. (huggingface#32849) fix: `AttributeError` raised when using `Trainer` with `eval_on_start=True` in Jupyter Notebook.
…ainer` with `eval_on_start=True` in Jupyter Notebook. (huggingface#32849) fix: `AttributeError` raised when using `Trainer` with `eval_on_start=True` in Jupyter Notebook.
System Info
transformers
: '4.44.0'Python
: '3.10.14 | packaged by conda-forge | (main, Mar 20 2024, 12:45:18) [GCC 12.3.0]'Who can help?
@muellerz @SunMarc
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Here is a self-contained script that triggers the error:
The error I get is
which seems related to the fact that I'm running the code in a Jupyter notebook.
Expected behavior
I should be able to use the
eval_on_start
parameter without triggering an error.The text was updated successfully, but these errors were encountered: