asahi417 commited on
Commit
0e71784
1 Parent(s): 84ed4b0

model update

Browse files
Files changed (1) hide show
  1. README.md +111 -0
README.md ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_squadshifts
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/t5-large-squadshifts-new_wiki
25
+ results:
26
+ - task:
27
+ name: Text2text Generation
28
+ type: text2text-generation
29
+ dataset:
30
+ name: lmqg/qg_squadshifts
31
+ type: new_wiki
32
+ args: new_wiki
33
+ metrics:
34
+ - name: BLEU4
35
+ type: bleu4
36
+ value: 0.12038926142615085
37
+ - name: ROUGE-L
38
+ type: rouge-l
39
+ value: 0.3009797493173035
40
+ - name: METEOR
41
+ type: meteor
42
+ value: 0.2766668875313911
43
+ - name: BERTScore
44
+ type: bertscore
45
+ value: 0.9312835865331819
46
+ - name: MoverScore
47
+ type: moverscore
48
+ value: 0.6630743267052823
49
+ ---
50
+
51
+ # Language Models Fine-tuning on Question Generation: `lmqg/t5-large-squadshifts-new_wiki`
52
+ This model is fine-tuned version of [lmqg/t5-large-squad](https://huggingface.co/lmqg/t5-large-squad) for question generation task on the
53
+ [lmqg/qg_squadshifts](https://huggingface.co/datasets/lmqg/qg_squadshifts) (dataset_name: new_wiki).
54
+ This model is continuously fine-tuned with [lmqg/t5-large-squad](https://huggingface.co/lmqg/t5-large-squad).
55
+
56
+ ### Overview
57
+ - **Language model:** [lmqg/t5-large-squad](https://huggingface.co/lmqg/t5-large-squad)
58
+ - **Language:** en
59
+ - **Training data:** [lmqg/qg_squadshifts](https://huggingface.co/datasets/lmqg/qg_squadshifts) (new_wiki)
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/t5-large-squadshifts-new_wiki'
70
+ pipe = pipeline("text2text-generation", model_path)
71
+
72
+ # Question Generation
73
+ input_text = 'generate question: <hl> Beyonce <hl> further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records.'
74
+ question = pipe(input_text)
75
+ ```
76
+
77
+ ## Evaluation Metrics
78
+
79
+
80
+ ### Metrics
81
+
82
+ | Dataset | Type | BLEU4 | ROUGE-L | METEOR | BERTScore | MoverScore | Link |
83
+ |:--------|:-----|------:|--------:|-------:|----------:|-----------:|-----:|
84
+ | [lmqg/qg_squadshifts](https://huggingface.co/datasets/lmqg/qg_squadshifts) | new_wiki | 0.12038926142615085 | 0.3009797493173035 | 0.2766668875313911 | 0.9312835865331819 | 0.6630743267052823 | [link](https://huggingface.co/lmqg/t5-large-squadshifts-new_wiki/raw/main/eval/metric.first.sentence.paragraph_answer.question.lmqg_qg_squadshifts.new_wiki.json) |
85
+
86
+
87
+
88
+
89
+ ## Training hyperparameters
90
+
91
+ The following hyperparameters were used during fine-tuning:
92
+ - dataset_path: lmqg/qg_squadshifts
93
+ - dataset_name: new_wiki
94
+ - input_types: ['paragraph_answer']
95
+ - output_types: ['question']
96
+ - prefix_types: ['qg']
97
+ - model: lmqg/t5-large-squad
98
+ - max_length: 512
99
+ - max_length_output: 32
100
+ - epoch: 2
101
+ - batch: 16
102
+ - lr: 0.0001
103
+ - fp16: False
104
+ - random_seed: 1
105
+ - gradient_accumulation_steps: 8
106
+ - label_smoothing: 0.15
107
+
108
+ The full configuration can be found at [fine-tuning config file](https://huggingface.co/lmqg/t5-large-squadshifts-new_wiki/raw/main/trainer_config.json).
109
+
110
+ ## Citation
111
+ TBA