Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/tasks/asr.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ Load Wav2Vec2 with [`AutoModelForCTC`]. For `ctc_loss_reduction`, it is often be

<Tip>

If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](training#finetune-with-trainer)!
If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#finetune-with-trainer)!

</Tip>

Expand Down
2 changes: 1 addition & 1 deletion docs/source/tasks/audio_classification.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Load Wav2Vec2 with [`AutoModelForAudioClassification`]. Specify the number of la

<Tip>

If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](training#finetune-with-trainer)!
If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#finetune-with-trainer)!

</Tip>

Expand Down
2 changes: 1 addition & 1 deletion docs/source/tasks/image_classification.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Load ViT with [`AutoModelForImageClassification`]. Specify the number of labels,

<Tip>

If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](training#finetune-with-trainer)!
If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#finetune-with-trainer)!

</Tip>

Expand Down
8 changes: 4 additions & 4 deletions docs/source/tasks/language_modeling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ Load DistilGPT2 with [`AutoModelForCausalLM`]:

<Tip>

If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](training#finetune-with-trainer)!
If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#finetune-with-trainer)!

</Tip>

Expand Down Expand Up @@ -247,7 +247,7 @@ To fine-tune a model in TensorFlow is just as easy, with only a few differences.

<Tip>

If you aren't familiar with fine-tuning a model with Keras, take a look at the basic tutorial [here](training#finetune-with-keras)!
If you aren't familiar with fine-tuning a model with Keras, take a look at the basic tutorial [here](../training#finetune-with-keras)!

</Tip>

Expand Down Expand Up @@ -317,7 +317,7 @@ Load DistilRoBERTa with [`AutoModelForMaskedlM`]:

<Tip>

If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](training#finetune-with-trainer)!
If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#finetune-with-trainer)!

</Tip>

Expand Down Expand Up @@ -353,7 +353,7 @@ To fine-tune a model in TensorFlow is just as easy, with only a few differences.

<Tip>

If you aren't familiar with fine-tuning a model with Keras, take a look at the basic tutorial [here](training#finetune-with-keras)!
If you aren't familiar with fine-tuning a model with Keras, take a look at the basic tutorial [here](../training#finetune-with-keras)!

</Tip>

Expand Down
4 changes: 2 additions & 2 deletions docs/source/tasks/multiple_choice.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Load BERT with [`AutoModelForMultipleChoice`]:

<Tip>

If you aren't familiar with fine-tuning a model with Trainer, take a look at the basic tutorial [here](training#finetune-with-trainer)!
If you aren't familiar with fine-tuning a model with Trainer, take a look at the basic tutorial [here](../training#finetune-with-trainer)!

</Tip>

Expand Down Expand Up @@ -227,7 +227,7 @@ To fine-tune a model in TensorFlow is just as easy, with only a few differences.

<Tip>

If you aren't familiar with fine-tuning a model with Keras, take a look at the basic tutorial [here](training#finetune-with-keras)!
If you aren't familiar with fine-tuning a model with Keras, take a look at the basic tutorial [here](../training#finetune-with-keras)!

</Tip>

Expand Down
4 changes: 2 additions & 2 deletions docs/source/tasks/question_answering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Load DistilBERT with [`AutoModelForQuestionAnswering`]:

<Tip>

If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](training#finetune-with-trainer)!
If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#finetune-with-trainer)!

</Tip>

Expand Down Expand Up @@ -202,7 +202,7 @@ To fine-tune a model in TensorFlow is just as easy, with only a few differences.

<Tip>

If you aren't familiar with fine-tuning a model with Keras, take a look at the basic tutorial [here](training#finetune-with-keras)!
If you aren't familiar with fine-tuning a model with Keras, take a look at the basic tutorial [here](../training#finetune-with-keras)!

</Tip>

Expand Down
8 changes: 4 additions & 4 deletions docs/source/tasks/sequence_classification.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Load DistilBERT with [`AutoModelForSequenceClassification`] along with the numbe

<Tip>

If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](training#finetune-with-trainer)!
If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#finetune-with-trainer)!

</Tip>

Expand Down Expand Up @@ -147,21 +147,21 @@ To fine-tune a model in TensorFlow is just as easy, with only a few differences.

<Tip>

If you aren't familiar with fine-tuning a model with Keras, take a look at the basic tutorial [here](training#finetune-with-keras)!
If you aren't familiar with fine-tuning a model with Keras, take a look at the basic tutorial [here](../training#finetune-with-keras)!

</Tip>

Convert your datasets to the `tf.data.Dataset` format with [`to_tf_dataset`](https://huggingface.co/docs/datasets/package_reference/main_classes.html#datasets.Dataset.to_tf_dataset). Specify inputs and labels in `columns`, whether to shuffle the dataset order, batch size, and the data collator:

```py
>>> tf_train_dataset = tokenized_imdb["train"].to_tf_dataset(
>>> tf_train_set = tokenized_imdb["train"].to_tf_dataset(
... columns=["attention_mask", "input_ids", "label"],
... shuffle=True,
... batch_size=16,
... collate_fn=data_collator,
... )

>>> tf_validation_dataset = tokenized_imdb["train"].to_tf_dataset(
>>> tf_validation_set = tokenized_imdb["test"].to_tf_dataset(
... columns=["attention_mask", "input_ids", "label"],
... shuffle=False,
... batch_size=16,
Expand Down
4 changes: 2 additions & 2 deletions docs/source/tasks/summarization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Load T5 with [`AutoModelForSeq2SeqLM`]:

<Tip>

If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](training#finetune-with-trainer)!
If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#finetune-with-trainer)!

</Tip>

Expand Down Expand Up @@ -163,7 +163,7 @@ To fine-tune a model in TensorFlow is just as easy, with only a few differences.

<Tip>

If you aren't familiar with fine-tuning a model with Keras, take a look at the basic tutorial [here](training#finetune-with-keras)!
If you aren't familiar with fine-tuning a model with Keras, take a look at the basic tutorial [here](../training#finetune-with-keras)!

</Tip>

Expand Down
4 changes: 2 additions & 2 deletions docs/source/tasks/token_classification.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Load DistilBERT with [`AutoModelForTokenClassification`] along with the number o

<Tip>

If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](training#finetune-with-trainer)!
If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#finetune-with-trainer)!

</Tip>

Expand Down Expand Up @@ -202,7 +202,7 @@ To fine-tune a model in TensorFlow is just as easy, with only a few differences.

<Tip>

If you aren't familiar with fine-tuning a model with Keras, take a look at the basic tutorial [here](training#finetune-with-keras)!
If you aren't familiar with fine-tuning a model with Keras, take a look at the basic tutorial [here](../training#finetune-with-keras)!

</Tip>

Expand Down
4 changes: 2 additions & 2 deletions docs/source/tasks/translation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Load T5 with [`AutoModelForSeq2SeqLM`]:

<Tip>

If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](training#finetune-with-trainer)!
If you aren't familiar with fine-tuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#finetune-with-trainer)!

</Tip>

Expand Down Expand Up @@ -165,7 +165,7 @@ To fine-tune a model in TensorFlow is just as easy, with only a few differences.

<Tip>

If you aren't familiar with fine-tuning a model with Keras, take a look at the basic tutorial [here](training#finetune-with-keras)!
If you aren't familiar with fine-tuning a model with Keras, take a look at the basic tutorial [here](../training#finetune-with-keras)!

</Tip>

Expand Down