asahi417 commited on
Commit
eb2574a
1 Parent(s): f269a6c

model update

Browse files
README.md ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ license: cc-by-4.0
4
+ metrics:
5
+ - bleu4
6
+ - meteor
7
+ - rouge-l
8
+ - bertscore
9
+ - moverscore
10
+ language: en
11
+ datasets:
12
+ - lmqg/qg_dequad
13
+ pipeline_tag: text2text-generation
14
+ tags:
15
+ - question generation
16
+ widget:
17
+ - text: "generate question: <hl> Beyonce <hl> further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records."
18
+ example_title: "Question Generation Example 1"
19
+ - text: "generate question: Beyonce further expanded her acting career, starring as blues singer <hl> Etta James <hl> in the 2008 musical biopic, Cadillac Records."
20
+ example_title: "Question Generation Example 2"
21
+ - text: "generate question: Beyonce further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, <hl> Cadillac Records <hl> ."
22
+ example_title: "Question Generation Example 3"
23
+ model-index:
24
+ - name: lmqg/mbart-large-cc25-dequad
25
+ results:
26
+ - task:
27
+ name: Text2text Generation
28
+ type: text2text-generation
29
+ dataset:
30
+ name: lmqg/qg_dequad
31
+ type: default
32
+ args: default
33
+ metrics:
34
+ - name: BLEU4
35
+ type: bleu4
36
+ value: 0.007531690677542128
37
+ - name: ROUGE-L
38
+ type: rouge-l
39
+ value: 0.1118739967466843
40
+ - name: METEOR
41
+ type: meteor
42
+ value: 0.1371220015206642
43
+ - name: BERTScore
44
+ type: bertscore
45
+ value: 0.8076776969325791
46
+ - name: MoverScore
47
+ type: moverscore
48
+ value: 0.5588358947114936
49
+ ---
50
+
51
+ # Language Models Fine-tuning on Question Generation: `lmqg/mbart-large-cc25-dequad`
52
+ This model is fine-tuned version of [facebook/mbart-large-cc25](https://huggingface.co/facebook/mbart-large-cc25) for question generation task on the
53
+ [lmqg/qg_dequad](https://huggingface.co/datasets/lmqg/qg_dequad) (dataset_name: default).
54
+
55
+
56
+ ### Overview
57
+ - **Language model:** [facebook/mbart-large-cc25](https://huggingface.co/facebook/mbart-large-cc25)
58
+ - **Language:** en
59
+ - **Training data:** [lmqg/qg_dequad](https://huggingface.co/datasets/lmqg/qg_dequad) (default)
60
+ - **Online Demo:** [https://autoqg.net/](https://autoqg.net/)
61
+ - **Repository:** [https://github.com/asahi417/lm-question-generation](https://github.com/asahi417/lm-question-generation)
62
+ - **Paper:** [TBA](TBA)
63
+
64
+ ### Usage
65
+ ```python
66
+
67
+ from transformers import pipeline
68
+
69
+ model_path = 'lmqg/mbart-large-cc25-dequad'
70
+ pipe = pipeline("text2text-generation", model_path)
71
+
72
+ # Question Generation
73
+ question = pipe('generate question: <hl> Beyonce <hl> further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records.')
74
+ ```
75
+
76
+ ## Evaluation Metrics
77
+
78
+
79
+ ### Metrics
80
+
81
+ | Dataset | Type | BLEU4 | ROUGE-L | METEOR | BERTScore | MoverScore | Link |
82
+ |:--------|:-----|------:|--------:|-------:|----------:|-----------:|-----:|
83
+ | [lmqg/qg_dequad](https://huggingface.co/datasets/lmqg/qg_dequad) | default | 0.007531690677542128 | 0.1118739967466843 | 0.1371220015206642 | 0.8076776969325791 | 0.5588358947114936 | [link](https://huggingface.co/lmqg/mbart-large-cc25-dequad/raw/main/eval/metric.first.sentence.paragraph_answer.question.lmqg_qg_dequad.default.json) |
84
+
85
+
86
+
87
+
88
+ ## Training hyperparameters
89
+
90
+ The following hyperparameters were used during fine-tuning:
91
+ - dataset_path: lmqg/qg_dequad
92
+ - dataset_name: default
93
+ - input_types: ['paragraph_answer']
94
+ - output_types: ['question']
95
+ - prefix_types: None
96
+ - model: facebook/mbart-large-cc25
97
+ - max_length: 512
98
+ - max_length_output: 32
99
+ - epoch: 11
100
+ - batch: 4
101
+ - lr: 0.0001
102
+ - fp16: False
103
+ - random_seed: 1
104
+ - gradient_accumulation_steps: 16
105
+ - label_smoothing: 0.15
106
+
107
+ The full configuration can be found at [fine-tuning config file](https://huggingface.co/lmqg/mbart-large-cc25-dequad/raw/main/trainer_config.json).
108
+
109
+ ## Citation
110
+ TBA
eval/{metric.first.answer.paragraph_answer.question.asahi417_qg_dequad.default.json → metric.first.answer.paragraph_answer.question.lmqg_qg_dequad.default.json} RENAMED
File without changes
eval/{metric.first.sentence.paragraph_answer.question.asahi417_qg_dequad.default.json → metric.first.sentence.paragraph_answer.question.lmqg_qg_dequad.default.json} RENAMED
File without changes
eval/{samples.test.hyp.paragraph_answer.question.asahi417_qg_dequad.default.txt → samples.test.hyp.paragraph_answer.question.lmqg_qg_dequad.default.txt} RENAMED
File without changes
eval/{samples.validation.hyp.paragraph_answer.question.asahi417_qg_dequad.default.txt → samples.validation.hyp.paragraph_answer.question.lmqg_qg_dequad.default.txt} RENAMED
File without changes
trainer_config.json CHANGED
@@ -1 +1 @@
1
- {"dataset_path": "asahi417/qg_dequad", "dataset_name": "default", "input_types": ["paragraph_answer"], "output_types": ["question"], "prefix_types": null, "model": "facebook/mbart-large-cc25", "max_length": 512, "max_length_output": 32, "epoch": 11, "batch": 4, "lr": 0.0001, "fp16": false, "random_seed": 1, "gradient_accumulation_steps": 16, "label_smoothing": 0.15}
 
1
+ {"dataset_path": "lmqg/qg_dequad", "dataset_name": "default", "input_types": ["paragraph_answer"], "output_types": ["question"], "prefix_types": null, "model": "facebook/mbart-large-cc25", "max_length": 512, "max_length_output": 32, "epoch": 11, "batch": 4, "lr": 0.0001, "fp16": false, "random_seed": 1, "gradient_accumulation_steps": 16, "label_smoothing": 0.15}