mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +00:00
Fix: typo in model loading code
Fix typo in model loading code
This commit is contained in:
parent
780531ec77
commit
a1dd3ffe25
@ -43,7 +43,7 @@ If the above list lacks the model you would like to serve, depending on the mode
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
# for causal LMs/text-generation models
|
# for causal LMs/text-generation models
|
||||||
AutoModelForCausalLM.from_pretrained(<model>, device_map="auto")`
|
AutoModelForCausalLM.from_pretrained(<model>, device_map="auto")
|
||||||
# or, for text-to-text generation models
|
# or, for text-to-text generation models
|
||||||
AutoModelForSeq2SeqLM.from_pretrained(<model>, device_map="auto")
|
AutoModelForSeq2SeqLM.from_pretrained(<model>, device_map="auto")
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user