alexandrainst/multi-wiki-qa
Viewer • Updated • 1.22M • 1.75k • 25
How to use mmaguero/multi-wiki-qa-gn-bert-tiny-cased 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-bert-tiny-cased") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("mmaguero/multi-wiki-qa-gn-bert-tiny-cased")
model = AutoModelForQuestionAnswering.from_pretrained("mmaguero/multi-wiki-qa-gn-bert-tiny-cased", device_map="auto")WARNING: This model is no recommended.
For a best model, please use:
mmaguero/multi-wiki-qa-gn-xlm-v-base
This model is a fine-tuned version of mmaguero/gn-bert-tiny-cased on alexandrainst/multi-wiki-qa dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
Base model
mmaguero/gn-bert-tiny-cased