UBC-NLP / AraT5-base

huggingface.co
Total runs: 4.2K
24-hour runs: -142
7-day runs: -583
30-day runs: 0
Model's Last Updated: May 17 2024

Introduction of AraT5-base

Model Details of AraT5-base

AraT5-base

AraT5: Text-to-Text Transformers for Arabic Language Generation

AraT5

This is the repository accompanying our paper AraT5: Text-to-Text Transformers for Arabic Language Understanding and Generation . In this is the repository we Introduce AraT5 MSA , AraT5 Tweet , and AraT5 : three powerful Arabic-specific text-to-text Transformer based models;

A new version of AraT5 comes out and we recommend using the AraT5v2-base-1024 instead of this version.


How to use AraT5 models

Below is an example for fine-tuning AraT5-base for News Title Generation on the Aranews dataset

!python run_trainier_seq2seq_huggingface.py \
        --learning_rate 5e-5 \
        --max_target_length 128 --max_source_length 128 \
        --per_device_train_batch_size 8 --per_device_eval_batch_size 8 \
        --model_name_or_path "UBC-NLP/AraT5-base" \
        --output_dir "/content/AraT5_FT_title_generation" --overwrite_output_dir \
        --num_train_epochs 3 \
        --train_file "/content/ARGEn_title_genration_sample_train.tsv" \
        --validation_file "/content/ARGEn_title_genration_sample_valid.tsv" \
        --task "title_generation" --text_column "document" --summary_column "title" \
        --load_best_model_at_end --metric_for_best_model "eval_bleu" --greater_is_better True --evaluation_strategy epoch --logging_strategy epoch --predict_with_generate\
        --do_train --do_eval

For more details about the fine-tuning example, please read this notebook Open In Colab

In addition, we release the fine-tuned checkpoint of the News Title Generation (NGT) which is described in the paper. The model available at Huggingface ( UBC-NLP/AraT5-base-title-generation ).

For more details, please visit our own GitHub .

AraT5 Models Checkpoints

AraT5 Pytorch and TensorFlow checkpoints are available on the Huggingface website for direct download and use exclusively for research . For commercial use, please contact the authors via email @ (muhammad.mageed[at]ubc[dot]ca).

BibTex

If you use our models for your scientific publication, or if you find the resources in this repository useful, please cite our papers as follows:

(AraT5-base, AraT5-msa-base, AraT5-tweet-base, AraT5-msa-small, or AraT5-tweet-small)

