gsarti commited on
Commit
320343b
•
1 Parent(s): ba9cdc8

Updated README

Browse files
Files changed (1) hide show
  1. README.md +45 -0
README.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - it
4
+ datasets:
5
+ - oscar
6
+ tags:
7
+ - seq2seq
8
+ - lm-head
9
+ license: apache-2.0
10
+ inference: false
11
+ ---
12
+
13
+ # Italian T5-base 🇮🇹
14
+
15
+ Created by [Gabriele Sarti](https://gsarti.com/) during the [Hugging Face community week](https://discuss.huggingface.co/t/open-to-the-community-community-week-using-jax-flax-for-nlp-cv/7104), organized by [HuggingFace](https://huggingface.co/) and TPU usage sponsored by Google, for the project [PreTrain T5 for Italian](https://discuss.huggingface.co/t/pretrain-t5-for-italian/7425/4).
16
+
17
+ This is notably the first sequence-to-sequence model pre-trained on the Italian language available on the 🤗 Hub. For people interested in studying the pre-training dynamics of this model, the repository [`t5-base-it-training`](https://huggingface.co/gsarti/t5-base-it-training/tree/main) contains Flax checkpoints for the whole pre-training process (saved each 2000 steps, 129 checkpoints, ~250GB).
18
+
19
+ **Important:** The inference widget is deactivated because the model needs a task-specific seq2seq training on a downstream task to be actually useful. The script [`run_t5_mlm_flax.py`](https://github.com/huggingface/transformers/tree/master/examples/flax/language-modeling) provides an example of fine-tuning the model on a downstream summarization task.
20
+
21
+ ## Dataset
22
+
23
+ This model was trained on the Italian de-duplicated portion of the [OSCAR corpus](https://oscar-corpus.com/) (11B words, ~69GB) using the 🤗 Datasets library. The corpus was used as-is without any further preprocessing.
24
+
25
+ ## Training
26
+
27
+ The model was trained for 258K steps in 4 days using JAX/Flax on a TPU3v8-VM on Google Cloud. Refer to the Tensorboard tab of the repository for an overview of the training process.
28
+
29
+ The original configuration for the model `t5-base` was adopted, with the exception of the parameter `dropout_rate` that was set at `0` instead of `0.1` during pre-training, following the implementation of [`t5-v1.1`](https://huggingface.co/google/t5-v1_1-base). The tokenizer is a `SentencePieceUnigramTokenizer` trained on the first 2M sentences of the Italian portion of the [`mC4`](https://huggingface.co/datasets/mc4) corpus.
30
+
31
+ The following parameters were used for training:
32
+
33
+ |parameter|value|
34
+ |---------|-----|
35
+ |optimizer|adafactor w/ default params|
36
+ |dataset| `oscar/unshuffled_deduplicated_it`|
37
+ |max seq. length| 512|
38
+ |per-device batch size| 16|
39
+ |tot. batch size| 128|
40
+ |learning rate| 1e-2|
41
+ |lr schedule| linear warmup + linear decay|
42
+ |warmup steps|10K|
43
+ |weight decay|1e-3|
44
+ |num. train epochs| 1 (258K steps)|
45
+ |validation split size| 15K examples|