# msmarco-v21 The training set `text/msmarco_v21` exactly as the OpenEmbed models were trained on it (both stages), as records without the source's texts: each record names its query, positive and negatives in the source, microsoft/ms_marco at revision a47ee7aa, and the loader fetches the texts from there and checks every record against the sha256 of our training bytes. The source's terms do not let us redistribute its texts. * Registry id: `text/msmarco_v21` (exact case; the folder name is lowercase). Category: text. * 499,865 records in 16 TFRecord shards (1.83 GB). * Source: MS MARCO Question Answering v2.1 (microsoft/ms_marco, config v2.1), converted by our first-stage MS MARCO builder. ## Files * `records.parquet`: one row per record, in shard order (`shard`, `ordinal`): every stored field (`record_key`, `dataset_id`, `wemm_type`, `task_subtype`, `modality_sig`, `instruction`, `neg_scores`, `pos_score`, `pos_rank`, `graded_score`, `target_key`, `group_key`, `license`; not the texts `query_text`, `target_text` and `neg_texts`), `text_source` (JSON: where the record's query, positive and negatives are in the source), `provenance` (the shard and record of the earlier conversion it came from) and the sha256 and length of the serialized record (`record_sha256`: our training bytes; `record_sha256_public`: with the public provenance). * `filters.parquet`: per record what the training loader applied when reading it: `adapter_emitted`, `adapter_flags`, `blocked_at_read`, `dedup_skipped`. * `shards.parquet`: per shard record count, bytes, md5 and crc32c (base64) of our training shard and of the public rebuild. * `set.json`: these facts in machine-readable form. ## Rebuild From the repository root (`pip install pyarrow huggingface_hub crc32c Pillow`): ``` python tools/openembed_data/rebuild_shards.py --out shards/ --sets text/msmarco_v21 ``` It writes the 16 shards (1.81 GB) and checks every record's sha256 and every shard's md5 and crc32c; `--no-write` checks without writing. The texts come from microsoft/ms_marco at revision a47ee7aa (v2.1/train-00000-of-00007.parquet, v2.1/train-00001-of-00007.parquet, v2.1/train-00002-of-00007.parquet, v2.1/train-00003-of-00007.parquet, v2.1/train-00004-of-00007.parquet, v2.1/train-00005-of-00007.parquet, v2.1/train-00006-of-00007.parquet; 1.69 GB in all), downloaded into `--cache` on the first run; the loader re-makes them as our builders made them (the query, and each passage without surrounding blanks and cut to 1,200 characters; the record names the positive and the negatives by their place among the row's ten passages) and cleans them as the training adapter did (media placeholders removed, surrounding blanks stripped; negatives that are blank, equal to the positive or repeated after NFKC, case folding and whitespace collapsing dropped), then checks each record's sha256. Provenance: our training shards carry our internal storage location in the provenance string; the release writes `openembed://...` instead, so the rebuilt shards equal our training shards in every other byte and are checked against the `*_public` values. With the internal prefixes the rebuild is byte-identical to the training shards (`record_sha256`, `md5`, `crc32c`); we checked that before release. ## Filters At read time nothing was removed: all 499,865 records were emitted by the training adapter with no flag, none was blocked and none skipped. When these shards were built 3 removed as contamination (exact evaluation items). Read-time gate: `applied_at_build`. ## Verified End to end on 2026-11-10: * Training bytes (internal prefixes): 499,865 / 499,865 records with the recorded sha256; 16 / 16 shards with the md5 and crc32c of the shards our training read. * Public rebuild (this release): 499,865 / 499,865 records and 16 / 16 shards match the `*_public` values. * From the source (2026-11-12, this package): 499,865 / 499,865 records re-made with the loader from microsoft/ms_marco with the recorded sha256, and 16 / 16 shards with the recorded md5 and crc32c. ## Terms License class `NC`: non-commercial or research-only terms, or terms that restrict redistribution. Microsoft's MS MARCO terms and conditions: provided free and as is for non-commercial research purposes only; no licence or intellectual-property rights are extended. The texts are not redistributed: the loader fetches them from the source, whose terms apply. These records are derived from the source above and follow its terms. They are released for research use; we remove items on request.