You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning on accuracy = evaluate.load("accuracy") saying scikit-learn is missing.
Later training crashes due to missing module.
Additional recommendation:
Users should be able to use their model for inference even when they are unable to or it is not preferable for the user to push their model to the hub.
Add to guide under inference, in the pipelining section: classifier = pipeline("image-classification", model="<path of checkpoint folder>")
as an option to use a locally stored checkpoint of their model for inference.
Expected behavior
Following guide as written should not result in crash.
Additionally, users should know how to use the model when it is saved locally (as checkpointing automatically does).
The text was updated successfully, but these errors were encountered:
System Info
transformers
version: 4.39.2Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Tested using PyTorch only.
accuracy = evaluate.load("accuracy")
saying scikit-learn is missing.Additional recommendation:
Users should be able to use their model for inference even when they are unable to or it is not preferable for the user to push their model to the hub.
Add to guide under inference, in the pipelining section:
classifier = pipeline("image-classification", model="<path of checkpoint folder>")
as an option to use a locally stored checkpoint of their model for inference.
Expected behavior
Following guide as written should not result in crash.
Additionally, users should know how to use the model when it is saved locally (as checkpointing automatically does).
The text was updated successfully, but these errors were encountered: