From 0a757176029640a9c6a5f2751d97b7c6bfb0422b Mon Sep 17 00:00:00 2001 From: Steven Liu <59462357+stevhliu@users.noreply.github.com> Date: Thu, 2 Feb 2023 10:06:26 -0800 Subject: [PATCH] Fix task guide formatting (#21409) fix formatting --- docs/source/en/tasks/audio_classification.mdx | 1 + docs/source/en/tasks/language_modeling.mdx | 1 + docs/source/en/tasks/masked_language_modeling.mdx | 1 + docs/source/en/tasks/multiple_choice.mdx | 1 + docs/source/en/tasks/question_answering.mdx | 1 + docs/source/en/tasks/sequence_classification.mdx | 1 + docs/source/en/tasks/summarization.mdx | 1 + docs/source/en/tasks/token_classification.mdx | 1 + docs/source/en/tasks/translation.mdx | 1 + 9 files changed, 9 insertions(+) diff --git a/docs/source/en/tasks/audio_classification.mdx b/docs/source/en/tasks/audio_classification.mdx index 403fb42326..75c278c6f4 100644 --- a/docs/source/en/tasks/audio_classification.mdx +++ b/docs/source/en/tasks/audio_classification.mdx @@ -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)! + 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 diff --git a/docs/source/en/tasks/language_modeling.mdx b/docs/source/en/tasks/language_modeling.mdx index 431ad64aa4..11cffdbe50 100644 --- a/docs/source/en/tasks/language_modeling.mdx +++ b/docs/source/en/tasks/language_modeling.mdx @@ -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)! + You're ready to start training your model now! Load DistilGPT2 with [`AutoModelForCausalLM`]: ```py diff --git a/docs/source/en/tasks/masked_language_modeling.mdx b/docs/source/en/tasks/masked_language_modeling.mdx index e7d025f1be..001cdcfaa8 100644 --- a/docs/source/en/tasks/masked_language_modeling.mdx +++ b/docs/source/en/tasks/masked_language_modeling.mdx @@ -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)! + You're ready to start training your model now! Load DistilRoBERTa with [`AutoModelForMaskedLM`]: ```py diff --git a/docs/source/en/tasks/multiple_choice.mdx b/docs/source/en/tasks/multiple_choice.mdx index 6c650a98cd..295fbf763c 100644 --- a/docs/source/en/tasks/multiple_choice.mdx +++ b/docs/source/en/tasks/multiple_choice.mdx @@ -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)! + You're ready to start training your model now! Load BERT with [`AutoModelForMultipleChoice`]: ```py diff --git a/docs/source/en/tasks/question_answering.mdx b/docs/source/en/tasks/question_answering.mdx index d473104775..70f5b7c47b 100644 --- a/docs/source/en/tasks/question_answering.mdx +++ b/docs/source/en/tasks/question_answering.mdx @@ -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)! + You're ready to start training your model now! Load DistilBERT with [`AutoModelForQuestionAnswering`]: ```py diff --git a/docs/source/en/tasks/sequence_classification.mdx b/docs/source/en/tasks/sequence_classification.mdx index cbb4574573..66a00c3b6c 100644 --- a/docs/source/en/tasks/sequence_classification.mdx +++ b/docs/source/en/tasks/sequence_classification.mdx @@ -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)! + 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 diff --git a/docs/source/en/tasks/summarization.mdx b/docs/source/en/tasks/summarization.mdx index 0305cfbb72..f8127a8aab 100644 --- a/docs/source/en/tasks/summarization.mdx +++ b/docs/source/en/tasks/summarization.mdx @@ -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)! + You're ready to start training your model now! Load T5 with [`AutoModelForSeq2SeqLM`]: ```py diff --git a/docs/source/en/tasks/token_classification.mdx b/docs/source/en/tasks/token_classification.mdx index f8934265ed..30b98759ca 100644 --- a/docs/source/en/tasks/token_classification.mdx +++ b/docs/source/en/tasks/token_classification.mdx @@ -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)! + 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 diff --git a/docs/source/en/tasks/translation.mdx b/docs/source/en/tasks/translation.mdx index 3a2aef0fbe..f1a03b8087 100644 --- a/docs/source/en/tasks/translation.mdx +++ b/docs/source/en/tasks/translation.mdx @@ -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)! + You're ready to start training your model now! Load T5 with [`AutoModelForSeq2SeqLM`]: ```py