-
Notifications
You must be signed in to change notification settings - Fork 27.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More fixes for doctest #30265
More fixes for doctest #30265
Conversation
@@ -165,6 +165,7 @@ docs/source/en/model_doc/megatron-bert.md | |||
docs/source/en/model_doc/megatron_gpt2.md | |||
docs/source/en/model_doc/mgp-str.md | |||
docs/source/en/model_doc/mistral.md | |||
docs/source/en/model_doc/mixtral.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no way to run this on T4
@@ -506,6 +506,8 @@ def get_all_doctest_files() -> List[str]: | |||
test_files_to_run = py_files + md_files | |||
# change to use "/" as path separator | |||
test_files_to_run = ["/".join(Path(x).parts) for x in test_files_to_run] | |||
# don't run doctest for files in `src/transformers/models/deprecated` | |||
test_files_to_run = [x for x in test_files_to_run if "models/deprecated" not in test_files_to_run] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't run doctest on deprecated models
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful - thanks for tackling all these tests! 💪
* fix * update * update * fix --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
* fix * update * update * fix --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
* fix * update * update * fix --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
What does this PR do?
I am just trying to fix more that I could for doctests.