Instructions to use Davlan/afro-xlmr-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Davlan/afro-xlmr-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="Davlan/afro-xlmr-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("Davlan/afro-xlmr-base") model = AutoModelForMaskedLM.from_pretrained("Davlan/afro-xlmr-base", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit ·
25f2729
1
Parent(s): b924e9a
Adding `safetensors` variant of this model (#3)
Browse files- Adding `safetensors` variant of this model (3da2872548c959379a8c799bf1a4a966ba391e07)
Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>