mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +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.
|
||||
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}>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user