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

Clarify use_fast parameter in docstring #20840

Merged
merged 3 commits into from
Dec 20, 2022

Conversation

stevhliu
Copy link
Member

This PR addresses the ambiguity of the use_fast parameter raised in #20817.

Copy link
Contributor

@stas00 stas00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great, made a minor suggestion if it resonates.

So as you added an additional suggestion to check architectures - what happens if the architecture supports it but the model doesn't? as is the case now with OPT models - some do and some don't.

src/transformers/models/auto/tokenization_auto.py Outdated Show resolved Hide resolved
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Dec 19, 2022

The documentation is not available anymore as the PR was closed or merged.

@stevhliu
Copy link
Member Author

what happens if the architecture supports it but the model doesn't?

Hmm that's a good question! Do you happen to know if any of the other architectures have this issue or if it is just a bug with OPT? I'll remove the suggestion to check the supported framework list so we don't end up confusing anyone.

@stas00
Copy link
Contributor

stas00 commented Dec 19, 2022

It's the first time I run into this inconsistency across models of the same arch, but I have never needed to ensure it was fast before so who knows it may have happened a lot and I wasn't the wiser.

So +1 to remove the suggestion unless we somehow can stand behind it.

@sgugger
Copy link
Collaborator

sgugger commented Dec 20, 2022

This was the bug for OPT, so it shouldn't happen for other models.

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@stevhliu stevhliu merged commit 5eecf3f into huggingface:main Dec 20, 2022
@stevhliu stevhliu deleted the use-fast-docstring branch December 20, 2022 16:42
MKhalusova pushed a commit to MKhalusova/transformers that referenced this pull request Dec 28, 2022
* clarify use_fast parameter

* make style

* remove check frameworks, apply review
amyeroberts pushed a commit to amyeroberts/transformers that referenced this pull request Jan 4, 2023
* clarify use_fast parameter

* make style

* remove check frameworks, apply review
silverriver pushed a commit to silverriver/transformers that referenced this pull request Jan 6, 2023
* clarify use_fast parameter

* make style

* remove check frameworks, apply review
venkat-natchi pushed a commit to venkat-natchi/transformers that referenced this pull request Jan 22, 2023
* clarify use_fast parameter

* make style

* remove check frameworks, apply review
miyu386 pushed a commit to miyu386/transformers that referenced this pull request Feb 9, 2023
* clarify use_fast parameter

* make style

* remove check frameworks, apply review
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.

5 participants