Skip to content

Commit

Permalink
[Doc Fix] Fix model name path in the transformers doc for AutoClasses (
Browse files Browse the repository at this point in the history
…#24329)

fix model name path

Co-authored-by: Ritesh Ghorse <[email protected]>
  • Loading branch information
riteshghorse and Ritesh Ghorse authored Jun 19, 2023
1 parent c003c8c commit 20273ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/en/tasks/masked_language_modeling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ Tokenize the text and return the `input_ids` as PyTorch tensors. You'll also nee
```py
>>> from transformers import AutoTokenizer

>>> tokenizer = AutoTokenizer.from_pretrained("my_awesome_eli5_mlm_model")
>>> tokenizer = AutoTokenizer.from_pretrained("stevhliu/my_awesome_eli5_mlm_model")
>>> inputs = tokenizer(text, return_tensors="pt")
>>> mask_token_index = torch.where(inputs["input_ids"] == tokenizer.mask_token_id)[1]
```
Expand Down Expand Up @@ -409,7 +409,7 @@ Tokenize the text and return the `input_ids` as TensorFlow tensors. You'll also
```py
>>> from transformers import AutoTokenizer

>>> tokenizer = AutoTokenizer.from_pretrained("my_awesome_eli5_mlm_model")
>>> tokenizer = AutoTokenizer.from_pretrained("stevhliu/my_awesome_eli5_mlm_model")
>>> inputs = tokenizer(text, return_tensors="tf")
>>> mask_token_index = tf.where(inputs["input_ids"] == tokenizer.mask_token_id)[0, 1]
```
Expand Down

0 comments on commit 20273ee

Please sign in to comment.