Instructions to use miweru/AraNeoBERT-v6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use miweru/AraNeoBERT-v6 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="miweru/AraNeoBERT-v6", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("miweru/AraNeoBERT-v6", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
AraNeoBERT v6
Arabic NeoBERT encoder (~248M parameters in the encoder), trained with masked language modeling on about 77B tokens of Arabic text (web text, books, Wikipedia, news, and dialectal data including tweets). Context length up to 8,192 tokens.
Research checkpoint — downstream evaluation is still in progress.
Usage
from transformers import AutoTokenizer, AutoModel
tok = AutoTokenizer.from_pretrained("miweru/AraNeoBERT-v6", trust_remote_code=True)
model = AutoModel.from_pretrained("miweru/AraNeoBERT-v6", trust_remote_code=True)
trust_remote_code=True is required for the NeoBERT architecture
(local/global attention, RoPE, QK-norm). Requires xformers (SwiGLU), as
the original NeoBERT.
- Downloads last month
- 3