sultan / ArabicTransformer-small

huggingface.co
Total runs: 30
24-hour runs: -3
7-day runs: -1
30-day runs: 19
Model's Last Updated: November 09 2023
feature-extraction

Introduction of ArabicTransformer-small

Model Details of ArabicTransformer-small

ArabicTransformer small model (B6-6-6 with decoder)

Paper :

ArabicTransformer: Efficient Large Arabic Language Model with Funnel Transformer and ELECTRA Objective

Abstract

Pre-training Transformer-based models such as BERT and ELECTRA on a collection of Arabic corpora, demonstrated by both AraBERT and AraELECTRA, shows an impressive result on downstream tasks. However, pre-training Transformer-based language models is computationally expensive, especially for large-scale models. Recently, Funnel Transformer has addressed the sequential redundancy inside Transformer architecture by compressing the sequence of hidden states, leading to a significant reduction in the pretraining cost. This paper empirically studies the performance and efficiency of building an Arabic language model with Funnel Transformer and ELECTRA objective. We find that our model achieves state-of-the-art results on several Arabic downstream tasks despite using less computational resources compared to other BERT-based models.

Description

This model was pre-trained on 44GB of Arabic corpora using Funnel Transformer with ELECTRA objective . This model has more parameters (1.39x) than ELECTRA-base architecture while having similar or slightly larger inference and fine-tuning time. The model was pre-trained with significantly less resources than state-of-the-art models.

Results on Arabic TyDi QA

Model EM F1
AraBERT02-Large 73.72 86.03
AraELECTRA-Base 74.91 86.68
ArabicTransformer-Small 74.70 85.89
ArabicTransformer-Base 75.57 87.22

Google Colab Examples

  • Text Classification with ArabicTransformer with PyTorchXLA on TPU or with PyTorch on GPU (Better reproducibility but slower). Open In Colab

  • Text Classification with ArabicTransformer and TPU and Keras API (Faster but reproducibility is not better than PyTorchXLA). Open In Colab

  • Question Answering with ArabicTransformer. Open In Colab

GitHub Page

https://github.com/salrowili/ArabicTransformer

Acknowledgment

We would like to acknowledge the support we have from The TPU Research Cloud (TRC) team to grant us access to TPUv3 units.

@inproceedings{alrowili-shanker-2021-arabictransformer-efficient,
    title = "{A}rabic{T}ransformer: Efficient Large {A}rabic Language Model with Funnel Transformer and {ELECTRA} Objective",
    author = "Alrowili, Sultan  and
      Shanker, Vijay",
    booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2021",
    month = nov,
    year = "2021",
    address = "Punta Cana, Dominican Republic",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2021.findings-emnlp.108",
    pages = "1255--1261",
    abstract = "Pre-training Transformer-based models such as BERT and ELECTRA on a collection of Arabic corpora, demonstrated by both AraBERT and AraELECTRA, shows an impressive result on downstream tasks. However, pre-training Transformer-based language models is computationally expensive, especially for large-scale models. Recently, Funnel Transformer has addressed the sequential redundancy inside Transformer architecture by compressing the sequence of hidden states, leading to a significant reduction in the pre-training cost. This paper empirically studies the performance and efficiency of building an Arabic language model with Funnel Transformer and ELECTRA objective. We find that our model achieves state-of-the-art results on several Arabic downstream tasks despite using less computational resources compared to other BERT-based models.",
}

Runs of sultan ArabicTransformer-small on huggingface.co

30
Total runs
-3
24-hour runs
-4
3-day runs
-1
7-day runs
19
30-day runs

More Information About ArabicTransformer-small huggingface.co Model

ArabicTransformer-small huggingface.co

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

ArabicTransformer-small huggingface.co Url

https://huggingface.co/sultan/ArabicTransformer-small

sultan ArabicTransformer-small online free

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

sultan ArabicTransformer-small online free url in huggingface.co:

https://huggingface.co/sultan/ArabicTransformer-small

ArabicTransformer-small install

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

ArabicTransformer-small install url in huggingface.co:

https://huggingface.co/sultan/ArabicTransformer-small

Url of ArabicTransformer-small

ArabicTransformer-small huggingface.co Url

Provider of ArabicTransformer-small huggingface.co

sultan
ORGANIZATIONS

Other API from sultan