JonesLin commited on
Commit
9434844
·
verified ·
1 Parent(s): 2a261dd

Add files using upload-large-folder tool

Browse files
README.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ configs:
3
+ - config_name: default
4
+ data_files:
5
+ - split: train
6
+ path: data/train.parquet
7
+ - split: validation
8
+ path: data/validation.parquet
9
+ - split: excluded
10
+ path: data/excluded.parquet
11
+ ---
12
+
13
+ # NextJev Phase 1 accepted
14
+
15
+ This dataset contains all **137,960** independently verified Phase 1 accepted records.
16
+
17
+ - `train`: 124,341 records compatible with the current three-way NextJev trainer.
18
+ - `validation`: 2,377 held-out records, split by evidence group with seed 42.
19
+ - `excluded`: 11,242 accepted records retained for audit but excluded from current NextJev training because their labels cannot be converted losslessly.
20
+
21
+ Images are embedded in the Parquet `image` column using the Hugging Face `Image` representation. The repository intentionally contains a few merged Parquet files instead of thousands of individual image files. `materialize_next_jev.py` converts the two training splits into the flat JSONL plus deduplicated local images expected by the current NextJev loader.
22
+
23
+ The training rows use `id`, `premise`, `hypothesis`, `image_path`, `teacher_rationale`, `split_group`, `source`, and `gold_label`. Teacher rationales are targets only; they are not input prompts. VQA rows follow the existing NextJev conversion policy and become entailment statements. Binary NLI and low-consensus VQAv2 rows remain in `excluded` with an explicit reason.
24
+
25
+ The source export was accepted/review partitioned and independently verified before conversion. See `manifest.json` for counts, hashes, selection methods, source datasets, and exclusion reasons.
data/excluded.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d43f4c9afda644f478d8820b07144f4cbb098aaf2fbdf75e6a47386809d9595e
3
+ size 4005704
data/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18af5c98657c88e03787aeed5401c333459541c61960fb2f2d0f6eb50d5d250e
3
+ size 2604630944
data/validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56e5dbe06b8ef11c5099edbbc67e4d66bb6cb191f54a203316caec07ee3c9ae5
3
+ size 46085512
manifest.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "status": "complete",
4
+ "format": "huggingface_parquet_embedded_image",
5
+ "counts": {
6
+ "accepted": 137960,
7
+ "excluded": 11242,
8
+ "train": 124341,
9
+ "validation": 2377
10
+ },
11
+ "datasets": {
12
+ "babi": 1717,
13
+ "e-SNLI-VE": 8445,
14
+ "SNLI-VE": 10880,
15
+ "anli": 12099,
16
+ "snli": 40555,
17
+ "wanli": 7119,
18
+ "lingnli": 3145,
19
+ "VQAv2": 103,
20
+ "qnli": 7691,
21
+ "GQA": 213,
22
+ "nli_fever": 15062,
23
+ "scitail": 1821,
24
+ "control": 444,
25
+ "multinli": 28666
26
+ },
27
+ "labels": {
28
+ "contradiction": 39143,
29
+ "entailment": 46430,
30
+ "neutral": 41145
31
+ },
32
+ "exclusions": {
33
+ "binary_task_not_supported": 11229,
34
+ "vqa_low_consensus": 13
35
+ },
36
+ "selection_methods": {
37
+ "primary_strict": 125326,
38
+ "gemini_strict": 9065,
39
+ "primary_jev_equivalent": 2491,
40
+ "gemini_jev_equivalent": 1078
41
+ },
42
+ "unique_images": 14110,
43
+ "validation_fraction": 0.02,
44
+ "split_seed": 42,
45
+ "source": {
46
+ "selected": "/Users/linjinhong/Documents/Projects/openjev-sampling/grok46-batches/phase1_validation/selected.jsonl",
47
+ "selected_sha256": "9552010b9854fa8db78f709e2810116f4f4fe5569cdc166ea3a6b3dc2eaaa930",
48
+ "verification_report": "/Users/linjinhong/Documents/Projects/openjev-sampling/grok46-batches/phase1_validation/verification_report.json",
49
+ "verification_report_sha256": "856ffb47ff092c534d974750de7869a8304f1b71aee46c766b94a1e889228c02"
50
+ },
51
+ "files": {
52
+ "data/excluded.parquet": {
53
+ "bytes": 4005704,
54
+ "sha256": "d43f4c9afda644f478d8820b07144f4cbb098aaf2fbdf75e6a47386809d9595e"
55
+ },
56
+ "data/train.parquet": {
57
+ "bytes": 2604630944,
58
+ "sha256": "18af5c98657c88e03787aeed5401c333459541c61960fb2f2d0f6eb50d5d250e"
59
+ },
60
+ "data/validation.parquet": {
61
+ "bytes": 46085512,
62
+ "sha256": "56e5dbe06b8ef11c5099edbbc67e4d66bb6cb191f54a203316caec07ee3c9ae5"
63
+ }
64
+ }
65
+ }
materialize_hf_next_jev.py ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Materialize an HF Parquet/Image dataset for the current NextJev JSONL loader."""
2
+ from __future__ import annotations
3
+
4
+ import argparse
5
+ import hashlib
6
+ import json
7
+ from pathlib import Path
8
+
9
+ from datasets import Image, load_dataset
10
+
11
+
12
+ def main() -> None:
13
+ parser = argparse.ArgumentParser()
14
+ parser.add_argument("repo")
15
+ parser.add_argument("output", type=Path)
16
+ parser.add_argument("--revision")
17
+ args = parser.parse_args()
18
+ output = args.output.resolve()
19
+ if output.exists():
20
+ raise FileExistsError(output)
21
+ output.mkdir(parents=True)
22
+ images = output / "images"
23
+ images.mkdir()
24
+ dataset = load_dataset(args.repo, revision=args.revision)
25
+ counts = {}
26
+ for split in ("train", "validation"):
27
+ rows = dataset[split].cast_column("image", Image(decode=False))
28
+ target = output / f"{split}.jsonl"
29
+ count = 0
30
+ with target.open("w") as stream:
31
+ for row in rows:
32
+ image = row.pop("image")
33
+ relative = row.get("image_path")
34
+ if image is not None:
35
+ content = image.get("bytes")
36
+ if content is None:
37
+ content = Path(image["path"]).read_bytes()
38
+ expected = row["source"]["image_sha256"]
39
+ if hashlib.sha256(content).hexdigest() != expected:
40
+ raise ValueError(f"image hash mismatch: {row['id']}")
41
+ path = output / relative
42
+ path.parent.mkdir(parents=True, exist_ok=True)
43
+ if path.exists() and path.read_bytes() != content:
44
+ raise ValueError(f"image collision: {path}")
45
+ if not path.exists():
46
+ path.write_bytes(content)
47
+ row = {key: row[key] for key in (
48
+ "id", "premise", "hypothesis", "image_path", "teacher_rationale",
49
+ "split_group", "source", "gold_label",
50
+ )}
51
+ stream.write(json.dumps(row, ensure_ascii=False, separators=(",", ":")) + "\n")
52
+ count += 1
53
+ counts[split] = count
54
+ print(json.dumps({"status": "complete", "output": str(output), "counts": counts}, indent=2))
55
+
56
+
57
+ if __name__ == "__main__":
58
+ main()
verification.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "status": "verified",
3
+ "checked_at": "2026-09-22T08:28:31Z",
4
+ "counts": {
5
+ "train": 124341,
6
+ "validation": 2377,
7
+ "excluded": 11242,
8
+ "total": 137960,
9
+ "next_jev_compatible": 126718
10
+ },
11
+ "unique_ids": 137960,
12
+ "image_rows": 19641,
13
+ "train_validation_group_overlap": 0,
14
+ "labels": {
15
+ "contradiction": 39143,
16
+ "entailment": 46430,
17
+ "neutral": 41145
18
+ },
19
+ "checks": {
20
+ "phase1_source_export_verified": true,
21
+ "parquet_row_counts_match_manifest": true,
22
+ "ids_unique_across_all_splits": true,
23
+ "training_labels_valid": true,
24
+ "embedded_image_hashes_match": true,
25
+ "huggingface_image_feature_detected": true,
26
+ "evidence_groups_disjoint_across_train_validation": true
27
+ }
28
+ }