mkw18
commited on
Commit
•
fbd9133
1
Parent(s):
8fc1811
change annote
Browse files- .DS_Store +0 -0
- app.py +10 -19
- blocklm-10b-1024-validation-126000-4-False-0-dialog.csv +0 -0
- blocklm-2b-512-validation-170000-4-False-0-dialog.csv +0 -0
- checkpoints-validation-gpt-j-6B-4-False-0-dialog.csv +0 -0
- checkpoints-validation-gpt-jt-6B-4-False-0-dialog.csv +0 -0
- glm10b-nk.csv +0 -0
- glm2b-nk.csv +0 -0
- gptj-nk.csv +0 -0
- gptjt-nk.csv +0 -0
.DS_Store
CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
|
|
app.py
CHANGED
@@ -4,10 +4,10 @@ import json
|
|
4 |
import requests
|
5 |
import os
|
6 |
|
7 |
-
glm2b = pd.read_csv('
|
8 |
-
glm10b = pd.read_csv('
|
9 |
-
gptj = pd.read_csv('
|
10 |
-
gptjt = pd.read_csv('
|
11 |
|
12 |
glm2b_orig = glm2b[['persona', 'knowledge', 'context', 'prompted text', 'ground truth', 'origin']].rename(columns={'origin': 'inference'})
|
13 |
glm2b_para = glm2b[['persona', 'knowledge', 'context', 'prompted text', 'ground truth', 'parallel']].rename(columns={'parallel': 'inference'})
|
@@ -46,11 +46,6 @@ def new_data(user_data):
|
|
46 |
for ci in context:
|
47 |
new_c += [ci[i:i+67] for i in range(0, len(ci), 67)]
|
48 |
new_c = '\n'.join(new_c)
|
49 |
-
prompt = sample['prompted text'].split('\n')
|
50 |
-
new_pr = []
|
51 |
-
for pri in prompt:
|
52 |
-
new_pr += [pri[i:i+67] for i in range(0, len(pri), 67)]
|
53 |
-
new_pr = '\n'.join(new_pr)
|
54 |
gtruth = sample['ground truth'].split('\n')
|
55 |
new_g = []
|
56 |
for gi in gtruth:
|
@@ -64,7 +59,6 @@ def new_data(user_data):
|
|
64 |
p.text(new_p)
|
65 |
k.text(new_k)
|
66 |
c.text(new_c)
|
67 |
-
pr.text(new_pr)
|
68 |
g.text(new_g)
|
69 |
infer.text(new_i)
|
70 |
return 'not finish'
|
@@ -90,8 +84,6 @@ with col1:
|
|
90 |
with col2:
|
91 |
with st.expander("知识"):
|
92 |
k = st.empty()
|
93 |
-
with st.expander("Prompted Text"):
|
94 |
-
pr = st.empty()
|
95 |
|
96 |
a1, a2 = st.columns(2)
|
97 |
with a1:
|
@@ -110,7 +102,7 @@ with st.container():
|
|
110 |
with pc:
|
111 |
ps = st.selectbox("人设一致性", [0,1,2], key='ps')
|
112 |
with hc:
|
113 |
-
hs = st.selectbox("
|
114 |
with fc:
|
115 |
fs = st.selectbox("流畅度", [0,1,2], key='fs')
|
116 |
|
@@ -133,7 +125,6 @@ if username in users and users[username] == password:
|
|
133 |
else:
|
134 |
p.text("登录后开始标注")
|
135 |
c.text("登录后开始标注")
|
136 |
-
pr.text("登录后开始标注")
|
137 |
g.text("登录后开始标注")
|
138 |
k.text("登录后开始标注")
|
139 |
infer.text("登录后开始标注")
|
@@ -167,11 +158,11 @@ if succ:
|
|
167 |
else:
|
168 |
csv_idx = model_list[all_process]
|
169 |
sample = csv_map[csv_idx].iloc[data_idx[csv_idx][process[csv_idx]]]
|
170 |
-
user_data['context_relevance'][csv_idx][process[csv_idx]%
|
171 |
-
user_data['knowledge_relevance'][csv_idx][process[csv_idx]%
|
172 |
-
user_data['persona_consistency'][csv_idx][process[csv_idx]%
|
173 |
-
user_data['hallucination'][csv_idx][process[csv_idx]%
|
174 |
-
user_data['fluency'][csv_idx][process[csv_idx]%
|
175 |
user_data['process'][csv_idx] += 1
|
176 |
user_data['all_process'] += 1
|
177 |
data = {'Focus': user_data, 'username': username}
|
|
|
4 |
import requests
|
5 |
import os
|
6 |
|
7 |
+
glm2b = pd.read_csv('glm2b-nk.csv')
|
8 |
+
glm10b = pd.read_csv('glm10b-nk.csv')
|
9 |
+
gptj = pd.read_csv('gptj-nk.csv')
|
10 |
+
gptjt = pd.read_csv('gptjt-nk.csv')
|
11 |
|
12 |
glm2b_orig = glm2b[['persona', 'knowledge', 'context', 'prompted text', 'ground truth', 'origin']].rename(columns={'origin': 'inference'})
|
13 |
glm2b_para = glm2b[['persona', 'knowledge', 'context', 'prompted text', 'ground truth', 'parallel']].rename(columns={'parallel': 'inference'})
|
|
|
46 |
for ci in context:
|
47 |
new_c += [ci[i:i+67] for i in range(0, len(ci), 67)]
|
48 |
new_c = '\n'.join(new_c)
|
|
|
|
|
|
|
|
|
|
|
49 |
gtruth = sample['ground truth'].split('\n')
|
50 |
new_g = []
|
51 |
for gi in gtruth:
|
|
|
59 |
p.text(new_p)
|
60 |
k.text(new_k)
|
61 |
c.text(new_c)
|
|
|
62 |
g.text(new_g)
|
63 |
infer.text(new_i)
|
64 |
return 'not finish'
|
|
|
84 |
with col2:
|
85 |
with st.expander("知识"):
|
86 |
k = st.empty()
|
|
|
|
|
87 |
|
88 |
a1, a2 = st.columns(2)
|
89 |
with a1:
|
|
|
102 |
with pc:
|
103 |
ps = st.selectbox("人设一致性", [0,1,2], key='ps')
|
104 |
with hc:
|
105 |
+
hs = st.selectbox("精炼度", [0,1,2], key='hs')
|
106 |
with fc:
|
107 |
fs = st.selectbox("流畅度", [0,1,2], key='fs')
|
108 |
|
|
|
125 |
else:
|
126 |
p.text("登录后开始标注")
|
127 |
c.text("登录后开始标注")
|
|
|
128 |
g.text("登录后开始标注")
|
129 |
k.text("登录后开始标注")
|
130 |
infer.text("登录后开始标注")
|
|
|
158 |
else:
|
159 |
csv_idx = model_list[all_process]
|
160 |
sample = csv_map[csv_idx].iloc[data_idx[csv_idx][process[csv_idx]]]
|
161 |
+
user_data['context_relevance'][csv_idx][process[csv_idx]%100] = cs
|
162 |
+
user_data['knowledge_relevance'][csv_idx][process[csv_idx]%100] = ks
|
163 |
+
user_data['persona_consistency'][csv_idx][process[csv_idx]%100] = ps
|
164 |
+
user_data['hallucination'][csv_idx][process[csv_idx]%100] = hs
|
165 |
+
user_data['fluency'][csv_idx][process[csv_idx]%100] = fs
|
166 |
user_data['process'][csv_idx] += 1
|
167 |
user_data['all_process'] += 1
|
168 |
data = {'Focus': user_data, 'username': username}
|
blocklm-10b-1024-validation-126000-4-False-0-dialog.csv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
blocklm-2b-512-validation-170000-4-False-0-dialog.csv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
checkpoints-validation-gpt-j-6B-4-False-0-dialog.csv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
checkpoints-validation-gpt-jt-6B-4-False-0-dialog.csv
DELETED
The diff for this file is too large to render.
See raw diff
|
|
glm10b-nk.csv
ADDED
The diff for this file is too large to render.
See raw diff
|
|
glm2b-nk.csv
ADDED
The diff for this file is too large to render.
See raw diff
|
|
gptj-nk.csv
ADDED
The diff for this file is too large to render.
See raw diff
|
|
gptjt-nk.csv
ADDED
The diff for this file is too large to render.
See raw diff
|
|