Preserve original format attribution in English rebuild audit
Browse files- english-task-rebuild.json +1 -1
- english-task-rebuild.py +7 -2
- release-audit.json +16 -16
english-task-rebuild.json
CHANGED
|
@@ -4468,5 +4468,5 @@
|
|
| 4468 |
"CLadder absent from all training configs",
|
| 4469 |
"vision untouched"
|
| 4470 |
],
|
| 4471 |
-
"script_sha256": "
|
| 4472 |
}
|
|
|
|
| 4468 |
"CLadder absent from all training configs",
|
| 4469 |
"vision untouched"
|
| 4470 |
],
|
| 4471 |
+
"script_sha256": "d3f0ad703fb9f37c6e915fde0b0561dc6090d9c17dca0f313a82129f4f3fa000"
|
| 4472 |
}
|
english-task-rebuild.py
CHANGED
|
@@ -151,8 +151,13 @@ report={'parent_revision':PARENT,'updated':{'|'.join(k):v for k,v in updated.ite
|
|
| 151 |
'script_sha256':hashlib.sha256(Path(__file__).read_bytes()).hexdigest()}
|
| 152 |
release=json.loads((SNAP/'release-audit.json').read_text())
|
| 153 |
for split,bucket in stats['full'].items():
|
| 154 |
-
families=Counter();fmts=Counter()
|
| 155 |
-
for source,n in bucket['sources'].items():families[source_family(source)]+=n
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
release['splits'][split]={'rows':sum(bucket['sources'].values()),**{k:dict(v) for k,v in bucket.items() if k!='bytes'},'families':dict(families),'formats':dict(fmts)}
|
| 157 |
release['mix']={s:{'rows':sum(d['sources'].values()),'sources':len(d['sources'])} for s,d in stats['default'].items()}
|
| 158 |
release['english_task_rebuild']=report
|
|
|
|
| 151 |
'script_sha256':hashlib.sha256(Path(__file__).read_bytes()).hexdigest()}
|
| 152 |
release=json.loads((SNAP/'release-audit.json').read_text())
|
| 153 |
for split,bucket in stats['full'].items():
|
| 154 |
+
families=Counter();fmts=Counter(release['splits'][split]['formats'])
|
| 155 |
+
for source,n in bucket['sources'].items():families[source_family(source)]+=n
|
| 156 |
+
# Preserve original format attribution for unrelated/native/multilingual sources.
|
| 157 |
+
for source,old_type in [(MIP,'Classification'),(QUAREL,'Classification'),(ORDER,'MultipleChoice'),('cladder','Classification')]:
|
| 158 |
+
fmts[old_type]-=release['splits'][split]['sources'].get(source,0)
|
| 159 |
+
fmts['MultipleChoice' if source==QUAREL else old_type]+=bucket['sources'].get(source,0)
|
| 160 |
+
assert sum(fmts.values())==sum(bucket['sources'].values())
|
| 161 |
release['splits'][split]={'rows':sum(bucket['sources'].values()),**{k:dict(v) for k,v in bucket.items() if k!='bytes'},'families':dict(families),'formats':dict(fmts)}
|
| 162 |
release['mix']={s:{'rows':sum(d['sources'].values()),'sources':len(d['sources'])} for s,d in stats['default'].items()}
|
| 163 |
release['english_task_rebuild']=report
|
release-audit.json
CHANGED
|
@@ -1049,11 +1049,11 @@
|
|
| 1049 |
"webinstruct": 28440
|
| 1050 |
},
|
| 1051 |
"formats": {
|
| 1052 |
-
"Classification":
|
| 1053 |
-
"MultipleChoice":
|
| 1054 |
-
"graded":
|
| 1055 |
-
"
|
| 1056 |
-
"
|
| 1057 |
}
|
| 1058 |
},
|
| 1059 |
"validation": {
|
|
@@ -2080,11 +2080,11 @@
|
|
| 2080 |
"yelp_review_full": 28
|
| 2081 |
},
|
| 2082 |
"formats": {
|
| 2083 |
-
"
|
| 2084 |
-
"
|
| 2085 |
-
"
|
| 2086 |
-
"
|
| 2087 |
-
"
|
| 2088 |
}
|
| 2089 |
},
|
| 2090 |
"test": {
|
|
@@ -3113,11 +3113,11 @@
|
|
| 3113 |
"webinstruct": 122
|
| 3114 |
},
|
| 3115 |
"formats": {
|
| 3116 |
-
"
|
| 3117 |
-
"
|
| 3118 |
-
"
|
| 3119 |
-
"
|
| 3120 |
-
"
|
| 3121 |
}
|
| 3122 |
}
|
| 3123 |
},
|
|
@@ -7616,6 +7616,6 @@
|
|
| 7616 |
"CLadder absent from all training configs",
|
| 7617 |
"vision untouched"
|
| 7618 |
],
|
| 7619 |
-
"script_sha256": "
|
| 7620 |
}
|
| 7621 |
}
|
|
|
|
| 1049 |
"webinstruct": 28440
|
| 1050 |
},
|
| 1051 |
"formats": {
|
| 1052 |
+
"Classification": 1201862,
|
| 1053 |
+
"MultipleChoice": 783700,
|
| 1054 |
+
"graded": 250000,
|
| 1055 |
+
"procedural": 249999,
|
| 1056 |
+
"TokenClassification": 38185
|
| 1057 |
}
|
| 1058 |
},
|
| 1059 |
"validation": {
|
|
|
|
| 2080 |
"yelp_review_full": 28
|
| 2081 |
},
|
| 2082 |
"formats": {
|
| 2083 |
+
"Classification": 7017,
|
| 2084 |
+
"MultipleChoice": 4510,
|
| 2085 |
+
"graded": 1500,
|
| 2086 |
+
"procedural": 1500,
|
| 2087 |
+
"TokenClassification": 450
|
| 2088 |
}
|
| 2089 |
},
|
| 2090 |
"test": {
|
|
|
|
| 3113 |
"webinstruct": 122
|
| 3114 |
},
|
| 3115 |
"formats": {
|
| 3116 |
+
"Classification": 7066,
|
| 3117 |
+
"MultipleChoice": 4582,
|
| 3118 |
+
"graded": 1500,
|
| 3119 |
+
"procedural": 1500,
|
| 3120 |
+
"TokenClassification": 450
|
| 3121 |
}
|
| 3122 |
}
|
| 3123 |
},
|
|
|
|
| 7616 |
"CLadder absent from all training configs",
|
| 7617 |
"vision untouched"
|
| 7618 |
],
|
| 7619 |
+
"script_sha256": "d3f0ad703fb9f37c6e915fde0b0561dc6090d9c17dca0f313a82129f4f3fa000"
|
| 7620 |
}
|
| 7621 |
}
|