Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
text-generation-inference
Commits
1d2cb356
Unverified
Commit
1d2cb356
authored
Dec 02, 2024
by
Nicolas Patry
Committed by
GitHub
Dec 02, 2024
Browse files
Fix doc. (#2792)
parent
d4718051
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
update_doc.py
update_doc.py
+1
-1
No files found.
update_doc.py
View file @
1d2cb356
...
@@ -16,7 +16,7 @@ If the above list lacks the model you would like to serve, depending on the mode
...
@@ -16,7 +16,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")
```
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment