Unverified Commit faf4ff59 authored by Stas Bekman's avatar Stas Bekman Committed by GitHub
Browse files

[pipeline doc] fix api (#15660)

* [pipeline doc] fix api

* remove duplicate
parent 2e12b907
...@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment