Skip to content
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

Merged
merged 4 commits into from
Apr 16, 2024
Merged

More fixes for doctest #30265

merged 4 commits into from
Apr 16, 2024

Conversation

ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Apr 16, 2024

What does this PR do?

I am just trying to fix more that I could for doctests.

@ydshieh ydshieh changed the title More fix for doctest More fixes for doctest Apr 16, 2024
@@ -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
Copy link
Collaborator Author

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]
Copy link
Collaborator Author

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

@ydshieh ydshieh requested a review from amyeroberts April 16, 2024 09:22
@HuggingFaceDocBuilderDev

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.

@ydshieh ydshieh marked this pull request as draft April 16, 2024 09:41
@ydshieh ydshieh removed the request for review from amyeroberts April 16, 2024 09:41
@ydshieh ydshieh marked this pull request as ready for review April 16, 2024 09:48
@ydshieh ydshieh requested a review from amyeroberts April 16, 2024 09:48
Copy link
Collaborator

@amyeroberts amyeroberts left a 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! 💪

@ydshieh ydshieh merged commit cbc2cc1 into main Apr 16, 2024
20 checks passed
@ydshieh ydshieh deleted the pr_for_fix_doctest_after_merge branch April 16, 2024 09:58
zucchini-nlp pushed a commit to zucchini-nlp/transformers that referenced this pull request Apr 18, 2024
* fix

* update

* update

* fix

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
ArthurZucker pushed a commit that referenced this pull request Apr 22, 2024
* fix

* update

* update

* fix

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
itazap pushed a commit that referenced this pull request May 14, 2024
* fix

* update

* update

* fix

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants