ArthurBaia/squad_v1_pt_br
Updated • 20 • 6
How to use ArthurBaia/albertina-squad-v1.1-pt.br 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="ArthurBaia/albertina-squad-v1.1-pt.br") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("ArthurBaia/albertina-squad-v1.1-pt.br")
model = AutoModelForQuestionAnswering.from_pretrained("ArthurBaia/albertina-squad-v1.1-pt.br", device_map="auto")This model is a fine-tuned version of PORTULAN/albertina-ptbr on the ArthurBaia/squad_v1_pt_br dataset.
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
{ "epoch": 3.0, "eval_exact_match": 76.96310312204352, "eval_f1": 87.82372321450285, "eval_runtime": 189.7132, "eval_samples": 10977, "eval_samples_per_second": 57.861, "eval_steps_per_second": 7.237 }