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
# Use a pipeline as a high-level helperfromtransformersimportpipelinepipe=pipeline("pair-classification", model="sgugger/test-dynamic-pipeline",trust_remote_code=True)
the pair-classification task is present in the config.json
what needs to be fixed
the trust_remote_code = True is essential (MUST FIX THIS ONE)
the task does not matter much (the pipeline is already customly built) i'll leave the task as an optional feature to you to decide either to fix it or not (recommend we do to anticipate any upcoming features such as multiple pipelines in the same repo) (OPTIONAL)
The text was updated successfully, but these errors were encountered:
given a repo with a custom pipeline and not a custom model
the
pipelineSnippet
is wrongly annotatedwhat is present
expected snippet
the
pair-classification
task is present in the config.jsonwhat needs to be fixed
trust_remote_code = True
is essential (MUST FIX THIS ONE)The text was updated successfully, but these errors were encountered: