Model Trained Using AutoTrain

  • Problem type: Extractive Question Answering

Validation

epatyukova/roberta-polymer-extractive-QA

EM: 79.74% F1: 81.27%

base-model: deepset/roberta-base-squad2

EM: 65.55% F1: 79.06%

Usage

from transformers import AutoTokenizer, AutoModelForQuestionAnswering
from transformers import pipeline


model_name = "epatyukova/roberta-polymer-extractive-QA "

model = AutoModelForQuestionAnswering.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)

qa = pipeline(
    "question-answering",
    model=model,
    tokenizer=tokenizer,
    device="mps"  # or -1 for CPU
)

question, context = "What polymerisation method was used for synthesis?", "The polyester was synthesized using polycondensation in the melt from the mixture of monomers quinoline-2,4- dicarboxylic acid and 1,2-Propanediol."
test={'question': question,'context': context}

qa(test)
Downloads last month
4
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for epatyukova/roberta-polymer-extractive-QA

Finetuned
(221)
this model