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

Fix Data2VecTextForCasualLM example code documentation #20510

Merged

Conversation

JuanFKurucz
Copy link
Contributor

What does this PR do?

Fixes documentation of Data2VecTextForCasualLM example code, as it is currently importing Data2VecTextTokenizer, which does not exist, and the tokenizer is actually RobertaTokenizer. At the same time, the model name "data2vec-base" does not exist, and it doesn't particularly say to create one locally (with the change, it aims to "facebook/data2vec-text-base").

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Nov 30, 2022

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

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 for fixing! Can you just switch RobertaTokenizer to AutoTokenizer? In those instances we prefer to advertise the auto API which work all the time.

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!

@sgugger sgugger merged commit 68cfffc into huggingface:main Nov 30, 2022
@JuanFKurucz JuanFKurucz deleted the fix_data2vec_text_casuallm_example branch December 1, 2022 15:54
amyeroberts pushed a commit to amyeroberts/transformers that referenced this pull request Dec 7, 2022
…0510)

* Fix Data2VecTextForCasualLM example code documentation

* Change RobertaTokenizer to AutoTokenizer in data2vectext example code
mpierrau pushed a commit to mpierrau/transformers that referenced this pull request Dec 15, 2022
…0510)

* Fix Data2VecTextForCasualLM example code documentation

* Change RobertaTokenizer to AutoTokenizer in data2vectext example code
miyu386 pushed a commit to miyu386/transformers that referenced this pull request Feb 9, 2023
…0510)

* Fix Data2VecTextForCasualLM example code documentation

* Change RobertaTokenizer to AutoTokenizer in data2vectext example code
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.

None yet

3 participants