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
0779fc8e
Unverified
Commit
0779fc8e
authored
Jul 25, 2023
by
Connor Henderson
Committed by
GitHub
Jul 25, 2023
Browse files
Edit err message and comment in `test_model_is_small` (#25087)
* Edit err message and comment in * put back 80M comment
parent
2fac3422
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_modeling_common.py
tests/test_modeling_common.py
+1
-1
No files found.
tests/test_modeling_common.py
View file @
0779fc8e
...
...
@@ -2714,7 +2714,7 @@ class ModelTesterMixin:
num_params
=
model
.
num_parameters
()
assert
(
num_params
<
1000000
),
f
"
{
model_class
}
is too big for the common tests (
{
num_params
}
)! It should have
200k
max."
),
f
"
{
model_class
}
is too big for the common tests (
{
num_params
}
)! It should have
1M
max."
global_rng
=
random
.
Random
()
...
...
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