Unverified Commit c9a82be5 authored by Stas Bekman's avatar Stas Bekman Committed by GitHub
Browse files

[check_config_docstrings.py] improve diagnostics (#25012)

* [check_config_docstrings.py] improve diagnostics

* style

* rephrase

* fix
parent b257c46a
......@@ -85,7 +85,12 @@ def check_config_docstrings_have_checkpoints():
if len(configs_without_checkpoint) > 0:
message = "\n".join(sorted(configs_without_checkpoint))
raise ValueError(f"The following configurations don't contain any valid checkpoint:\n{message}")
raise ValueError(
f"The following configurations don't contain any valid checkpoint:\n{message}\n\n"
"The requirement is to include a link pointing to one of the models of this architecture in the "
"docstring of the config classes listed above. The link should have be a markdown format like "
"[myorg/mymodel](https://huggingface.co/myorg/mymodel)."
)
if __name__ == "__main__":
......
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