Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
shard_0: struct<rows: int64, url_equal: int64, raw_files_touched: int64>
  child 0, rows: int64
  child 1, url_equal: int64
  child 2, raw_files_touched: int64
shard_9: struct<rows: int64, url_equal: int64, raw_files_touched: int64>
  child 0, rows: int64
  child 1, url_equal: int64
  child 2, raw_files_touched: int64
pool_total_train_tokens: int64
overlaps: struct<ridge_dclm_49998: struct<n_in_pool: int64, pool_fraction: double, validation_holdout_50k: str (... 12188 chars omitted)
  child 0, ridge_dclm_49998: struct<n_in_pool: int64, pool_fraction: double, validation_holdout_50k: struct<target_docs: int64, t (... 2937 chars omitted)
      child 0, n_in_pool: int64
      child 1, pool_fraction: double
      child 2, validation_holdout_50k: struct<target_docs: int64, target_train_tokens: int64, overlap_docs: int64, overlap_doc_share: doubl (... 116 chars omitted)
          child 0, target_docs: int64
          child 1, target_train_tokens: int64
          child 2, overlap_docs: int64
          child 3, overlap_doc_share: double
          child 4, overlap_train_tokens: int64
          child 5, overlap_token_share: double
          child 6, expected_docs_if_random: double
          child 7, enrichment_docs: null
      child 3, raw_top10b_fineweb_edu: struct<target_docs: int64, target_train_tokens: int64, overlap_docs: int64, overlap_doc_share: doubl (... 116 chars omitted)
          child 0, target_docs: int64
          child 1, target_train_tokens: int64
          child 2, ove
...
t64
  child 11, exclusion_5m_basic_extra_in_removed: int64
  child 12, sel50k_in_rederived_5m: int64
  child 13, ridge_dclm_in_rederived_5m: int64
  child 14, rederived_5m_in_removed_50838: int64
  child 15, rederived_5m_surviving_in_pool: int64
  child 16, exclusion_5m_basic_in_removed_50838: int64
  child 17, exclusion_5m_basic_surviving: int64
  child 18, expected_random_5m_in_removed: double
anchor_check: struct<raw_sources_anchor_n: int64, raw_sources_anchor_equals_QB_first_4120164_as_orig_set: bool>
  child 0, raw_sources_anchor_n: int64
  child 1, raw_sources_anchor_equals_QB_first_4120164_as_orig_set: bool
set_50k: struct<selected_50k_for_claude_rows: int64, unique: int64, scored_50k_final_rows: int64, dropped_bet (... 447 chars omitted)
  child 0, selected_50k_for_claude_rows: int64
  child 1, unique: int64
  child 2, scored_50k_final_rows: int64
  child 3, dropped_between_selection_and_scoring: list<item: int64>
      child 0, item: int64
  child 4, ridge_combined_dclm_rows: int64
  child 5, ridge_combined_dclm_unique: int64
  child 6, ridge_combined_dclm_equals_scored50k: bool
  child 7, train_split_dclm: int64
  child 8, val_split_dclm: int64
  child 9, train_val_disjoint: bool
  child 10, train_union_val_equals_combined: bool
  child 11, min_orig: int64
  child 12, max_orig: int64
  child 13, removed_50838_count: int64
  child 14, sel50k_in_removed: int64
  child 15, ridge_dclm_in_removed: int64
  child 16, removed_not_in_sel50k_(pool_duplicates_by_prefix): int64
to
{'set_50k': {'selected_50k_for_claude_rows': Value('int64'), 'unique': Value('int64'), 'scored_50k_final_rows': Value('int64'), 'dropped_between_selection_and_scoring': List(Value('int64')), 'ridge_combined_dclm_rows': Value('int64'), 'ridge_combined_dclm_unique': Value('int64'), 'ridge_combined_dclm_equals_scored50k': Value('bool'), 'train_split_dclm': Value('int64'), 'val_split_dclm': Value('int64'), 'train_val_disjoint': Value('bool'), 'train_union_val_equals_combined': Value('bool'), 'min_orig': Value('int64'), 'max_orig': Value('int64'), 'removed_50838_count': Value('int64'), 'sel50k_in_removed': Value('int64'), 'ridge_dclm_in_removed': Value('int64'), 'removed_not_in_sel50k_(pool_duplicates_by_prefix)': Value('int64')}, 'set_5m': {'rederived_n': Value('int64'), 'rederived_first5': List(Value('int64')), 'exclusion_table_5m_basic_rows': Value('int64'), 'exclusion_table_50k_claude_rows': Value('int64'), 'rederived_in_exclusion_5m_basic': Value('int64'), 'exclusion_5m_basic_not_in_rederived': Value('int64'), 'exclusion_50k_claude_subset_of_sel50k': Value('bool'), 'exclusion_50k_claude_not_in_sel50k': Value('int64'), 'exclusion_50k_claude_not_in_sel50k_in_removed': Value('int64'), 'sel50k_not_in_exclusion_50k_claude': Value('int64'), 'sel50k_not_in_ex50_but_in_ex5': Value('int64'), 'exclusion_5m_basic_extra_in_removed': Value('int64'), 'sel50k_in_rederived_5m': Value('int64'), 'ridge_dclm_in_rederived_5m': Value('int64'), 'rederived_5m_in_removed_50838': Value('int64'), 'red
...
ndom': Value('float64'), 'enrichment_docs': Value('float64')}, 'raw_diversity_oriented(4 raw strategy-linked corpora)': {'target_docs': Value('int64'), 'target_train_tokens': Value('int64'), 'overlap_docs': Value('int64'), 'overlap_doc_share': Value('float64'), 'overlap_train_tokens': Value('int64'), 'overlap_token_share': Value('float64'), 'expected_docs_if_random': Value('float64'), 'enrichment_docs': Value('float64')}, 'raw_random(4 raw strategy-linked corpora)': {'target_docs': Value('int64'), 'target_train_tokens': Value('int64'), 'overlap_docs': Value('int64'), 'overlap_doc_share': Value('float64'), 'overlap_train_tokens': Value('int64'), 'overlap_token_share': Value('float64'), 'expected_docs_if_random': Value('float64'), 'enrichment_docs': Value('float64')}, 'raw_rewire_inspired(4 raw strategy-linked corpora)': {'target_docs': Value('int64'), 'target_train_tokens': Value('int64'), 'overlap_docs': Value('int64'), 'overlap_doc_share': Value('float64'), 'overlap_train_tokens': Value('int64'), 'overlap_token_share': Value('float64'), 'expected_docs_if_random': Value('float64'), 'enrichment_docs': Value('float64')}, 'full_pool': {'target_docs': Value('int64'), 'target_train_tokens': Value('int64'), 'overlap_docs': Value('int64'), 'overlap_doc_share': Value('float64'), 'overlap_train_tokens': Value('int64'), 'overlap_token_share': Value('float64'), 'expected_docs_if_random': Value('float64'), 'enrichment_docs': Value('float64')}}}, 'pool_total_train_tokens': Value('int64')}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 483, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2840, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2373, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2398, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              shard_0: struct<rows: int64, url_equal: int64, raw_files_touched: int64>
                child 0, rows: int64
                child 1, url_equal: int64
                child 2, raw_files_touched: int64
              shard_9: struct<rows: int64, url_equal: int64, raw_files_touched: int64>
                child 0, rows: int64
                child 1, url_equal: int64
                child 2, raw_files_touched: int64
              pool_total_train_tokens: int64
              overlaps: struct<ridge_dclm_49998: struct<n_in_pool: int64, pool_fraction: double, validation_holdout_50k: str (... 12188 chars omitted)
                child 0, ridge_dclm_49998: struct<n_in_pool: int64, pool_fraction: double, validation_holdout_50k: struct<target_docs: int64, t (... 2937 chars omitted)
                    child 0, n_in_pool: int64
                    child 1, pool_fraction: double
                    child 2, validation_holdout_50k: struct<target_docs: int64, target_train_tokens: int64, overlap_docs: int64, overlap_doc_share: doubl (... 116 chars omitted)
                        child 0, target_docs: int64
                        child 1, target_train_tokens: int64
                        child 2, overlap_docs: int64
                        child 3, overlap_doc_share: double
                        child 4, overlap_train_tokens: int64
                        child 5, overlap_token_share: double
                        child 6, expected_docs_if_random: double
                        child 7, enrichment_docs: null
                    child 3, raw_top10b_fineweb_edu: struct<target_docs: int64, target_train_tokens: int64, overlap_docs: int64, overlap_doc_share: doubl (... 116 chars omitted)
                        child 0, target_docs: int64
                        child 1, target_train_tokens: int64
                        child 2, ove
              ...
              t64
                child 11, exclusion_5m_basic_extra_in_removed: int64
                child 12, sel50k_in_rederived_5m: int64
                child 13, ridge_dclm_in_rederived_5m: int64
                child 14, rederived_5m_in_removed_50838: int64
                child 15, rederived_5m_surviving_in_pool: int64
                child 16, exclusion_5m_basic_in_removed_50838: int64
                child 17, exclusion_5m_basic_surviving: int64
                child 18, expected_random_5m_in_removed: double
              anchor_check: struct<raw_sources_anchor_n: int64, raw_sources_anchor_equals_QB_first_4120164_as_orig_set: bool>
                child 0, raw_sources_anchor_n: int64
                child 1, raw_sources_anchor_equals_QB_first_4120164_as_orig_set: bool
              set_50k: struct<selected_50k_for_claude_rows: int64, unique: int64, scored_50k_final_rows: int64, dropped_bet (... 447 chars omitted)
                child 0, selected_50k_for_claude_rows: int64
                child 1, unique: int64
                child 2, scored_50k_final_rows: int64
                child 3, dropped_between_selection_and_scoring: list<item: int64>
                    child 0, item: int64
                child 4, ridge_combined_dclm_rows: int64
                child 5, ridge_combined_dclm_unique: int64
                child 6, ridge_combined_dclm_equals_scored50k: bool
                child 7, train_split_dclm: int64
                child 8, val_split_dclm: int64
                child 9, train_val_disjoint: bool
                child 10, train_union_val_equals_combined: bool
                child 11, min_orig: int64
                child 12, max_orig: int64
                child 13, removed_50838_count: int64
                child 14, sel50k_in_removed: int64
                child 15, ridge_dclm_in_removed: int64
                child 16, removed_not_in_sel50k_(pool_duplicates_by_prefix): int64
              to
              {'set_50k': {'selected_50k_for_claude_rows': Value('int64'), 'unique': Value('int64'), 'scored_50k_final_rows': Value('int64'), 'dropped_between_selection_and_scoring': List(Value('int64')), 'ridge_combined_dclm_rows': Value('int64'), 'ridge_combined_dclm_unique': Value('int64'), 'ridge_combined_dclm_equals_scored50k': Value('bool'), 'train_split_dclm': Value('int64'), 'val_split_dclm': Value('int64'), 'train_val_disjoint': Value('bool'), 'train_union_val_equals_combined': Value('bool'), 'min_orig': Value('int64'), 'max_orig': Value('int64'), 'removed_50838_count': Value('int64'), 'sel50k_in_removed': Value('int64'), 'ridge_dclm_in_removed': Value('int64'), 'removed_not_in_sel50k_(pool_duplicates_by_prefix)': Value('int64')}, 'set_5m': {'rederived_n': Value('int64'), 'rederived_first5': List(Value('int64')), 'exclusion_table_5m_basic_rows': Value('int64'), 'exclusion_table_50k_claude_rows': Value('int64'), 'rederived_in_exclusion_5m_basic': Value('int64'), 'exclusion_5m_basic_not_in_rederived': Value('int64'), 'exclusion_50k_claude_subset_of_sel50k': Value('bool'), 'exclusion_50k_claude_not_in_sel50k': Value('int64'), 'exclusion_50k_claude_not_in_sel50k_in_removed': Value('int64'), 'sel50k_not_in_exclusion_50k_claude': Value('int64'), 'sel50k_not_in_ex50_but_in_ex5': Value('int64'), 'exclusion_5m_basic_extra_in_removed': Value('int64'), 'sel50k_in_rederived_5m': Value('int64'), 'ridge_dclm_in_rederived_5m': Value('int64'), 'rederived_5m_in_removed_50838': Value('int64'), 'red
              ...
              ndom': Value('float64'), 'enrichment_docs': Value('float64')}, 'raw_diversity_oriented(4 raw strategy-linked corpora)': {'target_docs': Value('int64'), 'target_train_tokens': Value('int64'), 'overlap_docs': Value('int64'), 'overlap_doc_share': Value('float64'), 'overlap_train_tokens': Value('int64'), 'overlap_token_share': Value('float64'), 'expected_docs_if_random': Value('float64'), 'enrichment_docs': Value('float64')}, 'raw_random(4 raw strategy-linked corpora)': {'target_docs': Value('int64'), 'target_train_tokens': Value('int64'), 'overlap_docs': Value('int64'), 'overlap_doc_share': Value('float64'), 'overlap_train_tokens': Value('int64'), 'overlap_token_share': Value('float64'), 'expected_docs_if_random': Value('float64'), 'enrichment_docs': Value('float64')}, 'raw_rewire_inspired(4 raw strategy-linked corpora)': {'target_docs': Value('int64'), 'target_train_tokens': Value('int64'), 'overlap_docs': Value('int64'), 'overlap_doc_share': Value('float64'), 'overlap_train_tokens': Value('int64'), 'overlap_token_share': Value('float64'), 'expected_docs_if_random': Value('float64'), 'enrichment_docs': Value('float64')}, 'full_pool': {'target_docs': Value('int64'), 'target_train_tokens': Value('int64'), 'overlap_docs': Value('int64'), 'overlap_doc_share': Value('float64'), 'overlap_train_tokens': Value('int64'), 'overlap_token_share': Value('float64'), 'expected_docs_if_random': Value('float64'), 'enrichment_docs': Value('float64')}}}, 'pool_total_train_tokens': Value('int64')}
              because column names don't match

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Know Your Sources: raw baseline corpora (raw text)

Seven raw, unrewritten training corpora for the Know-Your-Sources 1.5B grid. Each is about 10B training tokens. They come in two families, documented in reports/GLOBAL_TOP10B_SELECTION_REPORT.md (global Top-10B) and reports/RAW_SELECTED_BASELINES_PROVENANCE.md (strategy-linked).

Strategy-linked raw controls (4)

Composition: the shared 5B anchor (4,120,164 documents / 5,000,002,332 training tokens, identical in all four and to the anchor inside each rewritten arm) plus a 5B raw strategy half: a seed-42 uniform random sample, whole documents, of the unique source documents of one rewritten arm's final rewritten half in wytro/Know-Your-Sources@9e5ff241, kept as original text.

These are equal-token-budget controls, not identical-document controls. Rewriting roughly halves document length, so at the same 5B budget the raw half holds a random ~half of the rewritten half's sources (same distribution, not the same documents). Only sources with a successful rewrite are eligible.

folder rewritten counterpart raw strategy half comparison it supports
raw_text/raw_diversity_oriented/ diversity_oriented random 51.4% of the rewritten half's sources rewrites vs original text of this strategy's sources, equal tokens
raw_text/raw_disagreement_aware/ disagreement_aware random 51.8% same
raw_text/raw_random/ wrap_inspired random 52.4% of WRAP's input documents, restricted to those WRAP rewrote successfully (99.7% of the input) WRAP-style rewriting of a uniform sample vs a uniform raw sample of the same population (pool minus validation and anchor); not WRAP's exact documents
raw_text/raw_rewire_inspired/ rewire_inspired random 45.9% of the sources whose rewrites passed REWIRE's post-rewrite fastText filter conditional: rewritten vs original text given the filter's picks

raw_rewire_inspired is a conditional ablation. Its membership depends on how each document's rewrite scored, which exists only after rewriting. It does not support "REWIRE beats raw data" and is not a raw-only selection policy; for REWIRE's pipeline effect compare rewire_inspired with raw_random (same input population).

Quality-First has no raw arm. Its raw comparison is the existing Quality-Base: the anchor + the fastText-best 5B of Quality-First's own rewriting input.

Global Top-10B controls (3, no anchor)

The whole ~10B corpus is one global Top-10B selection over the same universe as the original 1.5B Quality-Base: the 99,949,162 scored documents of blab-jhu/KYS-DCLM-Refinedweb-100M-Scored, minus the 50,000-doc validation holdout.

Selection rule:

  • score descending, with the original seeded tie-break;
  • whole documents, until cumulative training tokens first reach 10B.

What these corpora do not have: no shared anchor, no rewriting, no floors, quotas, variance terms or domain restrictions.

Comparator: the existing fastText Quality-Base. Rebuilt under the same conventions, its document set reproduces the published Quality-Base digest, and it equals the global fastText Top-10B plus 3 tail documents.

Scorer-training data. The ModernBERT quality head was fit on 50,427 Claude-labelled documents; all DCLM ones were removed from the scored pool before scoring, so none is in any corpus. A separate ~5M-document analysis sample was not used to fit the head and was not removed, exactly as in the original Quality-Base universe; every selection holds it at its pool rate (5.00%). Benchmark contamination was not tested. Details: selection report §2b.

folder score
raw_text/raw_top10b_fineweb_edu/ fineweb-edu-ranking-v2 (tie-aware global percentile)
raw_text/raw_top10b_modernbert/ modernbert-ranking-v2
raw_text/raw_top10b_consensus/ mean of the three percentiles: (fastText + FineWeb-Edu + ModernBERT) / 3

Files

Each raw_text/<setting>/ holds 16 parquet files, part-00000.parquet … part-00015.parquet.

column type meaning
orig_doc_id int64 position in the 100M DCLM-RefinedWeb reservoir sample (shard id // 500000, row id % 500000)
doc_id int64 global Top-10B only: row of the scored pool, the selection key
source string anchor / strategy (strategy-linked) or selected (global Top-10B)
text string the original document text
  • Each folder is the final training corpus, in training order. Documents are shuffled once at the document level (seed 42, pp_io.bucketed_shuffle), and rows follow that order file by file.
  • manifest.json records every count, each setting's expected_total_tokens, the sha256 of every file, the tokenizer's sha256, and the generation code commits.
  • settings_overview lists every setting's family, anchor presence and comparator.
  • selection/<setting>/ holds the selected doc ids of the global Top-10B settings. The digest conventions are in manifest.json under global_top10b.

Tokenization — done by the consumer

Use tools/kys_raw/tokenize_raw_text.sh <data_root> <setting> from imHuicongZhang/nanotron (branch huicong-dev).

What the script does:

  • runs 16 datatrove tasks; each document becomes its tokens + one </s> (id 2), with no <s> (datatrove replaces the tokenizer's default <s>-prepending post-processor);
  • does no merging or shuffling;
  • runs tools/fix_ds_metadata.py;
  • checks the total against expected_total_tokens.

Token convention: len(llama2_tokenizer(text, add_special_tokens=False)) + 1 per document.

Check before publication: for all seven settings, the datatrove totals from this exact script equal expected_total_tokens (selection report §8; provenance report §R5). The script enforces the same check for every setting.

Procedure: configs/1.5B-baseline/WORKFLOW_RAW_BASELINES.md in the code repository.

Provenance in brief

  • Text. Every text is read from the raw 100M pool by position. No rewritten text is used anywhere.
  • Global Top-10B settings:
    • the selection code uses the original 1.5B selection primitives (universe, tie-break, whole-document cutoff); applied to fastText it reproduces the published Quality-Base document-set digest;
    • the three percentile columns recompute exactly from the raw scores (all 99,949,162 rows);
    • every document was re-tokenized at assembly and its length checked equal to the scored pool's tokens-llama2;
    • exported files were checked against the selection (document set, no duplicates, order, token total) and a sample of texts was compared byte for byte with the raw pool (selection report §7b).
  • Code: tools/kys_raw/ in the code repository. The exact commits are in manifest.json.

Related

Downloads last month
159