Fix links in guides (#16182)

* 🖍 fix links in guides

* 🖍 apply feedback
This commit is contained in:
Steven Liu
2022-03-18 14:16:16 -07:00
committed by GitHub
parent 277fc2cc78
commit ffc319e7b8
10 changed files with 21 additions and 21 deletions

View File

@@ -171,7 +171,7 @@ Load Wav2Vec2 with [`AutoModelForCTC`]. For `ctc_loss_reduction`, it is often be
<Tip> <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> </Tip>

View File

@@ -106,7 +106,7 @@ Load Wav2Vec2 with [`AutoModelForAudioClassification`]. Specify the number of la
<Tip> <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> </Tip>

View File

@@ -126,7 +126,7 @@ Load ViT with [`AutoModelForImageClassification`]. Specify the number of labels,
<Tip> <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> </Tip>

View File

@@ -212,7 +212,7 @@ Load DistilGPT2 with [`AutoModelForCausalLM`]:
<Tip> <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> </Tip>
@@ -247,7 +247,7 @@ To fine-tune a model in TensorFlow is just as easy, with only a few differences.
<Tip> <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> </Tip>
@@ -317,7 +317,7 @@ Load DistilRoBERTa with [`AutoModelForMaskedlM`]:
<Tip> <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> </Tip>
@@ -353,7 +353,7 @@ To fine-tune a model in TensorFlow is just as easy, with only a few differences.
<Tip> <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> </Tip>

View File

@@ -188,7 +188,7 @@ Load BERT with [`AutoModelForMultipleChoice`]:
<Tip> <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> </Tip>
@@ -227,7 +227,7 @@ To fine-tune a model in TensorFlow is just as easy, with only a few differences.
<Tip> <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> </Tip>

View File

@@ -163,7 +163,7 @@ Load DistilBERT with [`AutoModelForQuestionAnswering`]:
<Tip> <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> </Tip>
@@ -202,7 +202,7 @@ To fine-tune a model in TensorFlow is just as easy, with only a few differences.
<Tip> <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> </Tip>

View File

@@ -103,7 +103,7 @@ Load DistilBERT with [`AutoModelForSequenceClassification`] along with the numbe
<Tip> <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> </Tip>
@@ -147,21 +147,21 @@ To fine-tune a model in TensorFlow is just as easy, with only a few differences.
<Tip> <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> </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: 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 ```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"], ... columns=["attention_mask", "input_ids", "label"],
... shuffle=True, ... shuffle=True,
... batch_size=16, ... batch_size=16,
... collate_fn=data_collator, ... 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"], ... columns=["attention_mask", "input_ids", "label"],
... shuffle=False, ... shuffle=False,
... batch_size=16, ... batch_size=16,

View File

@@ -122,7 +122,7 @@ Load T5 with [`AutoModelForSeq2SeqLM`]:
<Tip> <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> </Tip>
@@ -163,7 +163,7 @@ To fine-tune a model in TensorFlow is just as easy, with only a few differences.
<Tip> <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> </Tip>

View File

@@ -163,7 +163,7 @@ Load DistilBERT with [`AutoModelForTokenClassification`] along with the number o
<Tip> <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> </Tip>
@@ -202,7 +202,7 @@ To fine-tune a model in TensorFlow is just as easy, with only a few differences.
<Tip> <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> </Tip>

View File

@@ -124,7 +124,7 @@ Load T5 with [`AutoModelForSeq2SeqLM`]:
<Tip> <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> </Tip>
@@ -165,7 +165,7 @@ To fine-tune a model in TensorFlow is just as easy, with only a few differences.
<Tip> <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> </Tip>