Download research/docs/data.md from BurnyCoder/thirdloss-study: direct link, hf CLI and curl.
- Browser
- Download file 4.83 kB
-
https://huggingface.co/BurnyCoder/thirdloss-study/resolve/2dc6e0359c8ec32e020f034e6e4cf9259c435407/research/docs/data.md
- Command line
-
hf download hf://BurnyCoder/thirdloss-study@2dc6e0359c8ec32e020f034e6e4cf9259c435407/research/docs/data.md
-
curl -L -o data.md https://huggingface.co/BurnyCoder/thirdloss-study/resolve/2dc6e0359c8ec32e020f034e6e4cf9259c435407/research/docs/data.md
Corpus preparation
The public entry point thirdloss.data.prepare(stage, root) creates a self-contained stories or abstracts stage directory under the selected data root. A repeat call verifies its checksums and recovers damaged output. The original source cache lives alongside the prepared stages. The Hub client uses an immutable revision. A public HTTPS fallback checks the same upstream object identity and size before accepting the bytes. Hub download API
Cohorts
| Stage | Source and assignment |
|---|---|
| Stories | Take the first 160,000 rows of the source training split in physical parquet row order. Assign a story to development when the integer encoded by the first 16 hex digits of its normalized SHA-256 hash is divisible by 50. Use all rows from the official validation parquet as candidate test documents. Source row IDs remain stable across re-runs. Pinned input files 路 Arrow streaming reader |
| Abstracts | Scan both compressed JSONL shards. Use the source created timestamp to select first submissions in January through April 2024 for training, May for development and June for testing. Group versions using the base arXiv identifier and retain the first source record per ID. Log how often the identifier month differs from the creation month. The corpus stores the abstract available at collection time, which can include revisions after submission. Pinned abstracts 路 arXiv identifier scheme 路 Upstream first-version timestamp example |
Overlap audit
Hash Unicode NFKC, case-folded, whitespace-collapsed text. Retain the earliest exact copy within each split with priority given to test, then development, then training. Train the tokenizer on the original retained text after trimming outer whitespace. For cross-split near copies, form sets of five consecutive Unicode word tokens. Short documents form one shingle. Punctuation-only documents retain a normalized whole-text key.
The audit excludes any lower-priority document that reaches Jaccard similarity 4/5 against a retained higher-priority document. To identify candidates, order shingles by their reference-split document frequency, then lexically. With n shingles, index the first floor(n/5)+1. Every pair meeting the cutoff must share a prefix term under this common ordering. Verify candidates by exact set intersection. Evaluation references with the earliest source index break a match tie. Every exclusion has an auditable reason and matched ID. This procedure detects all cross-split copies meeting the stated whole-document shingle criterion. Paraphrases, snippets copied inside a longer document, and lower-similarity boilerplate can survive. Near matches within a single split can also survive and affect its diversity. Xiao et al., 搂2.2
Token and evidence files
- Stories use byte-level BPE with a complete byte alphabet, one end-of-text symbol, 4,096 entries, and all retained training documents. Abstracts reuse the exact tokenizer bytes of the base model. The manifest separates the largest usable tokenizer ID plus one from Pythia鈥檚 padded output-head width. BPE trainer 路 Pinned base checkpoint
- Each split is a contiguous little-endian uint16 file ordered by source row, with one appended EOS per document and no injected BOS. The model can see previous documents in a packed window across EOS boundaries. Context and next-target shifting belong to the training/evaluation code. An example file opens with
numpy.memmap(stage_dir / "train.bin", dtype="<u2", mode="r"). documents.jsonlgives each retained document鈥檚 source ID, normalized content hash, starting token, and length including EOS. Abstracts additionally include the submitted timestamp.rejections.jsonllists rejected document IDs and reasons. These two files contain metadata rather than copies of source documents.manifest.jsonrecords split counts, audit counts, source revisions, source and output SHA-256 hashes, encoding settings and vocabulary dimensions. The stage-local lock serializes preparation. A temporary build promotes verified outputs atomically one file at a time and publishes this manifest last.