AlcLaM: Arabic Dialectal Language Model
Paper โข 2407.13097 โข Published
How to use rahbi/alclam-base-v1 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="rahbi/alclam-base-v1") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("rahbi/alclam-base-v1")
model = AutoModelForMaskedLM.from_pretrained("rahbi/alclam-base-v1", device_map="auto")If you use AlcLaM, please cite the paper:
@article{murtadha2024alclam,
author = {Murtadha, Ahmed and Saghir, Alfasly and Wen, Bo and Jamaal, Qasem and Mohammed, Ahmed and Liu, Yunfeng},
title = {AlcLaM: Arabic Dialectal Language Model},
journal = {Arabic NLP 2024},
year = {2024},
url = {https://arxiv.org/abs/2407.13097},
eprinttype = {arXiv},
eprint = {2407.13097}
}