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
caff779d
Unverified
Commit
caff779d
authored
Nov 26, 2024
by
jp
Committed by
GitHub
Nov 26, 2024
Browse files
Fix: docs typo (#2777)
Fix: typo in model loading code Fix typo in model loading code
parent
892a26e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/supported_models.md
docs/source/supported_models.md
+1
-1
No files found.
docs/source/supported_models.md
View file @
caff779d
...
@@ -43,7 +43,7 @@ If the above list lacks the model you would like to serve, depending on the mode
...
@@ -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"
)
```
```
...
...
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