Model Card of vocabtrimmer/mt5-small-trimmed-fr-120000-frquad-qa
This model is fine-tuned version of vocabtrimmer/mt5-small-trimmed-fr-120000 for question answering task on the lmqg/qg_frquad (dataset_name: default) via lmqg
.
Overview
- Language model: vocabtrimmer/mt5-small-trimmed-fr-120000
- Language: fr
- Training data: lmqg/qg_frquad (default)
- Online Demo: https://autoqg.net/
- Repository: https://github.com/asahi417/lm-question-generation
- Paper: https://arxiv.org/abs/2210.03992
Usage
- With
lmqg
from lmqg import TransformersQG
# initialize model
model = TransformersQG(language="fr", model="vocabtrimmer/mt5-small-trimmed-fr-120000-frquad-qa")
# model prediction
answers = model.answer_q(list_question="En quelle année a-t-on trouvé trace d'un haut fourneau similaire?", list_context=" Cette technologie ne disparaît qu'au début du XXe siècle. On retrouve vers 1900 un haut fourneau similaire dans le Bulacan, aux Philippines. Plus tard encore, le « haut fourneau dans la cour » prôné par Mao Zedong pendant le Grand Bond en avant est de ce type. L'expérience n'est un échec technique que dans les régions où le savoir-faire n'existe pas, ou a disparu.")
- With
transformers
from transformers import pipeline
pipe = pipeline("text2text-generation", "vocabtrimmer/mt5-small-trimmed-fr-120000-frquad-qa")
output = pipe("question: En quelle année a-t-on trouvé trace d'un haut fourneau similaire?, context: Cette technologie ne disparaît qu'au début du XXe siècle. On retrouve vers 1900 un haut fourneau similaire dans le Bulacan, aux Philippines. Plus tard encore, le « haut fourneau dans la cour » prôné par Mao Zedong pendant le Grand Bond en avant est de ce type. L'expérience n'est un échec technique que dans les régions où le savoir-faire n'existe pas, ou a disparu.")
Evaluation
- Metric (Question Answering): raw metric file
Score | Type | Dataset | |
---|---|---|---|
AnswerExactMatch | 23.71 | default | lmqg/qg_frquad |
AnswerF1Score | 40.01 | default | lmqg/qg_frquad |
BERTScore | 88.11 | default | lmqg/qg_frquad |
Bleu_1 | 23.93 | default | lmqg/qg_frquad |
Bleu_2 | 19.95 | default | lmqg/qg_frquad |
Bleu_3 | 17.18 | default | lmqg/qg_frquad |
Bleu_4 | 14.81 | default | lmqg/qg_frquad |
METEOR | 20.09 | default | lmqg/qg_frquad |
MoverScore | 69.17 | default | lmqg/qg_frquad |
ROUGE_L | 26.59 | default | lmqg/qg_frquad |
Training hyperparameters
The following hyperparameters were used during fine-tuning:
- dataset_path: lmqg/qg_frquad
- dataset_name: default
- input_types: ['paragraph_question']
- output_types: ['answer']
- prefix_types: None
- model: vocabtrimmer/mt5-small-trimmed-fr-120000
- max_length: 512
- max_length_output: 32
- epoch: 27
- batch: 32
- lr: 0.0005
- fp16: False
- random_seed: 1
- gradient_accumulation_steps: 2
- label_smoothing: 0.15
The full configuration can be found at fine-tuning config file.
Citation
@inproceedings{ushio-etal-2022-generative,
title = "{G}enerative {L}anguage {M}odels for {P}aragraph-{L}evel {Q}uestion {G}eneration",
author = "Ushio, Asahi and
Alva-Manchego, Fernando and
Camacho-Collados, Jose",
booktitle = "Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing",
month = dec,
year = "2022",
address = "Abu Dhabi, U.A.E.",
publisher = "Association for Computational Linguistics",
}
- Downloads last month
- 5
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social
visibility and check back later, or deploy to Inference Endpoints (dedicated)
instead.
Evaluation results
- BLEU4 (Question Answering) on lmqg/qg_frquadself-reported14.810
- ROUGE-L (Question Answering) on lmqg/qg_frquadself-reported26.590
- METEOR (Question Answering) on lmqg/qg_frquadself-reported20.090
- BERTScore (Question Answering) on lmqg/qg_frquadself-reported88.110
- MoverScore (Question Answering) on lmqg/qg_frquadself-reported69.170
- AnswerF1Score (Question Answering) on lmqg/qg_frquadself-reported40.010
- AnswerExactMatch (Question Answering) on lmqg/qg_frquadself-reported23.710