We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent decde58 commit 5b2ba70Copy full SHA for 5b2ba70
src/transformers/pipelines/__init__.py
@@ -687,12 +687,14 @@ def pipeline(
687
688
code_revision = kwargs.pop("code_revision", None)
689
commit_hash = kwargs.pop("_commit_hash", None)
690
+ local_files_only = kwargs.pop("local_files_only", False)
691
692
hub_kwargs = {
693
"revision": revision,
694
"token": token,
695
"trust_remote_code": trust_remote_code,
696
"_commit_hash": commit_hash,
697
+ "local_files_only": local_files_only,
698
}
699
700
if task is None and model is None:
0 commit comments