"examples/legacy/seq2seq/utils.py" did not exist on "eaabaaf750613e00fdece7245ef04ca3d1a775a9"
Unverified Commit 074490b2 authored by Seb0's avatar Seb0 Committed by GitHub
Browse files

fix(docs): fix task guide links in model docs (#22226)

fix(docs): task guide links in model docs
parent 314cdf7c
...@@ -73,9 +73,9 @@ A list of official Hugging Face and community (indicated by 🌎) resources to h ...@@ -73,9 +73,9 @@ A list of official Hugging Face and community (indicated by 🌎) resources to h
- [`GPT2LMHeadModel`] is supported by this [causal language modeling example script](https://github.com/huggingface/transformers/tree/main/examples/pytorch/language-modeling#gpt-2gpt-and-causal-language-modeling), [text generation example script](https://github.com/huggingface/transformers/tree/main/examples/pytorch/text-generation), and [notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/language_modeling.ipynb). - [`GPT2LMHeadModel`] is supported by this [causal language modeling example script](https://github.com/huggingface/transformers/tree/main/examples/pytorch/language-modeling#gpt-2gpt-and-causal-language-modeling), [text generation example script](https://github.com/huggingface/transformers/tree/main/examples/pytorch/text-generation), and [notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/language_modeling.ipynb).
- [`TFGPT2LMHeadModel`] is supported by this [causal language modeling example script](https://github.com/huggingface/transformers/tree/main/examples/tensorflow/language-modeling#run_clmpy) and [notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/language_modeling-tf.ipynb). - [`TFGPT2LMHeadModel`] is supported by this [causal language modeling example script](https://github.com/huggingface/transformers/tree/main/examples/tensorflow/language-modeling#run_clmpy) and [notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/language_modeling-tf.ipynb).
- [`FlaxGPT2LMHeadModel`] is supported by this [causal language modeling example script](https://github.com/huggingface/transformers/tree/main/examples/flax/language-modeling#causal-language-modeling) and [notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/causal_language_modeling_flax.ipynb). - [`FlaxGPT2LMHeadModel`] is supported by this [causal language modeling example script](https://github.com/huggingface/transformers/tree/main/examples/flax/language-modeling#causal-language-modeling) and [notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/causal_language_modeling_flax.ipynb).
- [Text classification task guide](./tasks/sequence_classification) - [Text classification task guide](../tasks/sequence_classification)
- [Token classification task guide](./tasks/token_classification) - [Token classification task guide](../tasks/token_classification)
- [Causal language modeling task guide](./tasks/language_modeling) - [Causal language modeling task guide](../tasks/language_modeling)
## GPT2Config ## GPT2Config
......
...@@ -52,8 +52,8 @@ The `generate()` method can be used to generate text using GPT Neo model. ...@@ -52,8 +52,8 @@ The `generate()` method can be used to generate text using GPT Neo model.
## Documentation resources ## Documentation resources
- [Text classification task guide](./tasks/sequence_classification) - [Text classification task guide](../tasks/sequence_classification)
- [Causal language modeling task guide](./tasks/language_modeling) - [Causal language modeling task guide](../tasks/language_modeling)
## GPTNeoConfig ## GPTNeoConfig
......
...@@ -59,7 +59,7 @@ The `generate()` method can be used to generate text using GPT Neo model. ...@@ -59,7 +59,7 @@ The `generate()` method can be used to generate text using GPT Neo model.
## Documentation resources ## Documentation resources
- [Causal language modeling task guide](./tasks/language_modeling) - [Causal language modeling task guide](../tasks/language_modeling)
## GPTNeoXConfig ## GPTNeoXConfig
......
...@@ -49,7 +49,7 @@ The `generate()` method can be used to generate text using GPT NeoX Japanese mod ...@@ -49,7 +49,7 @@ The `generate()` method can be used to generate text using GPT NeoX Japanese mod
## Documentation resources ## Documentation resources
- [Causal language modeling task guide](./tasks/language_modeling) - [Causal language modeling task guide](../tasks/language_modeling)
## GPTNeoXJapaneseConfig ## GPTNeoXJapaneseConfig
......
...@@ -125,9 +125,9 @@ A list of official Hugging Face and community (indicated by 🌎) resources to h ...@@ -125,9 +125,9 @@ A list of official Hugging Face and community (indicated by 🌎) resources to h
- [`FlaxGPTJForCausalLM`] is supported by this [causal language modeling example script](https://github.com/huggingface/transformers/tree/main/examples/flax/language-modeling#causal-language-modeling) and [notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/causal_language_modeling_flax.ipynb). - [`FlaxGPTJForCausalLM`] is supported by this [causal language modeling example script](https://github.com/huggingface/transformers/tree/main/examples/flax/language-modeling#causal-language-modeling) and [notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/causal_language_modeling_flax.ipynb).
**Documentation resources** **Documentation resources**
- [Text classification task guide](./tasks/sequence_classification) - [Text classification task guide](../tasks/sequence_classification)
- [Question answering task guide](./tasks/question_answering) - [Question answering task guide](../tasks/question_answering)
- [Causal language modeling task guide](./tasks/language_modeling) - [Causal language modeling task guide](../tasks/language_modeling)
## GPTJConfig ## GPTJConfig
......
...@@ -42,8 +42,8 @@ This model was contributed by [patrickvonplaten](https://huggingface.co/patrickv ...@@ -42,8 +42,8 @@ This model was contributed by [patrickvonplaten](https://huggingface.co/patrickv
## Documentation resources ## Documentation resources
- [Audio classification task guide](./tasks/audio_classification) - [Audio classification task guide](../tasks/audio_classification)
- [Automatic speech recognition task guide](./tasks/asr) - [Automatic speech recognition task guide](../tasks/asr)
## HubertConfig ## HubertConfig
......
...@@ -38,11 +38,11 @@ This model was contributed by [kssteven](https://huggingface.co/kssteven). The o ...@@ -38,11 +38,11 @@ This model was contributed by [kssteven](https://huggingface.co/kssteven). The o
## Documentation resources ## Documentation resources
- [Text classification task guide](./tasks/sequence_classification) - [Text classification task guide](../tasks/sequence_classification)
- [Token classification task guide](./tasks/token_classification) - [Token classification task guide](../tasks/token_classification)
- [Question answering task guide](./tasks/question_answering) - [Question answering task guide](../tasks/question_answering)
- [Masked language modeling task guide](./tasks/masked_language_modeling) - [Masked language modeling task guide](../tasks/masked_language_modeling)
- [Multiple choice task guide](./tasks/masked_language_modeling) - [Multiple choice task guide](../tasks/masked_language_modeling)
## IBertConfig ## IBertConfig
......
...@@ -77,7 +77,7 @@ A list of official Hugging Face and community (indicated by 🌎) resources to h ...@@ -77,7 +77,7 @@ A list of official Hugging Face and community (indicated by 🌎) resources to h
- Demo notebooks for ImageGPT can be found [here](https://github.com/NielsRogge/Transformers-Tutorials/tree/master/ImageGPT). - Demo notebooks for ImageGPT can be found [here](https://github.com/NielsRogge/Transformers-Tutorials/tree/master/ImageGPT).
- [`ImageGPTForImageClassification`] is supported by this [example script](https://github.com/huggingface/transformers/tree/main/examples/pytorch/image-classification) and [notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_classification.ipynb). - [`ImageGPTForImageClassification`] is supported by this [example script](https://github.com/huggingface/transformers/tree/main/examples/pytorch/image-classification) and [notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_classification.ipynb).
- See also: [Image classification task guide](./tasks/image_classification) - See also: [Image classification task guide](../tasks/image_classification)
If you're interested in submitting a resource to be included here, please feel free to open a Pull Request and we'll review it! The resource should ideally demonstrate something new instead of duplicating an existing resource. If you're interested in submitting a resource to be included here, please feel free to open a Pull Request and we'll review it! The resource should ideally demonstrate something new instead of duplicating an existing resource.
......
...@@ -88,20 +88,20 @@ A list of official Hugging Face and community (indicated by 🌎) resources to h ...@@ -88,20 +88,20 @@ A list of official Hugging Face and community (indicated by 🌎) resources to h
- A notebook on how to [fine-tune LayoutLM on the FUNSD dataset with image embeddings](https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/LayoutLM/Add_image_embeddings_to_LayoutLM.ipynb). - A notebook on how to [fine-tune LayoutLM on the FUNSD dataset with image embeddings](https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/LayoutLM/Add_image_embeddings_to_LayoutLM.ipynb).
- See also: [Document question answering task guide](./tasks/document_question_answering) - See also: [Document question answering task guide](../tasks/document_question_answering)
<PipelineTag pipeline="text-classification" /> <PipelineTag pipeline="text-classification" />
- A notebook on how to [fine-tune LayoutLM for sequence classification on the RVL-CDIP dataset](https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/LayoutLM/Fine_tuning_LayoutLMForSequenceClassification_on_RVL_CDIP.ipynb). - A notebook on how to [fine-tune LayoutLM for sequence classification on the RVL-CDIP dataset](https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/LayoutLM/Fine_tuning_LayoutLMForSequenceClassification_on_RVL_CDIP.ipynb).
- [Text classification task guide](./tasks/sequence_classification) - [Text classification task guide](../tasks/sequence_classification)
<PipelineTag pipeline="token-classification" /> <PipelineTag pipeline="token-classification" />
- A notebook on how to [ fine-tune LayoutLM for token classification on the FUNSD dataset](https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLM/Fine_tuning_LayoutLMForTokenClassification_on_FUNSD.ipynb). - A notebook on how to [ fine-tune LayoutLM for token classification on the FUNSD dataset](https://github.com/NielsRogge/Transformers-Tutorials/blob/master/LayoutLM/Fine_tuning_LayoutLMForTokenClassification_on_FUNSD.ipynb).
- [Token classification task guide](./tasks/token_classification) - [Token classification task guide](../tasks/token_classification)
**Other resources** **Other resources**
- [Masked language modeling task guide](./tasks/masked_language_modeling) - [Masked language modeling task guide](../tasks/masked_language_modeling)
🚀 Deploy 🚀 Deploy
......
...@@ -268,10 +268,10 @@ print(encoding.keys()) ...@@ -268,10 +268,10 @@ print(encoding.keys())
## Documentation resources ## Documentation resources
- [Document question answering task guide](./tasks/document_question_answering) - [Document question answering task guide](../tasks/document_question_answering)
- [Text classification task guide](./tasks/sequence_classification) - [Text classification task guide](../tasks/sequence_classification)
- [Token classification task guide](./tasks/token_classification) - [Token classification task guide](../tasks/token_classification)
- [Question answering task guide](./tasks/question_answering) - [Question answering task guide](../tasks/question_answering)
## LayoutLMv2Config ## LayoutLMv2Config
......
...@@ -52,22 +52,22 @@ LayoutLMv3 is nearly identical to LayoutLMv2, so we've also included LayoutLMv2 ...@@ -52,22 +52,22 @@ LayoutLMv3 is nearly identical to LayoutLMv2, so we've also included LayoutLMv2
<PipelineTag pipeline="text-classification"/> <PipelineTag pipeline="text-classification"/>
- [`LayoutLMv2ForSequenceClassification`] is supported by this [notebook](https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv2/RVL-CDIP/Fine_tuning_LayoutLMv2ForSequenceClassification_on_RVL_CDIP.ipynb). - [`LayoutLMv2ForSequenceClassification`] is supported by this [notebook](https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv2/RVL-CDIP/Fine_tuning_LayoutLMv2ForSequenceClassification_on_RVL_CDIP.ipynb).
- [Text classification task guide](./tasks/sequence_classification) - [Text classification task guide](../tasks/sequence_classification)
<PipelineTag pipeline="token-classification"/> <PipelineTag pipeline="token-classification"/>
- [`LayoutLMv3ForTokenClassification`] is supported by this [example script](https://github.com/huggingface/transformers/tree/main/examples/research_projects/layoutlmv3) and [notebook](https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv3/Fine_tune_LayoutLMv3_on_FUNSD_(HuggingFace_Trainer).ipynb). - [`LayoutLMv3ForTokenClassification`] is supported by this [example script](https://github.com/huggingface/transformers/tree/main/examples/research_projects/layoutlmv3) and [notebook](https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv3/Fine_tune_LayoutLMv3_on_FUNSD_(HuggingFace_Trainer).ipynb).
- A [notebook](https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv2/FUNSD/Inference_with_LayoutLMv2ForTokenClassification.ipynb) for how to perform inference with [`LayoutLMv2ForTokenClassification`] and a [notebook](https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv2/FUNSD/True_inference_with_LayoutLMv2ForTokenClassification_%2B_Gradio_demo.ipynb) for how to perform inference when no labels are available with [`LayoutLMv2ForTokenClassification`]. - A [notebook](https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv2/FUNSD/Inference_with_LayoutLMv2ForTokenClassification.ipynb) for how to perform inference with [`LayoutLMv2ForTokenClassification`] and a [notebook](https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv2/FUNSD/True_inference_with_LayoutLMv2ForTokenClassification_%2B_Gradio_demo.ipynb) for how to perform inference when no labels are available with [`LayoutLMv2ForTokenClassification`].
- A [notebook](https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv2/FUNSD/Fine_tuning_LayoutLMv2ForTokenClassification_on_FUNSD_using_HuggingFace_Trainer.ipynb) for how to finetune [`LayoutLMv2ForTokenClassification`] with the 🤗 Trainer. - A [notebook](https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv2/FUNSD/Fine_tuning_LayoutLMv2ForTokenClassification_on_FUNSD_using_HuggingFace_Trainer.ipynb) for how to finetune [`LayoutLMv2ForTokenClassification`] with the 🤗 Trainer.
- [Token classification task guide](./tasks/token_classification) - [Token classification task guide](../tasks/token_classification)
<PipelineTag pipeline="question-answering"/> <PipelineTag pipeline="question-answering"/>
- [`LayoutLMv2ForQuestionAnswering`] is supported by this [notebook](https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv2/DocVQA/Fine_tuning_LayoutLMv2ForQuestionAnswering_on_DocVQA.ipynb). - [`LayoutLMv2ForQuestionAnswering`] is supported by this [notebook](https://colab.research.google.com/github/NielsRogge/Transformers-Tutorials/blob/master/LayoutLMv2/DocVQA/Fine_tuning_LayoutLMv2ForQuestionAnswering_on_DocVQA.ipynb).
- [Question answering task guide](./tasks/question_answering) - [Question answering task guide](../tasks/question_answering)
**Document question answering** **Document question answering**
- [Document question answering task guide](./tasks/document_question_answering) - [Document question answering task guide](../tasks/document_question_answering)
## LayoutLMv3Config ## LayoutLMv3Config
......
...@@ -57,10 +57,10 @@ This model was contributed by [patrickvonplaten](https://huggingface.co/patrickv ...@@ -57,10 +57,10 @@ This model was contributed by [patrickvonplaten](https://huggingface.co/patrickv
## Documentation resources ## Documentation resources
- [Text classification task guide](./tasks/sequence_classification) - [Text classification task guide](../tasks/sequence_classification)
- [Question answering task guide](./tasks/question_answering) - [Question answering task guide](../tasks/question_answering)
- [Translation task guide](./tasks/translation) - [Translation task guide](../tasks/translation)
- [Summarization task guide](./tasks/summarization) - [Summarization task guide](../tasks/summarization)
## LEDConfig ## LEDConfig
......
...@@ -68,7 +68,7 @@ A list of official Hugging Face and community (indicated by 🌎) resources to h ...@@ -68,7 +68,7 @@ A list of official Hugging Face and community (indicated by 🌎) resources to h
<PipelineTag pipeline="image-classification"/> <PipelineTag pipeline="image-classification"/>
- [`LevitForImageClassification`] is supported by this [example script](https://github.com/huggingface/transformers/tree/main/examples/pytorch/image-classification) and [notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_classification.ipynb). - [`LevitForImageClassification`] is supported by this [example script](https://github.com/huggingface/transformers/tree/main/examples/pytorch/image-classification) and [notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_classification.ipynb).
- See also: [Image classification task guide](./tasks/image_classification) - See also: [Image classification task guide](../tasks/image_classification)
If you're interested in submitting a resource to be included here, please feel free to open a Pull Request and we'll review it! The resource should ideally demonstrate something new instead of duplicating an existing resource. If you're interested in submitting a resource to be included here, please feel free to open a Pull Request and we'll review it! The resource should ideally demonstrate something new instead of duplicating an existing resource.
......
...@@ -53,9 +53,9 @@ A list of official Hugging Face and community (indicated by 🌎) resources to h ...@@ -53,9 +53,9 @@ A list of official Hugging Face and community (indicated by 🌎) resources to h
- Demo notebooks for LiLT can be found [here](https://github.com/NielsRogge/Transformers-Tutorials/tree/master/LiLT). - Demo notebooks for LiLT can be found [here](https://github.com/NielsRogge/Transformers-Tutorials/tree/master/LiLT).
**Documentation resources** **Documentation resources**
- [Text classification task guide](./tasks/sequence_classification) - [Text classification task guide](../tasks/sequence_classification)
- [Token classification task guide](./tasks/token_classification) - [Token classification task guide](../tasks/token_classification)
- [Question answering task guide](./tasks/question_answering) - [Question answering task guide](../tasks/question_answering)
If you're interested in submitting a resource to be included here, please feel free to open a Pull Request and we'll review it! The resource should ideally demonstrate something new instead of duplicating an existing resource. If you're interested in submitting a resource to be included here, please feel free to open a Pull Request and we'll review it! The resource should ideally demonstrate something new instead of duplicating an existing resource.
......
...@@ -91,11 +91,11 @@ loss = model(input_ids, labels=input_ids, masked_lm_labels=mlm_labels)[0] ...@@ -91,11 +91,11 @@ loss = model(input_ids, labels=input_ids, masked_lm_labels=mlm_labels)[0]
## Documentation resources ## Documentation resources
- [Text classification task guide](./tasks/sequence_classification) - [Text classification task guide](../tasks/sequence_classification)
- [Token classification task guide](./tasks/token_classification) - [Token classification task guide](../tasks/token_classification)
- [Question answering task guide](./tasks/question_answering) - [Question answering task guide](../tasks/question_answering)
- [Masked language modeling task guide](./tasks/masked_language_modeling) - [Masked language modeling task guide](../tasks/masked_language_modeling)
- [Multiple choice task guide](./tasks/multiple_choice) - [Multiple choice task guide](../tasks/multiple_choice)
## LongformerConfig ## LongformerConfig
......
...@@ -88,8 +88,8 @@ The original code can be found [here](https://github.com/google-research/longt5) ...@@ -88,8 +88,8 @@ The original code can be found [here](https://github.com/google-research/longt5)
## Documentation resources ## Documentation resources
- [Translation task guide](./tasks/translation) - [Translation task guide](../tasks/translation)
- [Summarization task guide](./tasks/summarization) - [Summarization task guide](../tasks/summarization)
## LongT5Config ## LongT5Config
......
...@@ -119,11 +119,11 @@ This model was contributed by [ikuyamada](https://huggingface.co/ikuyamada) and ...@@ -119,11 +119,11 @@ This model was contributed by [ikuyamada](https://huggingface.co/ikuyamada) and
## Documentation resources ## Documentation resources
- [Text classification task guide](./tasks/sequence_classification) - [Text classification task guide](../tasks/sequence_classification)
- [Token classification task guide](./tasks/token_classification) - [Token classification task guide](../tasks/token_classification)
- [Question answering task guide](./tasks/question_answering) - [Question answering task guide](../tasks/question_answering)
- [Masked language modeling task guide](./tasks/masked_language_modeling) - [Masked language modeling task guide](../tasks/masked_language_modeling)
- [Multiple choice task guide](./tasks/multiple_choice) - [Multiple choice task guide](../tasks/multiple_choice)
## LukeConfig ## LukeConfig
......
...@@ -53,7 +53,7 @@ This model was contributed by [eltoto1219](https://huggingface.co/eltoto1219). T ...@@ -53,7 +53,7 @@ This model was contributed by [eltoto1219](https://huggingface.co/eltoto1219). T
## Documentation resources ## Documentation resources
- [Question answering task guide](./tasks/question_answering) - [Question answering task guide](../tasks/question_answering)
## LxmertConfig ## LxmertConfig
......
...@@ -93,8 +93,8 @@ loss = model(**model_inputs).loss # forward pass ...@@ -93,8 +93,8 @@ loss = model(**model_inputs).loss # forward pass
## Documentation resources ## Documentation resources
- [Translation task guide](./tasks/translation) - [Translation task guide](../tasks/translation)
- [Summarization task guide](./tasks/summarization) - [Summarization task guide](../tasks/summarization)
## M2M100Config ## M2M100Config
......
...@@ -163,9 +163,9 @@ Example of translating english to many romance languages, using old-style 2 char ...@@ -163,9 +163,9 @@ Example of translating english to many romance languages, using old-style 2 char
## Documentation resources ## Documentation resources
- [Translation task guide](./tasks/translation) - [Translation task guide](../tasks/translation)
- [Summarization task guide](./tasks/summarization) - [Summarization task guide](../tasks/summarization)
- [Causal language modeling task guide](./tasks/language_modeling) - [Causal language modeling task guide](../tasks/language_modeling)
## MarianConfig ## MarianConfig
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment