alexandrainst/multi-wiki-qa
Viewer • Updated • 1.22M • 986 • 25
How to use mmaguero/multi-wiki-qa-gn-xlm-v-base with Transformers:
# Use a pipeline as a high-level helper
# Warning: Pipeline type "question-answering" is no longer supported in transformers v5.
# You must load the model directly (see below) or downgrade to v4.x with:
# pip install "transformers<5.0.0"
from transformers import pipeline
pipe = pipeline("question-answering", model="mmaguero/multi-wiki-qa-gn-xlm-v-base") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("mmaguero/multi-wiki-qa-gn-xlm-v-base")
model = AutoModelForQuestionAnswering.from_pretrained("mmaguero/multi-wiki-qa-gn-xlm-v-base", device_map="auto")This model is a fine-tuned version of facebook/xlm-v-base on alexandrainst/multi-wiki-qa dataset.
Results on test set:
The best model for QA on my account, prefer this ones over the other models trained with this corpus.
Question Answering on Guarani.
More information needed
The following hyperparameters were used during training:
Results on validation set:
Base model
facebook/xlm-v-base