SAVRN
Search Contact SAVRN

Open-weight model · Fill mask

bert-base-arabertv02

by AUB MIND LAB aubmindlab/bert-base-arabertv02

AraBERT is an Arabic pretrained language model based on Google's BERT architechture. AraBERT uses the same BERT-Base config.

Parameters136M
Context512
Weights2.4 GB
License
AccessOpen weights
Monthly Downloads567.2k

Runs On

What it takes to serve bert-base-arabertv02 (136M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.3 GB 0.3 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.1 GB 0.2 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.1 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

SAVRN's Notes on bert-base-arabertv02

If the text is Arabic and the job is masked-token prediction or a base for fine-tuning, AUB MIND LAB's 136M-parameter BERT-base model, trained on Wikipedia, Osian, the 1.5B-Arabic-Corpus, oscar-arabic-unshuffled and a private Assafir set, is the one on this page. Memory is a rounding error: 0.3 GB at 16-bit, 0.2 GB at 8-bit, 0.1 GB at 4-bit. The Index's cheapest host is a 192 GB MI300X at $1.85 per hour; you would never dedicate one to this.

Here is the item that decides the deployment: the facts we hold list no license for this model. Open access means the files can be fetched, but with no stated terms we treat commercial use, modification and redistribution as unresolved until the publisher confirms them. Check that first. Then note the 512-token context, which means chunking anything longer than a page, and 24 files across five formats, so pick one.

Model Card

AraBERT is an Arabic pretrained language model based on Google's BERT architechture. AraBERT uses the same BERT-Base config. More details are available in the AraBERT Paper and in the AraBERT Meetup There are two versions of the model, AraBERTv0.1 and AraBERTv1, with the difference being that AraBERTv1 uses pre-segmented text where prefixes and suffixes were split using the Farasa Segmenter. We evaluate AraBERT models on different downstream tasks and compare them to mBERT), and other state of the art models (To the extent of our knowledge). The Tasks were Sentiment Analysis on 6 different datasets (HARD, ASTD-Balanced, ArsenTD-Lev, LABR), Named Entity Recognition with the ANERcorp, and…

Excerpt from the card by AUB MIND LAB.

Configuration

Architecture
BertForMaskedLM
Context length (tokens)
512
Layers
12
Hidden size
768
Feed-forward size
3,072
Attention heads
12
Vocabulary size
64,000
Model type
bert

Identity and Version

Repository
aubmindlab/bert-base-arabertv02
Publisher
AUB MIND LAB
Task
Fill mask
Modality
Text
Library
transformers
Parameters
136M parameters
Languages
ar
Revision
016fb9d6768f522a59c6e0d2d5d5d43a4e1bff60
First published
2022-03-02
Last updated
2024-03-26

Files and Weights

24 files, 3.0 GB in total. The weights are 4 files totalling 2.4 GB in bin, h5, msgpack, safetensors.

Weights4 files · 2.4 GB
Configuration2 files · 496 B
Tokenizer3 files · 3.5 MB
Documentation1 file · 8.6 KB
Other13 files · 644.6 MB
Repository1 file · 502 B
Every file
FileTypeSizeSHA-256
flax_model.msgpackWeights541.0 MB e0bbd3dffdc5
model.safetensorsWeights543.4 MB 48873a2bb50c
pytorch_model.binWeights543.5 MB eac91bc3c317
tf_model.h5Weights741.9 MB 7f1bc598fbc8
config.jsonConfiguration384 B
special_tokens_map.jsonConfiguration112 B
README.mdDocumentation8.6 KB
runs/eval/events.out.tfevents.1607681029.tpu-motherOther2.6 MB 7cd567fbe978
runs/eval/events.out.tfevents.1607686495.tpu-motherOther2.7 MB affcfcd40bb2
runs/eval/events.out.tfevents.1607688156.tpu-motherOther2.6 MB dc1dbb0c0f22
runs/eval_results.txtOther159 B
runs/events.out.tfevents.1605489565.tpu-motherOther18.1 MB d3d6144db24b
runs/events.out.tfevents.1605730291.tpu-motherOther18.1 MB 06a04aa1aa66
runs/events.out.tfevents.1606636322.tpu-motherOther18.1 MB 240e55f19cf8
runs/events.out.tfevents.1606738342.tpu-motherOther4.1 MB 481d7808a125
runs/events.out.tfevents.1606738557.tpu-motherOther18.1 MB b2398ca5cab8
runs/events.out.tfevents.1607448114.tpu-motherOther18.3 MB 34a40cda6e3f
runs/events.out.tfevents.1607698247.tpu-motherOther18.4 MB 8b56e2f1af02
runs/events.out.tfevents.1608595021.tpu-motherOther18.3 MB 9b6cda442142
tf1_model.tar.gzOther505.0 MB 38d3200f86bb
.gitattributesRepository502 B
tokenizer.jsonTokenizer2.6 MB
tokenizer_config.jsonTokenizer381 B
vocab.txtTokenizer824.8 KB

License and Download

License
Not stated by the source
Access
Open weights, no gate
Download size
2.4 GB
Download from AUB MIND LAB

Released by AUB MIND LAB through its official repository on Hugging Face.

Built From

  • Described by arXiv:2003.00104
  • Trained on (disclosed) 1.5B-Arabic-Corpus
  • Trained on (disclosed) Assafir-private
  • Trained on (disclosed) Osian
  • Trained on (disclosed) oscar-arabic-unshuffled
  • Trained on (disclosed) wikipedia

Memory Requirements

PrecisionWeights in memory
As published2.4 GB
16-bit0.3 GB
8-bit0.1 GB
4-bit0.1 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Compare bert-base-arabertv02

Questions About bert-base-arabertv02

How much GPU memory does bert-base-arabertv02 need?

About 0.3 GB at 16-bit and 0.1 GB at 4-bit: the weights (136M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run bert-base-arabertv02 on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

What is bert-base-arabertv02's context length?

512 tokens, from the maximum position embeddings in its published configuration.

Similar Models

This model is a distilled version of the BERT base multilingual model. The code for the distillation process can be found here. This model is cased: it does make a difference between english and English. The model is trained on the concatenation of Wikipedia in 104 different languages listed here. The model has 6 layers, 768 dimension and 12 heads, totalizing 134M parameters (compared to 177M parameters for mBERT-base). On average, this model, referred to as DistilmBERT, is twice as fast as mBERT-base. We encourage potential users of this model to check out the BERT base multilingual model card to learn more about usage, limitations and potential biases. You can use the raw model for either…

Open weights apache-2.0 135M parameters 512 tokens transformers

Model · Fill mask

roberta-base

Facebook AI community

Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in this paper and first released in this repository. This model is case-sensitive: it makes a difference between english and English. Disclaimer: The team releasing RoBERTa did not write a model card for this model so this model card has been written by the Hugging Face team. RoBERTa is a transformers model pretrained on a large corpus of English data in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels…

Open weights mit 125M parameters 514 tokens transformers

Model · Fill mask

codebert-python

NeuLab @ LTI/CMU

This is a microsoft/codebert-base-mlm model, trained for 1,000,000 steps (with batchsize=32) on Python code from the codeparrot/github-code-clean dataset, on the masked-language-modeling task. It is intended to be used in CodeBERTScore: https://github.com/neulab/code-bert-score, but can be used for any other model or task. If you use this model for research, please cite

Open weights 125M parameters 514 tokens transformers

Model · Fill mask

ModernBERT-base

Answer.AI

ModernBERT is a modernized bidirectional encoder-only Transformer model (BERT-style) pre-trained on 2 trillion tokens of English and code data with a native context length of up to 8,192 tokens. ModernBERT leverages recent architectural improvements such as: - Rotary Positional Embeddings (RoPE) for long-context support. - Local-Global Alternating Attention for efficiency on long inputs. - Unpadding and Flash Attention for efficient inference. ModernBERT’s native long context length makes it ideal for tasks that require processing long documents, such as retrieval, classification, and semantic search within large corpora. The model was trained on a large corpus of text and code, making it…

Open weights apache-2.0 150M parameters 8,192 tokens transformers

Model · Fill mask

camembert-base

ALMAnaCH (Inria)

CamemBERT is a state-of-the-art language model for French based on the RoBERTa model. It is now available on Hugging Face in 6 different versions with varying number of parameters, amount of pretraining data and pretraining data source domains. CamemBERT was trained and evaluated by Louis Martin\, Benjamin Muller\, Pedro Javier Ortiz Suárez\, Yoann Dupont, Laurent Romary, Éric Villemonte de la Clergerie, Djamé Seddah and Benoît Sagot. If you use our work, please cite

Open weights mit 111M parameters 514 tokens transformers

Model · Fill mask

juribert-base

DaSciM

JuriBERT is a set of BERT models (tiny, mini, small and base) pre-trained from scratch on French legal-domain specific corpora. JuriBERT models are pretrained on 6.3GB of legal french raw text from two different sources: the first dataset is crawled from Légifrance and the other one consists of anonymized court’s decisions and the pleadings from the Court of Cassation (mémoires ampliatifs). The latter contains more than 100k long documents from different court cases. It is now on Hugging Face in four different versions with varying number of parameters. JuriBERT was trained and evaluated at École Polytechnique in collaboration with HEC Paris by Stella Douka, Hadi Abdine, Mihcalis…

Open weights mit 111M parameters 512 tokens transformers