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
835b0a05
Unverified
Commit
835b0a05
authored
Sep 18, 2023
by
Sanchit Gandhi
Committed by
GitHub
Sep 18, 2023
Browse files
[Check] Fix config docstring (#26222)
parent
e5f7e03b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
utils/check_config_docstrings.py
utils/check_config_docstrings.py
+1
-4
No files found.
utils/check_config_docstrings.py
View file @
835b0a05
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
import
inspect
import
inspect
import
re
import
re
from
transformers
import
CTRLConfig
from
transformers.utils
import
direct_transformers_import
from
transformers.utils
import
direct_transformers_import
...
@@ -74,9 +73,7 @@ def get_checkpoint_from_config_class(config_class):
...
@@ -74,9 +73,7 @@ def get_checkpoint_from_config_class(config_class):
def
check_config_docstrings_have_checkpoints
():
def
check_config_docstrings_have_checkpoints
():
configs_without_checkpoint
=
[]
configs_without_checkpoint
=
[]
a
=
[
CTRLConfig
]
for
config_class
in
list
(
CONFIG_MAPPING
.
values
()):
for
config_class
in
a
:
# Skip deprecated models
# Skip deprecated models
if
"models.deprecated"
in
config_class
.
__module__
:
if
"models.deprecated"
in
config_class
.
__module__
:
continue
continue
...
...
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