Views
No views yet

| Model | HuggingFace Model Name | Size (MB/Params) | Pre-Segmentation | DataSet (Sentences/Size/nWords) |
|---|---|---|---|---|
| AraBERTv0.2-base | bert-base-arabertv02 | 543MB / 136M | No | 200M / 77GB / 8.6B |
| AraBERTv0.2-large | bert-large-arabertv02 | 1.38G 371M | No | 200M / 77GB / 8.6B |
| AraBERTv2-base | bert-base-arabertv2 | 543MB 136M | Yes | 200M / 77GB / 8.6B |
| AraBERTv2-large | bert-large-arabertv2 | 1.38G 371M | Yes | 200M / 77GB / 8.6B |
| AraBERTv0.1-base | bert-base-arabertv01 | 543MB 136M | No | 77M / 23GB / 2.7B |
| AraBERTv1-base | bert-base-arabert | 543MB 136M | Yes | 77M / 23GB / 2.7B |
HuggingFace model page under the aubmindlab name. Checkpoints are available in PyTorch, TF2 and TF1 formats.BertWordpieceTokenizer from the tokenizers library, and should now support the Fast tokenizer implementation from the transformers library.| Model | Hardware | num of examples with seq len (128 / 512) | 128 (Batch Size/ Num of Steps) | 512 (Batch Size/ Num of Steps) | Total Steps | Total Time (in Days) |
|---|---|---|---|---|---|---|
| AraBERTv0.2-base | TPUv3-8 | 420M / 207M | 2560 / 1M | 384/ 2M | 3M | - |
| AraBERTv0.2-large | TPUv3-128 | 420M / 207M | 13440 / 250K | 2056 / 300K | 550K | 7 |
| AraBERTv2-base | TPUv3-8 | 420M / 207M | 2560 / 1M | 384/ 2M | 3M | - |
| AraBERTv2-large | TPUv3-128 | 520M / 245M | 13440 / 250K | 2056 / 300K | 550K | 7 |
| AraBERT-base (v1/v0.1) | TPUv2-8 | - | 512 / 900K | 128 / 300K | 1.2M | 4 |
pip install farasapy1from arabert.preprocess import ArabertPreprocessor
2
3model_name="bert-base-arabertv2"
4arabert_prep = ArabertPreprocessor(model_name=model_name)
5
6text = "ولن نبالغ إذا قلنا إن هاتف أو كمبيوتر المكتب في زمننا هذا ضروري"
7arabert_prep.preprocess(text)
8>>>"و+ لن نبالغ إذا قل +نا إن هاتف أو كمبيوتر ال+ مكتب في زمن +نا هذا ضروري"bert-base-arabertv01
bert-base-arabert
bert-base-arabertv02
bert-base-arabertv2
bert-large-arabertv02
bert-large-arabertv2
araelectra-base
aragpt2-base
aragpt2-medium
aragpt2-large
aragpt2-mega1curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
2sudo apt-get install git-lfs
3git lfs install
4git clone https://huggingface.co/aubmindlab/MODEL_NAME
5tar -C ./MODEL_NAME -zxvf /content/MODEL_NAME/tf1_model.tar.gzMODEL_NAME is any model under the aubmindlab namewget:
oid sha256wget https://cdn-lfs.huggingface.co/aubmindlab/aragpt2-base/INSERT_THE_SHA_HERE (ex: for aragpt2-base: wget https://cdn-lfs.huggingface.co/aubmindlab/aragpt2-base/3766fc03d7c2593ff2fb991d275e96b81b0ecb2098b71ff315611d052ce65248)@inproceedings{antoun2020arabert,
title={AraBERT: Transformer-based Model for Arabic Language Understanding},
author={Antoun, Wissam and Baly, Fady and Hajj, Hazem},
booktitle={LREC 2020 Workshop Language Resources and Evaluation Conference 11--16 May 2020},
pages={9}
}