faori commited on
Commit
42073db
1 Parent(s): e370330

Upload folder using huggingface_hub

Browse files
app1.py CHANGED
@@ -51,7 +51,7 @@ iface = gr.Interface(
51
  inputs=[
52
  gr.Textbox(label="Query", placeholder="Type your query here..."),
53
  gr.Textbox(label="Context", placeholder="Provide the context here...", lines=10),
54
- gr.Radio(choices=["Base", "Large"], label="Model Choice")
55
  ],
56
  outputs=gr.Textbox(label="Answer"),
57
  title="Retrospective Reader Demo",
 
51
  inputs=[
52
  gr.Textbox(label="Query", placeholder="Type your query here..."),
53
  gr.Textbox(label="Context", placeholder="Provide the context here...", lines=10),
54
+ gr.Radio(choices=["Electra Base", "Electra Large", "Roberta", "DistilBERT"], label="Model Choice")
55
  ],
56
  outputs=gr.Textbox(label="Answer"),
57
  title="Retrospective Reader Demo",
configs/inference_en_distilbert.yaml CHANGED
@@ -26,13 +26,13 @@ RetroDataModelArguments:
26
  sketch_revision: en-distilbert-sketch
27
  sketch_model_name: faori/retro_reeader
28
  # sketch_model_mode: transfer
29
- sketch_architectures: ElectraForSequenceClassification
30
 
31
  # IntensiveModelArguments
32
  intensive_revision: en-distilbert-intensive1
33
  intensive_model_name: faori/retro_reeader
34
  # intensive_model_mode: transfer
35
- intensive_architectures: ElectraForQuestionAnsweringAVPool
36
 
37
 
38
  TrainingArguments:
 
26
  sketch_revision: en-distilbert-sketch
27
  sketch_model_name: faori/retro_reeader
28
  # sketch_model_mode: transfer
29
+ sketch_architectures: DistilBertForSequenceClassification
30
 
31
  # IntensiveModelArguments
32
  intensive_revision: en-distilbert-intensive1
33
  intensive_model_name: faori/retro_reeader
34
  # intensive_model_mode: transfer
35
+ intensive_architectures: DistilBertForQuestionAnsweringAVPool
36
 
37
 
38
  TrainingArguments:
configs/inference_en_roberta.yaml CHANGED
@@ -25,19 +25,17 @@ RetroDataModelArguments:
25
  # SketchModelArguments
26
  sketch_revision: en-roberta-sketch
27
  sketch_model_name: faori/retro_reeader
28
- # sketch_model_mode: transfer
29
- sketch_architectures: ElectraForSequenceClassification
30
 
31
  # IntensiveModelArguments
32
  intensive_revision: en-roberta-intensive
33
  intensive_model_name: faori/retro_reeader
34
- # intensive_model_mode: transfer
35
- intensive_architectures: ElectraForQuestionAnsweringAVPool
36
 
37
 
38
  TrainingArguments:
39
  output_dir: outputs
40
  no_cuda: True # If you want to use cuda,
41
- # change `no_cuda` to False and `fp16` to True
42
  per_device_train_batch_size: 1
43
  per_device_eval_batch_size: 12
 
25
  # SketchModelArguments
26
  sketch_revision: en-roberta-sketch
27
  sketch_model_name: faori/retro_reeader
28
+ sketch_architectures: RobertaForSequenceClassification
 
29
 
30
  # IntensiveModelArguments
31
  intensive_revision: en-roberta-intensive
32
  intensive_model_name: faori/retro_reeader
33
+ intensive_architectures: RobertaForQuestionAnsweringAVPool
 
34
 
35
 
36
  TrainingArguments:
37
  output_dir: outputs
38
  no_cuda: True # If you want to use cuda,
39
+ # change `no_cuda` to False and `fp16` to True
40
  per_device_train_batch_size: 1
41
  per_device_eval_batch_size: 12
outputs/intensive/nbest_predictions.json CHANGED
@@ -1,130 +1,130 @@
1
  {
2
  "id-01": [
3
  {
4
- "start_logit": 5.459519386291504,
5
- "end_logit": 5.520893096923828,
6
  "text": "late 1990s",
7
- "probability": 0.8416187167167664
8
  },
9
  {
10
- "start_logit": 3.4294681549072266,
11
- "end_logit": 5.520893096923828,
12
- "text": "1990s",
13
- "probability": 0.11052876710891724
14
  },
15
  {
16
- "start_logit": 2.023928165435791,
17
- "end_logit": 5.520893096923828,
18
  "text": "the late 1990s",
19
- "probability": 0.027105478569865227
20
- },
21
- {
22
- "start_logit": 1.743208646774292,
23
- "end_logit": 5.520893096923828,
24
- "text": "in the late 1990s",
25
- "probability": 0.020471150055527687
26
  },
27
  {
28
- "start_logit": 5.459519386291504,
29
- "end_logit": -3.1740002632141113,
30
- "text": "late",
31
- "probability": 0.00014091959747020155
32
  },
33
  {
34
- "start_logit": 5.459519386291504,
35
- "end_logit": -4.651952266693115,
36
  "text": "late 1990s as lead singer of R&B girl-group Destiny's Child.",
37
- "probability": 3.2144344004336745e-05
38
  },
39
  {
40
- "start_logit": 5.459519386291504,
41
- "end_logit": -4.683455467224121,
42
  "text": "late 1990s as lead singer of R&B girl-group Destiny's Child",
43
- "probability": 3.114749415544793e-05
44
  },
45
  {
46
- "start_logit": -5.373571395874023,
47
- "end_logit": 5.520893096923828,
48
- "text": "rose to fame in the late 1990s",
49
- "probability": 1.6609777958365157e-05
50
  },
51
  {
52
- "start_logit": -5.5168046951293945,
53
- "end_logit": 5.520893096923828,
54
- "text": "fame in the late 1990s",
55
- "probability": 1.4393232959264424e-05
56
  },
57
  {
58
- "start_logit": 5.459519386291504,
59
- "end_logit": -5.739414215087891,
60
  "text": "late 1990s as",
61
- "probability": 1.0834928616532125e-05
 
 
 
 
 
 
62
  },
63
  {
64
- "start_logit": 5.459519386291504,
65
- "end_logit": -6.014301300048828,
66
- "text": "late 1990s as lead singer",
67
- "probability": 8.230838830058929e-06
68
  },
69
  {
70
- "start_logit": 2.023928165435791,
71
- "end_logit": -3.1740002632141113,
72
- "text": "the late",
73
- "probability": 4.538505436357809e-06
74
  },
75
  {
76
- "start_logit": 3.4294681549072266,
77
- "end_logit": -4.651952266693115,
78
- "text": "1990s as lead singer of R&B girl-group Destiny's Child.",
79
- "probability": 4.221481958666118e-06
80
  },
81
  {
82
- "start_logit": 3.4294681549072266,
83
- "end_logit": -4.683455467224121,
84
- "text": "1990s as lead singer of R&B girl-group Destiny's Child",
85
- "probability": 4.09056292483001e-06
86
  },
87
  {
88
- "start_logit": 1.743208646774292,
89
- "end_logit": -3.1740002632141113,
90
- "text": "in the late",
91
- "probability": 3.4276604310434777e-06
92
  },
93
  {
94
- "start_logit": 3.4294681549072266,
95
- "end_logit": -5.739414215087891,
96
- "text": "1990s as",
97
- "probability": 1.422937998540874e-06
98
  },
99
  {
100
- "start_logit": 3.4294681549072266,
101
- "end_logit": -6.014301300048828,
102
- "text": "1990s as lead singer",
103
- "probability": 1.0809460491145728e-06
104
  },
105
  {
106
- "start_logit": 2.023928165435791,
107
- "end_logit": -4.651952266693115,
108
- "text": "the late 1990s as lead singer of R&B girl-group Destiny's Child.",
109
- "probability": 1.0352529216106632e-06
110
  },
111
  {
112
- "start_logit": 2.023928165435791,
113
- "end_logit": -4.683455467224121,
114
- "text": "the late 1990s as lead singer of R&B girl-group Destiny's Child",
115
- "probability": 1.0031470765170525e-06
116
  },
117
  {
118
- "start_logit": 1.743208646774292,
119
- "end_logit": -4.651952266693115,
120
- "text": "in the late 1990s as lead singer of R&B girl-group Destiny's Child.",
121
- "probability": 7.818644007784314e-07
122
  },
123
  {
124
- "start_logit": -6.592185020446777,
125
- "end_logit": -6.263244152069092,
126
  "text": "",
127
- "probability": 3.744041535136411e-11
128
  }
129
  ]
130
  }
 
1
  {
2
  "id-01": [
3
  {
4
+ "start_logit": 7.999092102050781,
5
+ "end_logit": 8.703618049621582,
6
  "text": "late 1990s",
7
+ "probability": 0.9145709276199341
8
  },
9
  {
10
+ "start_logit": 4.969649791717529,
11
+ "end_logit": 8.703618049621582,
12
+ "text": "in the late 1990s",
13
+ "probability": 0.04421274736523628
14
  },
15
  {
16
+ "start_logit": 4.745737075805664,
17
+ "end_logit": 8.703618049621582,
18
  "text": "the late 1990s",
19
+ "probability": 0.035343021154403687
 
 
 
 
 
 
20
  },
21
  {
22
+ "start_logit": 2.846527338027954,
23
+ "end_logit": 8.703618049621582,
24
+ "text": "1990s",
25
+ "probability": 0.005290384404361248
26
  },
27
  {
28
+ "start_logit": 7.999092102050781,
29
+ "end_logit": 0.42595237493515015,
30
  "text": "late 1990s as lead singer of R&B girl-group Destiny's Child.",
31
+ "probability": 0.00023241978487931192
32
  },
33
  {
34
+ "start_logit": 7.999092102050781,
35
+ "end_logit": -0.1830665022134781,
36
  "text": "late 1990s as lead singer of R&B girl-group Destiny's Child",
37
+ "probability": 0.00012640953355003148
38
  },
39
  {
40
+ "start_logit": 7.999092102050781,
41
+ "end_logit": -0.7555239200592041,
42
+ "text": "late",
43
+ "probability": 7.13123517925851e-05
44
  },
45
  {
46
+ "start_logit": -1.9773104190826416,
47
+ "end_logit": 8.703618049621582,
48
+ "text": "rose to fame in the late 1990s",
49
+ "probability": 4.251295831636526e-05
50
  },
51
  {
52
+ "start_logit": 7.999092102050781,
53
+ "end_logit": -1.7098057270050049,
54
  "text": "late 1990s as",
55
+ "probability": 2.746157224464696e-05
56
+ },
57
+ {
58
+ "start_logit": -2.8063130378723145,
59
+ "end_logit": 8.703618049621582,
60
+ "text": "fame in the late 1990s",
61
+ "probability": 1.8556229406385683e-05
62
  },
63
  {
64
+ "start_logit": 7.999092102050781,
65
+ "end_logit": -2.2632956504821777,
66
+ "text": "late 1990s as lead singer of R&B girl-group",
67
+ "probability": 1.5788740711286664e-05
68
  },
69
  {
70
+ "start_logit": 4.969649791717529,
71
+ "end_logit": 0.42595237493515015,
72
+ "text": "in the late 1990s as lead singer of R&B girl-group Destiny's Child.",
73
+ "probability": 1.1235780220886227e-05
74
  },
75
  {
76
+ "start_logit": 4.745737075805664,
77
+ "end_logit": 0.42595237493515015,
78
+ "text": "the late 1990s as lead singer of R&B girl-group Destiny's Child.",
79
+ "probability": 8.981716746347956e-06
80
  },
81
  {
82
+ "start_logit": 4.969649791717529,
83
+ "end_logit": -0.1830665022134781,
84
+ "text": "in the late 1990s as lead singer of R&B girl-group Destiny's Child",
85
+ "probability": 6.110960839578183e-06
86
  },
87
  {
88
+ "start_logit": 7.999092102050781,
89
+ "end_logit": -3.3915696144104004,
90
+ "text": "late 1990s as lead singer of R&B girl-group Destiny's Child. Managed by her father, Mathew Knowles",
91
+ "probability": 5.109103767608758e-06
92
  },
93
  {
94
+ "start_logit": 4.745737075805664,
95
+ "end_logit": -0.1830665022134781,
96
+ "text": "the late 1990s as lead singer of R&B girl-group Destiny's Child",
97
+ "probability": 4.885012003796874e-06
98
  },
99
  {
100
+ "start_logit": 4.969649791717529,
101
+ "end_logit": -0.7555239200592041,
102
+ "text": "in the late",
103
+ "probability": 3.4474219319236e-06
104
  },
105
  {
106
+ "start_logit": -4.502557277679443,
107
+ "end_logit": 8.703618049621582,
108
+ "text": "Houston, Texas, she performed in various singing and dancing competitions as a child, and rose to fame in the late 1990s",
109
+ "probability": 3.4026763842121e-06
110
  },
111
  {
112
+ "start_logit": 4.745737075805664,
113
+ "end_logit": -0.7555239200592041,
114
+ "text": "the late",
115
+ "probability": 2.7558182864595437e-06
116
  },
117
  {
118
+ "start_logit": 7.999092102050781,
119
+ "end_logit": -4.044256210327148,
120
+ "text": "late 1990s as lead singer of R&B girl-group Destiny",
121
+ "probability": 2.660028712853091e-06
122
  },
123
  {
124
+ "start_logit": -2.3256735801696777,
125
+ "end_logit": -1.575926661491394,
126
  "text": "",
127
+ "probability": 1.0301006714286132e-09
128
  }
129
  ]
130
  }
outputs/intensive/null_odds.json CHANGED
@@ -1,3 +1,3 @@
1
  {
2
- "id-01": -23.83584213256836
3
  }
 
1
  {
2
+ "id-01": -20.60430908203125
3
  }
outputs/sketch/cls_score.json CHANGED
@@ -1,3 +1,3 @@
1
  {
2
- "id-01": 11.180146217346191
3
  }
 
1
  {
2
+ "id-01": 9.18770170211792
3
  }