Fill-Mask
Transformers
PyTorch
TensorFlow
JAX
Arabic
bert
Arabic BERT
MSA
Twitter
Masked Langauge Model
Instructions to use UBC-NLP/ARBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use UBC-NLP/ARBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="UBC-NLP/ARBERT")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("UBC-NLP/ARBERT") model = AutoModelForMaskedLM.from_pretrained("UBC-NLP/ARBERT") - Inference
- Notebooks
- Google Colab
- Kaggle
ARBERT is one of two models described in the paper "ARBERT & MARBERT: Deep Bidirectional Transformers for Arabic". ARBERT is a large-scale pre-trained masked language model focused on Modern Standard Arabic (MSA). To train ARBERT, we use the same architecture as BERT-base: 12 attention layers, each has 12 attention heads and 768 hidden dimensions, a vocabulary of 100K WordPieces, making ∼163M parameters. We train ARBERT on a collection of Arabic datasets comprising 61GB of text (6.2B tokens). For more information, please visit our own GitHub repo.