Instructions to use castorini/afriberta_base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use castorini/afriberta_base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="castorini/afriberta_base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("castorini/afriberta_base") model = AutoModelForMaskedLM.from_pretrained("castorini/afriberta_base", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
57bf48b | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:a1b5507320b2175f5aa01cfbb9cd853fdf92dee491dde2359eae8919eb583a8a
size 446168989
|