Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
faf4ff59
Unverified
Commit
faf4ff59
authored
Feb 15, 2022
by
Stas Bekman
Committed by
GitHub
Feb 15, 2022
Browse files
[pipeline doc] fix api (#15660)
* [pipeline doc] fix api * remove duplicate
parent
2e12b907
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/transformers/pipelines/__init__.py
src/transformers/pipelines/__init__.py
+2
-3
No files found.
src/transformers/pipelines/__init__.py
View file @
faf4ff59
...
@@ -444,7 +444,7 @@ def pipeline(
...
@@ -444,7 +444,7 @@ def pipeline(
If no framework is specified, will default to the one currently installed. If no framework is specified and
If no framework is specified, will default to the one currently installed. If no framework is specified and
both frameworks are installed, will default to the framework of the `model`, or to PyTorch if no model is
both frameworks are installed, will default to the framework of the `model`, or to PyTorch if no model is
provided.
provided.
revision(`str`, *optional*, defaults to `"main"`):
revision
(`str`, *optional*, defaults to `"main"`):
When passing a task name or a string model identifier: The specific model version to use. It can be a
When passing a task name or a string model identifier: The specific model version to use. It can be a
branch name, a tag name, or a commit id, since we use a git-based system for storing models and other
branch name, a tag name, or a commit id, since we use a git-based system for storing models and other
artifacts on huggingface.co, so `revision` can be any identifier allowed by git.
artifacts on huggingface.co, so `revision` can be any identifier allowed by git.
...
@@ -452,8 +452,7 @@ def pipeline(
...
@@ -452,8 +452,7 @@ def pipeline(
Whether or not to use a Fast tokenizer if possible (a [`PreTrainedTokenizerFast`]).
Whether or not to use a Fast tokenizer if possible (a [`PreTrainedTokenizerFast`]).
use_auth_token (`str` or *bool*, *optional*):
use_auth_token (`str` or *bool*, *optional*):
The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated
The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated
when running `transformers-cli login` (stored in `~/.huggingface`). revision(`str`, *optional*, defaults to
when running `transformers-cli login` (stored in `~/.huggingface`).
`"main"`):
model_kwargs:
model_kwargs:
Additional dictionary of keyword arguments passed along to the model's `from_pretrained(...,
Additional dictionary of keyword arguments passed along to the model's `from_pretrained(...,
**model_kwargs)` function.
**model_kwargs)` function.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment