This is a T5v1.1 (small) trained on the concatenation of the Arabic Billion Words corpus and the Arabic subsets of the mC4 and Oscar datasets.
The model could only be trained for about
10%
of the whole dataset due to time limitations. This is equivalent to
22'000
steps or about
4.3
Billion tokens.
Training parameters
Training batch size
384
Evaluation batch size
768
learning rate
1e-2
dtype
jnp.float32
Preprocessing and the tokenizer
We tried to keep the preprocessing to a bare minimum. We only replaced URLs, emails and social media user mentions with fixed tokens.
Contrary to other pretrained Arabic LMs, we decided to not strip the Arabic diacritics and to keep them part of the vocabulary.
The tokenizer was trained on
5%
of the training set, with a vocabulary size of
64'000
.
The model was trained on the concatenation of the Arabic Billion Words corpus and the Arabic subsets of the mC4 and Oscar datasets.
A random
0.1%
subset of the data was reserved for evaluation and the rest for training.
Results
Evaluation accuracy
56.84%
Evaluation Loss
2.423
Training Loss
2.392
Training Time
22h 23m 51s
Note for finetuning
This model was pretrained with dropout turned off, so the default
dropout_rate
in the model config is
0
.
To finetune the model dropout should be turned be back on, like this:
model = T5ForConditionalGeneration.from_pretrained("flax-community/arabic-t5-small", dropout_rate=0.1)
or,
model = AutoModelForSeq2SeqLM.from_pretrained("flax-community/arabic-t5-small", dropout_rate=0.1)
Runs of flax-community arabic-t5-small on huggingface.co
72
Total runs
0
24-hour runs
9
3-day runs
0
7-day runs
-1
30-day runs
More Information About arabic-t5-small huggingface.co Model
arabic-t5-small huggingface.co
arabic-t5-small huggingface.co is an AI model on huggingface.co that provides arabic-t5-small's model effect (), which can be used instantly with this flax-community arabic-t5-small model. huggingface.co supports a free trial of the arabic-t5-small model, and also provides paid use of the arabic-t5-small. Support call arabic-t5-small model through api, including Node.js, Python, http.
arabic-t5-small huggingface.co is an online trial and call api platform, which integrates arabic-t5-small's modeling effects, including api services, and provides a free online trial of arabic-t5-small, you can try arabic-t5-small online for free by clicking the link below.
flax-community arabic-t5-small online free url in huggingface.co:
arabic-t5-small is an open source model from GitHub that offers a free installation service, and any user can find arabic-t5-small on GitHub to install. At the same time, huggingface.co provides the effect of arabic-t5-small install, users can directly use arabic-t5-small installed effect in huggingface.co for debugging and trial. It also supports api for free installation.