mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-01 18:51:14 +06:00
Update question_answering.md (#28694)
fix typo: from: "model = TFAutoModelForQuestionAnswering("distilbert-base-uncased")" to: model = TFAutoModelForQuestionAnswering.from_pretrained("distilbert-base-uncased")
This commit is contained in:
parent
2000095666
commit
24f1a00e4c
@ -271,7 +271,7 @@ Then you can load DistilBERT with [`TFAutoModelForQuestionAnswering`]:
|
|||||||
```py
|
```py
|
||||||
>>> from transformers import TFAutoModelForQuestionAnswering
|
>>> from transformers import TFAutoModelForQuestionAnswering
|
||||||
|
|
||||||
>>> model = TFAutoModelForQuestionAnswering("distilbert-base-uncased")
|
>>> model = TFAutoModelForQuestionAnswering.from_pretrained("distilbert-base-uncased")
|
||||||
```
|
```
|
||||||
|
|
||||||
Convert your datasets to the `tf.data.Dataset` format with [`~transformers.TFPreTrainedModel.prepare_tf_dataset`]:
|
Convert your datasets to the `tf.data.Dataset` format with [`~transformers.TFPreTrainedModel.prepare_tf_dataset`]:
|
||||||
|
Loading…
Reference in New Issue
Block a user