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
The argument `trust_remote_code` is to be used with Auto classes. It has no effect here and is ignored.
but if we remove it, ad the pipeline actually needs to load a custom pipeline or model, you get an error.
pipe = pipeline(
task="custom-task",
model=local_model_path,
# trust_remote_code=True,
)
ValueError: Loading this pipeline requires you to execute the code in the pipeline file in that repo on your local machine. Make sure you have read the code there to avoid malicious use, then set the option `trust_remote_code=True` to remove this error.
Who can help?
No response
Information
The official example scripts
My own modified scripts
Tasks
An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
My own task or dataset (give details below)
Reproduction
Above
Expected behavior
Should not raise a warning.
The text was updated successfully, but these errors were encountered:
System Info
Doing
raises a warning:
but if we remove it, ad the pipeline actually needs to load a custom pipeline or model, you get an error.
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Above
Expected behavior
Should not raise a warning.
The text was updated successfully, but these errors were encountered: