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
chenpangpang
transformers
Commits
14fc1a24
"test/ut/vscode:/vscode.git/clone" did not exist on "9fde0e8e003d894003ebafa5a30160f5fb9dc2c2"
Unverified
Commit
14fc1a24
authored
Apr 10, 2023
by
Kirill
Committed by
GitHub
Apr 10, 2023
Browse files
Fix quantization docs typo (#22666)
parent
3876fc68
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/en/main_classes/quantization.mdx
docs/source/en/main_classes/quantization.mdx
+1
-1
No files found.
docs/source/en/main_classes/quantization.mdx
View file @
14fc1a24
...
@@ -33,7 +33,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
...
@@ -33,7 +33,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
model_id
=
"bigscience/bloom-1b7"
model_id
=
"bigscience/bloom-1b7"
tokenizer
=
AutoTokenizer
.
from_pretrained
(
model_id
)
tokenizer
=
AutoTokenizer
.
from_pretrained
(
model_id
)
model
=
AutoModelForCausalLM
.
from_pretrained
(
model_id
,
device_map
==
"auto"
,
load_in_8bit
=
True
)
model
=
AutoModelForCausalLM
.
from_pretrained
(
model_id
,
device_map
=
"auto"
,
load_in_8bit
=
True
)
```
```
Then
,
use
your
model
as
you
would
usually
use
a
[`
PreTrainedModel
`].
Then
,
use
your
model
as
you
would
usually
use
a
[`
PreTrainedModel
`].
...
...
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