Unverified Commit 835b0a05 authored by Sanchit Gandhi's avatar Sanchit Gandhi Committed by GitHub
Browse files

[Check] Fix config docstring (#26222)

parent e5f7e03b
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment