[Docs] Model_doc structure/clarity improvements (#26876)
* first batch of structure improvements for model_docs * second batch of structure improvements for model_docs * more structure improvements for model_docs * more structure improvements for model_docs * structure improvements for cv model_docs * more structural refactoring * addressed feedback about image processors
This commit is contained in:
@@ -33,13 +33,6 @@ The abstract from the paper is the following:
|
||||
|
||||
*Pretrained multilingual large language models have typically used heuristic temperature-based sampling to balance between different languages. However previous work has not systematically evaluated the efficacy of different pretraining language distributions across model scales. In this paper, we propose a new sampling method, UniMax, that delivers more uniform coverage of head languages while mitigating overfitting on tail languages by explicitly capping the number of repeats over each language's corpus. We perform an extensive series of ablations testing a range of sampling strategies on a suite of multilingual benchmarks, while varying model scale. We find that UniMax outperforms standard temperature-based sampling, and the benefits persist as scale increases. As part of our contribution, we release: (i) an improved and refreshed mC4 multilingual corpus consisting of 29 trillion characters across 107 languages, and (ii) a suite of pretrained umT5 model checkpoints trained with UniMax sampling.*
|
||||
|
||||
Tips:
|
||||
|
||||
- UMT5 was only pre-trained on [mC4](https://huggingface.co/datasets/mc4) excluding any supervised training.
|
||||
Therefore, this model has to be fine-tuned before it is usable on a downstream task, unlike the original T5 model.
|
||||
- Since umT5 was pre-trained in an unsupervise manner, there's no real advantage to using a task prefix during single-task
|
||||
fine-tuning. If you are doing multi-task fine-tuning, you should use a prefix.
|
||||
|
||||
Google has released the following variants:
|
||||
|
||||
- [google/umt5-small](https://huggingface.co/google/umt5-small)
|
||||
@@ -50,7 +43,12 @@ Google has released the following variants:
|
||||
This model was contributed by [agemagician](https://huggingface.co/agemagician) and [stefan-it](https://huggingface.co/stefan-it). The original code can be
|
||||
found [here](https://github.com/google-research/t5x).
|
||||
|
||||
One can refer to [T5's documentation page](t5) for more tips, code examples and notebooks.
|
||||
## Usage tips
|
||||
|
||||
- UMT5 was only pre-trained on [mC4](https://huggingface.co/datasets/mc4) excluding any supervised training.
|
||||
Therefore, this model has to be fine-tuned before it is usable on a downstream task, unlike the original T5 model.
|
||||
- Since umT5 was pre-trained in an unsupervise manner, there's no real advantage to using a task prefix during single-task
|
||||
fine-tuning. If you are doing multi-task fine-tuning, you should use a prefix.
|
||||
|
||||
## Differences with mT5?
|
||||
`UmT5` is based on mT5, with a non-shared relative positional bias that is computed for each layer. This means that the model set `has_relative_bias` for each layer.
|
||||
@@ -73,6 +71,11 @@ The conversion script is also different because the model was saved in t5x's lat
|
||||
['<pad><extra_id_0>nyone who<extra_id_1> drink<extra_id_2> a<extra_id_3> alcohol<extra_id_4> A<extra_id_5> A. This<extra_id_6> I<extra_id_7><extra_id_52><extra_id_53></s>']
|
||||
```
|
||||
|
||||
<Tip>
|
||||
|
||||
Refer to [T5's documentation page](t5) for more tips, code examples and notebooks.
|
||||
</Tip>
|
||||
|
||||
## UMT5Config
|
||||
|
||||
[[autodoc]] UMT5Config
|
||||
|
||||
Reference in New Issue
Block a user