@inproceedings{nagoudi2022_arat5,
@inproceedings{nagoudi-etal-2022-arat5,
    title = "{A}ra{T}5: Text-to-Text Transformers for {A}rabic Language Generation",
    author = "Nagoudi, El Moatez Billah  and
      Elmadany, AbdelRahim  and
      Abdul-Mageed, Muhammad",
    booktitle = "Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
    month = may,
    year = "2022",
    address = "Dublin, Ireland",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2022.acl-long.47",
    pages = "628--647",
    abstract = "Transfer learning with a unified Transformer framework (T5) that converts all language problems into a text-to-text format was recently proposed as a simple and effective transfer learning approach. Although a multilingual version of the T5 model (mT5) was also introduced, it is not clear how well it can fare on non-English tasks involving diverse data. To investigate this question, we apply mT5 on a language with a wide variety of dialects{--}Arabic. For evaluation, we introduce a novel benchmark for ARabic language GENeration (ARGEN), covering seven important tasks. For model comparison, we pre-train three powerful Arabic T5-style models and evaluate them on ARGEN. Although pre-trained with {\textasciitilde}49 less data, our new models perform significantly better than mT5 on all ARGEN tasks (in 52 out of 59 test sets) and set several new SOTAs. Our models also establish new SOTA on the recently-proposed, large Arabic language understanding evaluation benchmark ARLUE (Abdul-Mageed et al., 2021). Our new models are publicly available. We also link to ARGEN datasets through our repository: https://github.com/UBC-NLP/araT5.",
}

AraT5v2-base-1024

@inproceedings{elmadany-etal-2023-octopus,
    title = "Octopus: A Multitask Model and Toolkit for {A}rabic Natural Language Generation",
    author = "Elmadany, AbdelRahim  and
      Nagoudi, El Moatez Billah  and
      Abdul-Mageed, Muhammad",
    booktitle = "Proceedings of ArabicNLP 2023",
    month = dec,
    year = "2023",
    address = "Singapore (Hybrid)",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2023.arabicnlp-1.20",
    doi = "10.18653/v1/2023.arabicnlp-1.20",
    pages = "232--243",
}
Acknowledgments

We gratefully acknowledge support from the Natural Sciences and Engineering Research Council of Canada, the Social Sciences and Humanities Research Council of Canada, Canadian Foundation for Innovation, ComputeCanada and UBC ARC-Sockeye . We also thank the Google TensorFlow Research Cloud (TFRC) program for providing us with free TPU access.

Runs of UBC-NLP AraT5-base on huggingface.co

4.2K
Total runs
-142
24-hour runs
-401
3-day runs
-583
7-day runs
0
30-day runs

More Information About AraT5-base huggingface.co Model

AraT5-base huggingface.co

AraT5-base huggingface.co is an AI model on huggingface.co that provides AraT5-base's model effect (), which can be used instantly with this UBC-NLP AraT5-base model. huggingface.co supports a free trial of the AraT5-base model, and also provides paid use of the AraT5-base. Support call AraT5-base model through api, including Node.js, Python, http.

AraT5-base huggingface.co Url

https://huggingface.co/UBC-NLP/AraT5-base

UBC-NLP AraT5-base online free

AraT5-base huggingface.co is an online trial and call api platform, which integrates AraT5-base's modeling effects, including api services, and provides a free online trial of AraT5-base, you can try AraT5-base online for free by clicking the link below.

UBC-NLP AraT5-base online free url in huggingface.co:

https://huggingface.co/UBC-NLP/AraT5-base

AraT5-base install

AraT5-base is an open source model from GitHub that offers a free installation service, and any user can find AraT5-base on GitHub to install. At the same time, huggingface.co provides the effect of AraT5-base install, users can directly use AraT5-base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

AraT5-base install url in huggingface.co:

https://huggingface.co/UBC-NLP/AraT5-base

Url of AraT5-base

AraT5-base huggingface.co Url

Provider of AraT5-base huggingface.co

UBC-NLP
ORGANIZATIONS

Other API from UBC-NLP

huggingface.co

Total runs: 129.6K
Run Growth: 66.5K
Growth Rate: 51.31%
Updated:March 31 2022
huggingface.co

Total runs: 32.8K
Run Growth: 16.0K
Growth Rate: 48.67%
Updated:August 17 2022
huggingface.co

Total runs: 4.9K
Run Growth: -442
Growth Rate: -9.02%
Updated:April 24 2024
huggingface.co

Total runs: 1.9K
Run Growth: 0
Growth Rate: 0.00%
Updated:November 11 2025
huggingface.co

Total runs: 1.8K
Run Growth: 703
Growth Rate: 39.76%
Updated:August 14 2024
huggingface.co

Total runs: 1.6K
Run Growth: 0
Growth Rate: 0.00%
Updated:February 20 2024
huggingface.co

Total runs: 1.3K
Run Growth: 0
Growth Rate: 0.00%
Updated:January 22 2025
huggingface.co

Total runs: 1.2K
Run Growth: 61
Growth Rate: 5.15%
Updated:January 20 2022
huggingface.co

Total runs: 1.0K
Run Growth: -629
Growth Rate: -62.40%
Updated:March 10 2026
huggingface.co

Total runs: 222
Run Growth: 180
Growth Rate: 81.08%
Updated:February 13 2026
huggingface.co

Total runs: 108
Run Growth: -23
Growth Rate: -21.30%
Updated:November 26 2024
huggingface.co

Total runs: 87
Run Growth: 41
Growth Rate: 47.13%
Updated:March 14 2025
huggingface.co

Total runs: 73
Run Growth: 0
Growth Rate: 0.00%
Updated:June 10 2022
huggingface.co

Total runs: 35
Run Growth: 24
Growth Rate: 68.57%
Updated:August 31 2021
huggingface.co

Total runs: 23
Run Growth: 11
Growth Rate: 47.83%
Updated:November 26 2024
huggingface.co

Total runs: 7
Run Growth: -4
Growth Rate: -57.14%
Updated:December 04 2023
huggingface.co

Total runs: 6
Run Growth: 0
Growth Rate: 0.00%
Updated:June 03 2022
huggingface.co

Total runs: 5
Run Growth: 0
Growth Rate: 0.00%
Updated:June 03 2022
huggingface.co

Total runs: 5
Run Growth: -10
Growth Rate: -200.00%
Updated:November 12 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 10 2023