Fix link in pipeline device map (#20517)

* fix link in pipeline device map

* oops this is the correct link

* make style
This commit is contained in:
Steven Liu 2022-12-01 09:58:44 -08:00 committed by GitHub
parent 504ae9181c
commit 5011efbec8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -558,8 +558,9 @@ def pipeline(
pipeline will be allocated.
device_map (`str` or `Dict[str, Union[int, str, torch.device]`, *optional*):
Sent directly as `model_kwargs` (just a simpler shortcut). When `accelerate` library is present, set
`device_map="auto"` to compute the most optimized `device_map` automatically. [More
information](https://huggingface.co/docs/accelerate/main/en/big_modeling#accelerate.cpu_offload)
`device_map="auto"` to compute the most optimized `device_map` automatically (see
[here](https://huggingface.co/docs/accelerate/main/en/package_reference/big_modeling#accelerate.cpu_offload)
for more information).
<Tip warning={true}>