The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
slope_median: struct<point: double, q16: double, q84: double>
child 0, point: double
child 1, q16: double
child 2, q84: double
extra_dex_per_doubling: struct<point: double, q16: double, q84: double>
child 0, point: double
child 1, q16: double
child 2, q84: double
frac_slope_neg: struct<point: double, q16: double, q84: double>
child 0, point: double
child 1, q16: double
child 2, q84: double
block: int64
seed: int64
model: string
min_pos: int64
stride: int64
revision: string
split: list<item: int64>
child 0, item: int64
iters: int64
layers: list<item: struct<state: string, n_train: int64, n_valid: int64, n_test: int64, chance: double, logi (... 179 chars omitted)
child 0, item: struct<state: string, n_train: int64, n_valid: int64, n_test: int64, chance: double, logistic: struc (... 167 chars omitted)
child 0, state: string
child 1, n_train: int64
child 2, n_valid: int64
child 3, n_test: int64
child 4, chance: double
child 5, logistic: struct<grid: list<item: struct<k: int64, l2: double, acc_valid: double>>, selected: struct<k: int64, (... 71 chars omitted)
child 0, grid: list<item: struct<k: int64, l2: double, acc_valid: double>>
child 0, item: struct<k: int64, l2: double, acc_valid: double>
child 0, k: int64
child 1, l2: double
child 2, acc_valid: double
child 1, selected: struct<k: int64, l2: double, acc_valid: double, acc_test: double, margin_test: double>
child 0, k: int64
child 1, l2: double
child 2, acc_valid: double
child 3, acc_test: double
child 4, margin_test: double
tokens: int64
n_blocks: int64
grid: struct<k: list<item: int64>, l2: list<item: double>>
child 0, k: list<item: int64>
child 0, item: int64
child 1, l2: list<item: double>
child 0, item: double
to
{'model': Value('string'), 'revision': Value('string'), 'tokens': Value('int64'), 'block': Value('int64'), 'split': List(Value('int64')), 'grid': {'k': List(Value('int64')), 'l2': List(Value('float64'))}, 'iters': Value('int64'), 'seed': Value('int64'), 'stride': Value('int64'), 'min_pos': Value('int64'), 'n_blocks': Value('int64'), 'layers': List({'state': Value('string'), 'n_train': Value('int64'), 'n_valid': Value('int64'), 'n_test': Value('int64'), 'chance': Value('float64'), 'logistic': {'grid': List({'k': Value('int64'), 'l2': Value('float64'), 'acc_valid': Value('float64')}), 'selected': {'k': Value('int64'), 'l2': Value('float64'), 'acc_valid': Value('float64'), 'acc_test': Value('float64'), 'margin_test': Value('float64')}}})}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 149, 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 274, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 129, 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 544, 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 3074, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2578, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2603, 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 577, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 459, 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 373, 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 2394, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
slope_median: struct<point: double, q16: double, q84: double>
child 0, point: double
child 1, q16: double
child 2, q84: double
extra_dex_per_doubling: struct<point: double, q16: double, q84: double>
child 0, point: double
child 1, q16: double
child 2, q84: double
frac_slope_neg: struct<point: double, q16: double, q84: double>
child 0, point: double
child 1, q16: double
child 2, q84: double
block: int64
seed: int64
model: string
min_pos: int64
stride: int64
revision: string
split: list<item: int64>
child 0, item: int64
iters: int64
layers: list<item: struct<state: string, n_train: int64, n_valid: int64, n_test: int64, chance: double, logi (... 179 chars omitted)
child 0, item: struct<state: string, n_train: int64, n_valid: int64, n_test: int64, chance: double, logistic: struc (... 167 chars omitted)
child 0, state: string
child 1, n_train: int64
child 2, n_valid: int64
child 3, n_test: int64
child 4, chance: double
child 5, logistic: struct<grid: list<item: struct<k: int64, l2: double, acc_valid: double>>, selected: struct<k: int64, (... 71 chars omitted)
child 0, grid: list<item: struct<k: int64, l2: double, acc_valid: double>>
child 0, item: struct<k: int64, l2: double, acc_valid: double>
child 0, k: int64
child 1, l2: double
child 2, acc_valid: double
child 1, selected: struct<k: int64, l2: double, acc_valid: double, acc_test: double, margin_test: double>
child 0, k: int64
child 1, l2: double
child 2, acc_valid: double
child 3, acc_test: double
child 4, margin_test: double
tokens: int64
n_blocks: int64
grid: struct<k: list<item: int64>, l2: list<item: double>>
child 0, k: list<item: int64>
child 0, item: int64
child 1, l2: list<item: double>
child 0, item: double
to
{'model': Value('string'), 'revision': Value('string'), 'tokens': Value('int64'), 'block': Value('int64'), 'split': List(Value('int64')), 'grid': {'k': List(Value('int64')), 'l2': List(Value('float64'))}, 'iters': Value('int64'), 'seed': Value('int64'), 'stride': Value('int64'), 'min_pos': Value('int64'), 'n_blocks': Value('int64'), 'layers': List({'state': Value('string'), 'n_train': Value('int64'), 'n_valid': Value('int64'), 'n_test': Value('int64'), 'chance': Value('float64'), 'logistic': {'grid': List({'k': Value('int64'), 'l2': Value('float64'), 'acc_valid': Value('float64')}), 'selected': {'k': Value('int64'), 'l2': Value('float64'), 'acc_valid': Value('float64'), 'acc_test': Value('float64'), 'margin_test': Value('float64')}}})}
because column names don't matchNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
A phase diagram for training and inference in language models: data
These files hold the measured moments behind every number and figure of the paper. The code that reads them, and the forward-pass measurement script that produced them, are in the code repository.
moments/
One file per network, 183 in all:
- 8 trained models;
- 19 Pythia-1.4B checkpoints;
- 72 untrained runs at the default scales (
native,init,unit); - 84 untrained runs of the initialization-scale sweep.
Each file is <group>__<architecture>__<seed>.npz and holds arrays of shape (layers, 96 documents), one row per Transformer block output from block 1 to block L−1:
| key | quantity |
|---|---|
u |
document distinguishability |δ|² / √tr C² (reference: the other 95 documents) |
dC |
document dimension (tr C)² / tr C² |
E |
two-point correlator of the token representations (Appendix C); only in the five trained models used for the linear readout |
| prefix | networks |
|---|---|
trained |
Qwen2.5-1.5B, Qwen2.5-7B, Qwen2.5-14B, Mistral-7B-v0.3, Falcon3-7B, Granite-3.1-8B, Qwen3.5-4B, Qwen3.5-9B |
pythia |
Pythia-1.4B, pythia__step<N>__0 |
native |
untrained, F family, σ = 0.02 (the architecture's default initialization), 8 architectures × 3 seeds |
init |
untrained, G family, σ = 0.02, 8 architectures × 3 seeds |
unit |
untrained, G family, σ = 1, 8 architectures × 3 seeds |
sweep |
untrained, initialization-scale sweep, `sweep____<F |
measurement/runs.csv in the code repository gives, for every file, the model and its revision, the initialization, the seed and the number of tokens per document.
The documents are 96 long texts, 32 each from PG-19, arXiv and GovReport, in the same order in every file. Each is the first 16384 tokens, or 2048 for Pythia. The documents, token cleaning and reference are described in Appendix B of the paper.
probe/
Linear-readout probes for Appendix C: probe_<model>.json for the five trained models. The file gives the probe settings and, per block (state), the held-out accuracy of the selected logistic probe (logistic.selected.acc_test).
results/
The outputs of the analysis scripts (one JSON per script or task, and the phase map phase_band.npz), as produced by run_all.sh in the code repository. Each figure script reads these files. The code README lists which result each paper number comes from.
Citation
Paper: arXiv:2611.19848
@misc{song2026phasediagramtraininginference,
title={A phase diagram for training and inference in language models},
author={Zhuo-Yang Song and Zeyu Li and Qing-Hong Cao and Ming-xing Luo and Hua Xing Zhu},
year={2026},
eprint={2611.19848},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2611.19848},
}
License
Copyright (c) 2026 Zhuo-Yang Song. The data are released under the Creative Commons Attribution 4.0 International License (CC BY 4.0, https://creativecommons.org/licenses/by/4.0/). The code is released separately under the MIT License.
- Downloads last month
- 281