Fix task guide formatting (#21409)

fix formatting
This commit is contained in:
Steven Liu
2023-02-02 10:06:26 -08:00
committed by GitHub
parent a6d8a149a8
commit 0a75717602
9 changed files with 9 additions and 0 deletions

View File

@@ -193,6 +193,7 @@ Your `compute_metrics` function is ready to go now, and you'll return to it when
If you aren't familiar with finetuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#train-with-pytorch-trainer)! If you aren't familiar with finetuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#train-with-pytorch-trainer)!
</Tip> </Tip>
You're ready to start training your model now! Load Wav2Vec2 with [`AutoModelForAudioClassification`] along with the number of expected labels, and the label mappings: You're ready to start training your model now! Load Wav2Vec2 with [`AutoModelForAudioClassification`] along with the number of expected labels, and the label mappings:
```py ```py

View File

@@ -209,6 +209,7 @@ Use the end-of-sequence token as the padding token and set `mlm=False`. This wil
If you aren't familiar with finetuning a model with the [`Trainer`], take a look at the [basic tutorial](../training#train-with-pytorch-trainer)! If you aren't familiar with finetuning a model with the [`Trainer`], take a look at the [basic tutorial](../training#train-with-pytorch-trainer)!
</Tip> </Tip>
You're ready to start training your model now! Load DistilGPT2 with [`AutoModelForCausalLM`]: You're ready to start training your model now! Load DistilGPT2 with [`AutoModelForCausalLM`]:
```py ```py

View File

@@ -203,6 +203,7 @@ Use the end-of-sequence token as the padding token and specify `mlm_probability`
If you aren't familiar with finetuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#train-with-pytorch-trainer)! If you aren't familiar with finetuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#train-with-pytorch-trainer)!
</Tip> </Tip>
You're ready to start training your model now! Load DistilRoBERTa with [`AutoModelForMaskedLM`]: You're ready to start training your model now! Load DistilRoBERTa with [`AutoModelForMaskedLM`]:
```py ```py

View File

@@ -241,6 +241,7 @@ Your `compute_metrics` function is ready to go now, and you'll return to it when
If you aren't familiar with finetuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#train-with-pytorch-trainer)! If you aren't familiar with finetuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#train-with-pytorch-trainer)!
</Tip> </Tip>
You're ready to start training your model now! Load BERT with [`AutoModelForMultipleChoice`]: You're ready to start training your model now! Load BERT with [`AutoModelForMultipleChoice`]:
```py ```py

View File

@@ -196,6 +196,7 @@ Now create a batch of examples using [`DefaultDataCollator`]. Unlike other data
If you aren't familiar with finetuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#train-with-pytorch-trainer)! If you aren't familiar with finetuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#train-with-pytorch-trainer)!
</Tip> </Tip>
You're ready to start training your model now! Load DistilBERT with [`AutoModelForQuestionAnswering`]: You're ready to start training your model now! Load DistilBERT with [`AutoModelForQuestionAnswering`]:
```py ```py

View File

@@ -155,6 +155,7 @@ Before you start training your model, create a map of the expected ids to their
If you aren't familiar with finetuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#train-with-pytorch-trainer)! If you aren't familiar with finetuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#train-with-pytorch-trainer)!
</Tip> </Tip>
You're ready to start training your model now! Load DistilBERT with [`AutoModelForSequenceClassification`] along with the number of expected labels, and the label mappings: You're ready to start training your model now! Load DistilBERT with [`AutoModelForSequenceClassification`] along with the number of expected labels, and the label mappings:
```py ```py

View File

@@ -176,6 +176,7 @@ Your `compute_metrics` function is ready to go now, and you'll return to it when
If you aren't familiar with finetuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#train-with-pytorch-trainer)! If you aren't familiar with finetuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#train-with-pytorch-trainer)!
</Tip> </Tip>
You're ready to start training your model now! Load T5 with [`AutoModelForSeq2SeqLM`]: You're ready to start training your model now! Load T5 with [`AutoModelForSeq2SeqLM`]:
```py ```py

View File

@@ -261,6 +261,7 @@ Before you start training your model, create a map of the expected ids to their
If you aren't familiar with finetuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#train-with-pytorch-trainer)! If you aren't familiar with finetuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#train-with-pytorch-trainer)!
</Tip> </Tip>
You're ready to start training your model now! Load DistilBERT with [`AutoModelForTokenClassification`] along with the number of expected labels, and the label mappings: You're ready to start training your model now! Load DistilBERT with [`AutoModelForTokenClassification`] along with the number of expected labels, and the label mappings:
```py ```py

View File

@@ -185,6 +185,7 @@ Your `compute_metrics` function is ready to go now, and you'll return to it when
If you aren't familiar with finetuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#train-with-pytorch-trainer)! If you aren't familiar with finetuning a model with the [`Trainer`], take a look at the basic tutorial [here](../training#train-with-pytorch-trainer)!
</Tip> </Tip>
You're ready to start training your model now! Load T5 with [`AutoModelForSeq2SeqLM`]: You're ready to start training your model now! Load T5 with [`AutoModelForSeq2SeqLM`]:
```py ```py