mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-01 02:31:11 +06:00
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:
parent
504ae9181c
commit
5011efbec8
@ -558,8 +558,9 @@ def pipeline(
|
|||||||
pipeline will be allocated.
|
pipeline will be allocated.
|
||||||
device_map (`str` or `Dict[str, Union[int, str, torch.device]`, *optional*):
|
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
|
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
|
`device_map="auto"` to compute the most optimized `device_map` automatically (see
|
||||||
information](https://huggingface.co/docs/accelerate/main/en/big_modeling#accelerate.cpu_offload)
|
[here](https://huggingface.co/docs/accelerate/main/en/package_reference/big_modeling#accelerate.cpu_offload)
|
||||||
|
for more information).
|
||||||
|
|
||||||
<Tip warning={true}>
|
<Tip warning={true}>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user