How to use theyorubayesian/afro_xlmr_dpr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="theyorubayesian/afro_xlmr_dpr")
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("theyorubayesian/afro_xlmr_dpr") model = AutoModel.from_pretrained("theyorubayesian/afro_xlmr_dpr")