Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
2f8acfea
Unverified
Commit
2f8acfea
authored
Aug 21, 2023
by
Francisco Kurucz
Committed by
GitHub
Aug 21, 2023
Browse files
Fix test_modeling_mpt typo in model id (#25606)
Fix model id in get_large_model_config on file test_modeling_mpt
parent
f09db47a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/models/mpt/test_modeling_mpt.py
tests/models/mpt/test_modeling_mpt.py
+1
-1
No files found.
tests/models/mpt/test_modeling_mpt.py
View file @
2f8acfea
...
...
@@ -95,7 +95,7 @@ class MptModelTester:
self
.
pad_token_id
=
vocab_size
-
1
def
get_large_model_config
(
self
):
return
MptConfig
.
from_pretrained
(
"mosaicml/mpt-7"
)
return
MptConfig
.
from_pretrained
(
"mosaicml/mpt-7
b
"
)
def
prepare_config_and_inputs
(
self
,
gradient_checkpointing
=
False
):
input_ids
=
ids_tensor
([
self
.
batch_size
,
self
.
seq_length
],
self
.
vocab_size
)
...
...
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