Hyukkyu commited on
Commit
09f212a
·
verified ·
1 Parent(s): 3330b5f

magicoder: hard negatives and teacher scores (jina35-u2)

Browse files
README.md CHANGED
@@ -50,7 +50,7 @@ A seeded sample of [`ise-uiuc/Magicoder-OSS-Instruct-75K`](https://huggingface.c
50
  | Layout | `queries` · `corpus` · `qrels` · `hard-negatives` · `teacher-scores`, split `train` |
51
  | Splits | `corpus`: train · `hard-negatives`: train · `qrels`: train · `queries`: train · `teacher-scores`: train |
52
  | Hard negatives | sources: `dense` · 5,939,734 rows |
53
- | Teacher scores | none yet (0 rows): `jinaai/jina-reranker-v3.5` scores come next |
54
  | Ids | `sha1(text)[:20]`; identical texts collapse to one document / query |
55
  | License | `mit` |
56
 
@@ -78,14 +78,26 @@ Files are Parquet, sorted by id, zstd-compressed, sharded at 500 MB. Every rule
78
 
79
  ## Hard negatives and teacher scores
80
 
81
- Filled by the collection's annotation pipeline (`annotation=jina35`). **Interim**: the candidates are final, the teacher scores are still to come.
 
82
 
83
- - **Candidates**: dense retrieval with `jinaai/jina-embeddings-v5-text-small` over this corpus to depth 1,000; 100 candidates per query drawn from the rank windows 1–30 (30), 31–100 (30), 101–300 (20), 301–1000 (20), the query's labelled positives excluded. `rank` is the dense rank; `source` is `dense` for a mined row and `dataset` for a negative the source labels itself.
84
- - **Teacher scores**: none yet. `teacher-scores` holds 0 rows until the `jinaai/jina-reranker-v3.5` scores (listwise, as in the other repositories) are filled in; `datasets` cannot return a 0-example split, so read that file with `pyarrow` / `pandas` meanwhile. The candidates stay.
 
 
 
 
 
85
 
86
  | configs | queries | hard negatives | teacher scores |
87
  |---|---:|---:|---:|
88
- | `hard-negatives` · `teacher-scores` | 59,997 (all) | 5,939,734 (5,939,734 dense) | 0 |
 
 
 
 
 
 
89
 
90
  ## Load it
91
 
 
50
  | Layout | `queries` · `corpus` · `qrels` · `hard-negatives` · `teacher-scores`, split `train` |
51
  | Splits | `corpus`: train · `hard-negatives`: train · `qrels`: train · `queries`: train · `teacher-scores`: train |
52
  | Hard negatives | sources: `dense` · 5,939,734 rows |
53
+ | Teacher scores | `jinaai/jina-reranker-v3.5` · 5,999,731 rows (positives included) |
54
  | Ids | `sha1(text)[:20]`; identical texts collapse to one document / query |
55
  | License | `mit` |
56
 
 
78
 
79
  ## Hard negatives and teacher scores
80
 
81
+ Filled by the owner's annotation pipeline (`annotation=jina35-u2`) for the `train` split of the
82
+ query set(s) below; queries without a labelled positive are left out.
83
 
84
+ - **Candidates**: dense retrieval with `jinaai/jina-embeddings-v5-text-small` over the full corpus to depth 1,000;
85
+ 100 candidates per query drawn from the rank windows 1–30 (30), 31–100 (30), 101–300 (20), 301–1000 (20), the query's labelled positives excluded.
86
+ `rank` is the dense rank; `source` is `dense` for a mined row and `dataset` for a negative the source labels itself
87
+ (those are kept for every query of the split, sampled or not).
88
+ - **Teacher**: `jinaai/jina-reranker-v3.5`, listwise: a query's positive and all of its candidates are scored together in one
89
+ context of up to 32,768 tokens. `score` is the raw cosine score, one row per (query, positive) and per
90
+ (query, candidate); a labelled negative that was also mined is scored once. No filtering is applied to the tables.
91
 
92
  | configs | queries | hard negatives | teacher scores |
93
  |---|---:|---:|---:|
94
+ | `hard-negatives` · `teacher-scores` | 59,997 (all) | 5,939,734 (5,939,734 dense) | 5,999,731 |
95
+
96
+ ```python
97
+ from datasets import load_dataset
98
+ negatives = load_dataset("Hyukkyu/train-magicoder", "hard-negatives", split="train")
99
+ scores = load_dataset("Hyukkyu/train-magicoder", "teacher-scores", split="train")
100
+ ```
101
 
102
  ## Load it
103
 
teacher-scores/train-00000-of-00001.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8316266e7cbe6867227eefc104eb93ee2252b885a6127a24b8e5c1982716406a
3
- size 815
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:826997ee6905bd9aa7ff6d8c0b6da5f73092f412eb1c020127c66505fb35ac4d
3
+ size 86635602