step stringclasses 1
value | phase float64 2.47 7.68 ⌀ | train_loss float64 2.74 11.3 | val_loss float64 0 0 | total_ns_error float64 0 0 | max_singular float64 0 0 | min_singular float64 0 0 | training_time_ms float64 186 242M | step_avg_time_ms float64 0 1.22k | learning_rate float64 0 1 | grad_norms_json stringlengths 5.25k 5.47k ⌀ | optimizer_norms_json stringlengths 2 5.32k ⌀ | update_norms_json stringlengths 5.27k 5.6k ⌀ | weight_norms_json stringlengths 5.16k 5.32k ⌀ | correlations_json stringlengths 2 5.65k ⌀ | __index_level_0__ int64 0 200k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
val | null | 10.927981 | 0 | 0 | 0 | 0 | 209.42378 | 0 | 0.001 | null | null | null | null | null | 0 |
val | 6.801666 | 6.725834 | 0 | 0 | 0 | 0 | 14,450.370789 | 160.559675 | 0.101 | {"module._orig_mod.transformer.h.0.attn.c_q.weight": 0.02199987694621086, "module._orig_mod.transformer.h.0.attn.c_k.weight": 0.019966047257184982, "module._orig_mod.transformer.h.0.attn.c_v.weight": 0.16498973965644836, "module._orig_mod.transformer.h.0.attn.c_proj.weight": 0.5070876479148865, "module._orig_mod.transf... | {"module._orig_mod.transformer.wte.weight": 1743.458251953125, "module._orig_mod.transformer.h.0.attn.c_q.weight": 139.07862854003906, "module._orig_mod.transformer.h.0.attn.c_k.weight": 136.11306762695312, "module._orig_mod.transformer.h.0.attn.c_v.weight": 44.23005294799805, "module._orig_mod.transformer.h.0.attn.c_p... | {"module._orig_mod.transformer.wte.weight": 0.6339214444160461, "module._orig_mod.transformer.h.0.attn.c_q.weight": 0.013717717491090298, "module._orig_mod.transformer.h.0.attn.c_k.weight": 0.013425215147435665, "module._orig_mod.transformer.h.0.attn.c_v.weight": 0.004362534731626511, "module._orig_mod.transformer.h.0.... | {"module._orig_mod.transformer.wte.weight": 110.63057708740234, "module._orig_mod.transformer.h.0.attn.c_q.weight": 10.22962760925293, "module._orig_mod.transformer.h.0.attn.c_k.weight": 10.255471229553223, "module._orig_mod.transformer.h.0.attn.c_v.weight": 10.240047454833984, "module._orig_mod.transformer.h.0.attn.c_... | {"module._orig_mod.transformer.wte.weight": -0.014761799946427345, "module._orig_mod.transformer.h.0.attn.c_q.weight": -0.0020322646014392376, "module._orig_mod.transformer.h.0.attn.c_k.weight": -0.0021351557224988937, "module._orig_mod.transformer.h.0.attn.c_v.weight": 0.014377019368112087, "module._orig_mod.transform... | 100 |
val | 5.859413 | 5.875747 | 0 | 0 | 0 | 0 | 30,930.848837 | 162.793941 | 0.201 | {"module._orig_mod.transformer.h.0.attn.c_q.weight": 0.0322524830698967, "module._orig_mod.transformer.h.0.attn.c_k.weight": 0.029499776661396027, "module._orig_mod.transformer.h.0.attn.c_v.weight": 0.34280896186828613, "module._orig_mod.transformer.h.0.attn.c_proj.weight": 0.5000457763671875, "module._orig_mod.transfo... | {"module._orig_mod.transformer.wte.weight": 1240.491455078125, "module._orig_mod.transformer.h.0.attn.c_q.weight": 74.12806701660156, "module._orig_mod.transformer.h.0.attn.c_k.weight": 77.4912109375, "module._orig_mod.transformer.h.0.attn.c_v.weight": 25.90468406677246, "module._orig_mod.transformer.h.0.attn.c_proj.we... | {"module._orig_mod.transformer.wte.weight": 0.8976196646690369, "module._orig_mod.transformer.h.0.attn.c_q.weight": 0.01455052848905325, "module._orig_mod.transformer.h.0.attn.c_k.weight": 0.015210676938295364, "module._orig_mod.transformer.h.0.attn.c_v.weight": 0.0050848061218857765, "module._orig_mod.transformer.h.0.... | {"module._orig_mod.transformer.wte.weight": 128.23858642578125, "module._orig_mod.transformer.h.0.attn.c_q.weight": 10.277018547058105, "module._orig_mod.transformer.h.0.attn.c_k.weight": 10.30377197265625, "module._orig_mod.transformer.h.0.attn.c_v.weight": 10.206318855285645, "module._orig_mod.transformer.h.0.attn.c_... | {"module._orig_mod.transformer.wte.weight": -0.024342691525816917, "module._orig_mod.transformer.h.0.attn.c_q.weight": -0.004477035719901323, "module._orig_mod.transformer.h.0.attn.c_k.weight": -0.004390432965010405, "module._orig_mod.transformer.h.0.attn.c_v.weight": 0.029653877019882202, "module._orig_mod.transformer... | 200 |
val | 5.475439 | 5.376871 | 0 | 0 | 0 | 0 | 47,121.012926 | 162.486251 | 0.301 | {"module._orig_mod.transformer.h.0.attn.c_q.weight": 0.02411699667572975, "module._orig_mod.transformer.h.0.attn.c_k.weight": 0.022758277133107185, "module._orig_mod.transformer.h.0.attn.c_v.weight": 0.18799175322055817, "module._orig_mod.transformer.h.0.attn.c_proj.weight": 0.24348078668117523, "module._orig_mod.trans... | {"module._orig_mod.transformer.wte.weight": 1205.3594970703125, "module._orig_mod.transformer.h.0.attn.c_q.weight": 60.69279479980469, "module._orig_mod.transformer.h.0.attn.c_k.weight": 65.42875671386719, "module._orig_mod.transformer.h.0.attn.c_v.weight": 26.245302200317383, "module._orig_mod.transformer.h.0.attn.c_p... | {"module._orig_mod.transformer.wte.weight": 1.3061275482177734, "module._orig_mod.transformer.h.0.attn.c_q.weight": 0.01784036122262478, "module._orig_mod.transformer.h.0.attn.c_k.weight": 0.019232476130127907, "module._orig_mod.transformer.h.0.attn.c_v.weight": 0.007714683655649424, "module._orig_mod.transformer.h.0.a... | {"module._orig_mod.transformer.wte.weight": 154.20387268066406, "module._orig_mod.transformer.h.0.attn.c_q.weight": 10.328516960144043, "module._orig_mod.transformer.h.0.attn.c_k.weight": 10.359472274780273, "module._orig_mod.transformer.h.0.attn.c_v.weight": 10.169736862182617, "module._orig_mod.transformer.h.0.attn.c... | {"module._orig_mod.transformer.wte.weight": -0.030241208150982857, "module._orig_mod.transformer.h.0.attn.c_q.weight": -0.005046113859862089, "module._orig_mod.transformer.h.0.attn.c_k.weight": -0.004178866744041443, "module._orig_mod.transformer.h.0.attn.c_v.weight": 0.019365455955266953, "module._orig_mod.transformer... | 300 |
val | 4.985403 | 5.016779 | 0 | 0 | 0 | 0 | 63,606.936216 | 163.094708 | 0.401 | {"module._orig_mod.transformer.h.0.attn.c_q.weight": 0.013359401375055313, "module._orig_mod.transformer.h.0.attn.c_k.weight": 0.012710348702967167, "module._orig_mod.transformer.h.0.attn.c_v.weight": 0.23531757295131683, "module._orig_mod.transformer.h.0.attn.c_proj.weight": 0.18576845526695251, "module._orig_mod.tran... | {"module._orig_mod.transformer.wte.weight": 1116.5975341796875, "module._orig_mod.transformer.h.0.attn.c_q.weight": 53.67424774169922, "module._orig_mod.transformer.h.0.attn.c_k.weight": 56.78166961669922, "module._orig_mod.transformer.h.0.attn.c_v.weight": 22.845125198364258, "module._orig_mod.transformer.h.0.attn.c_p... | {"module._orig_mod.transformer.wte.weight": 1.6119201183319092, "module._orig_mod.transformer.h.0.attn.c_q.weight": 0.021018920466303825, "module._orig_mod.transformer.h.0.attn.c_k.weight": 0.022235790267586708, "module._orig_mod.transformer.h.0.attn.c_v.weight": 0.008946185931563377, "module._orig_mod.transformer.h.0.... | {"module._orig_mod.transformer.wte.weight": 186.84434509277344, "module._orig_mod.transformer.h.0.attn.c_q.weight": 10.396017074584961, "module._orig_mod.transformer.h.0.attn.c_k.weight": 10.432600975036621, "module._orig_mod.transformer.h.0.attn.c_v.weight": 10.128617286682129, "module._orig_mod.transformer.h.0.attn.c... | {"module._orig_mod.transformer.wte.weight": -0.03406552970409393, "module._orig_mod.transformer.h.0.attn.c_q.weight": -0.007623318582773209, "module._orig_mod.transformer.h.0.attn.c_k.weight": -0.007195074111223221, "module._orig_mod.transformer.h.0.attn.c_v.weight": 0.022423002868890762, "module._orig_mod.transformer.... | 400 |
val | 4.895291 | 4.695803 | 0 | 0 | 0 | 0 | 79,784.048319 | 162.824588 | 0.501 | {"module._orig_mod.transformer.h.0.attn.c_q.weight": 0.01482816506177187, "module._orig_mod.transformer.h.0.attn.c_k.weight": 0.014503411017358303, "module._orig_mod.transformer.h.0.attn.c_v.weight": 0.2144988626241684, "module._orig_mod.transformer.h.0.attn.c_proj.weight": 0.17777499556541443, "module._orig_mod.transf... | {"module._orig_mod.transformer.wte.weight": 1077.4735107421875, "module._orig_mod.transformer.h.0.attn.c_q.weight": 48.779632568359375, "module._orig_mod.transformer.h.0.attn.c_k.weight": 50.86767578125, "module._orig_mod.transformer.h.0.attn.c_v.weight": 25.057109832763672, "module._orig_mod.transformer.h.0.attn.c_pro... | {"module._orig_mod.transformer.wte.weight": 1.9433313608169556, "module._orig_mod.transformer.h.0.attn.c_q.weight": 0.02386581525206566, "module._orig_mod.transformer.h.0.attn.c_k.weight": 0.024887407198548317, "module._orig_mod.transformer.h.0.attn.c_v.weight": 0.012259386479854584, "module._orig_mod.transformer.h.0.a... | {"module._orig_mod.transformer.wte.weight": 220.7396697998047, "module._orig_mod.transformer.h.0.attn.c_q.weight": 10.498124122619629, "module._orig_mod.transformer.h.0.attn.c_k.weight": 10.546009063720703, "module._orig_mod.transformer.h.0.attn.c_v.weight": 10.073858261108398, "module._orig_mod.transformer.h.0.attn.c_... | {"module._orig_mod.transformer.wte.weight": -0.034999340772628784, "module._orig_mod.transformer.h.0.attn.c_q.weight": -0.011001906357705593, "module._orig_mod.transformer.h.0.attn.c_k.weight": -0.011243217624723911, "module._orig_mod.transformer.h.0.attn.c_v.weight": 0.020671144127845764, "module._orig_mod.transformer... | 500 |
val | 4.446476 | 4.495004 | 0 | 0 | 0 | 0 | 96,201.909065 | 163.054083 | 0.601 | {"module._orig_mod.transformer.h.0.attn.c_q.weight": 0.016074461862444878, "module._orig_mod.transformer.h.0.attn.c_k.weight": 0.016071347519755363, "module._orig_mod.transformer.h.0.attn.c_v.weight": 0.12766525149345398, "module._orig_mod.transformer.h.0.attn.c_proj.weight": 0.10589516162872314, "module._orig_mod.tran... | {"module._orig_mod.transformer.wte.weight": 1104.9293212890625, "module._orig_mod.transformer.h.0.attn.c_q.weight": 50.978271484375, "module._orig_mod.transformer.h.0.attn.c_k.weight": 52.192481994628906, "module._orig_mod.transformer.h.0.attn.c_v.weight": 28.452123641967773, "module._orig_mod.transformer.h.0.attn.c_pr... | {"module._orig_mod.transformer.wte.weight": 2.390625, "module._orig_mod.transformer.h.0.attn.c_q.weight": 0.029919864609837532, "module._orig_mod.transformer.h.0.attn.c_k.weight": 0.03063250333070755, "module._orig_mod.transformer.h.0.attn.c_v.weight": 0.01669895276427269, "module._orig_mod.transformer.h.0.attn.c_proj.... | {"module._orig_mod.transformer.wte.weight": 254.48455810546875, "module._orig_mod.transformer.h.0.attn.c_q.weight": 10.62992000579834, "module._orig_mod.transformer.h.0.attn.c_k.weight": 10.696215629577637, "module._orig_mod.transformer.h.0.attn.c_v.weight": 10.008981704711914, "module._orig_mod.transformer.h.0.attn.c_... | {"module._orig_mod.transformer.wte.weight": -0.031181996688246727, "module._orig_mod.transformer.h.0.attn.c_q.weight": -0.009796093218028545, "module._orig_mod.transformer.h.0.attn.c_k.weight": -0.010210336185991764, "module._orig_mod.transformer.h.0.attn.c_v.weight": 0.015980642288923264, "module._orig_mod.transformer... | 600 |
val | 4.376321 | 4.360182 | 0 | 0 | 0 | 0 | 112,321.325064 | 162.784529 | 0.701 | "{\"module._orig_mod.transformer.h.0.attn.c_q.weight\": 0.012013532221317291, \"module._orig_mod.tra(...TRUNCATED) | "{\"module._orig_mod.transformer.wte.weight\": 1101.80615234375, \"module._orig_mod.transformer.h.0.(...TRUNCATED) | "{\"module._orig_mod.transformer.wte.weight\": 2.780517816543579, \"module._orig_mod.transformer.h.0(...TRUNCATED) | "{\"module._orig_mod.transformer.wte.weight\": 287.5756530761719, \"module._orig_mod.transformer.h.0(...TRUNCATED) | "{\"module._orig_mod.transformer.wte.weight\": -0.029425200074911118, \"module._orig_mod.transformer(...TRUNCATED) | 700 |
val | 4.20578 | 4.270806 | 0 | 0 | 0 | 0 | 128,732.124805 | 162.952057 | 0.801 | "{\"module._orig_mod.transformer.h.0.attn.c_q.weight\": 0.012788456864655018, \"module._orig_mod.tra(...TRUNCATED) | "{\"module._orig_mod.transformer.wte.weight\": 1067.8543701171875, \"module._orig_mod.transformer.h.(...TRUNCATED) | "{\"module._orig_mod.transformer.wte.weight\": 3.0792651176452637, \"module._orig_mod.transformer.h.(...TRUNCATED) | "{\"module._orig_mod.transformer.wte.weight\": 319.1011047363281, \"module._orig_mod.transformer.h.0(...TRUNCATED) | "{\"module._orig_mod.transformer.wte.weight\": -0.02892417274415493, \"module._orig_mod.transformer.(...TRUNCATED) | 800 |
val | 4.163363 | 4.188698 | 0 | 0 | 0 | 0 | 144,862.831831 | 162.767227 | 0.901 | "{\"module._orig_mod.transformer.h.0.attn.c_q.weight\": 0.018710894510149956, \"module._orig_mod.tra(...TRUNCATED) | "{\"module._orig_mod.transformer.wte.weight\": 1061.304443359375, \"module._orig_mod.transformer.h.0(...TRUNCATED) | "{\"module._orig_mod.transformer.wte.weight\": 3.4424471855163574, \"module._orig_mod.transformer.h.(...TRUNCATED) | "{\"module._orig_mod.transformer.wte.weight\": 351.043212890625, \"module._orig_mod.transformer.h.0.(...TRUNCATED) | "{\"module._orig_mod.transformer.wte.weight\": -0.030009781941771507, \"module._orig_mod.transformer(...TRUNCATED) | 900 |
Dataset Documentation
Overview
This dataset captures per-step training and validation metrics from training runs of a 12-layer GPT-style decoder-only transformer. Each run is stored as a single .csv file in which every row corresponds to one logged step, and several columns hold per-parameter measurements encoded as JSON.
The dataset is designed to support post-hoc analysis of:
- Loss curves (train / val)
- Throughput and step latency
- Per-layer / per-parameter dynamics: gradients, optimizer outputs, parameter updates, weights, and the alignment between optimizer outputs and weights
Model Architecture
All runs share the same architectural skeleton, identifiable from the JSON keys (transformer.h.0 … transformer.h.11):
| Property | Value |
|---|---|
| Family | GPT-style decoder-only transformer |
| Number of layers | 12 |
| Per-block parameters | attn.c_q, attn.c_k, attn.c_v, attn.c_proj, mlp.c_fc, mlp.c_proj |
| Embedding | transformer.wte.weight (token embeddings) |
| Compilation | torch.compile (keys are prefixed with module._orig_mod.…, indicating DDP + compiled module) |
Parameter keys in the JSON columns follow the pattern:
module._orig_mod.transformer.h.{layer_idx}.{submodule}.{param}.weight
with layer_idx ∈ [0, 11] and submodule ∈ {attn, mlp}.
File Layout
The dataset is organized into top-level directories, one per optimizer / schedule combination. Each directory holds a grid of CSV files, one per training run, where the filename encodes the two swept hyperparameters: model width (n_embd) and learning rate (as -log2(lr)).
Directory structure
LRTransferData/
├── adam_ws/ # Adam, WS (warmup–stable, no step decay)
├── adamw_ws/ # AdamW, WS
├── adamw_wsd/ # AdamW, WSD (warmup–stable–decay; decay phase resumes from the corresponding WS run)
├── adamh_ws/ # AdamH, WS
└── adamh_wsd/ # AdamH, WSD
| Directory | Optimizer | Schedule |
|---|---|---|
adam_ws |
Adam | warmup–stable (no decay) |
adamw_ws |
AdamW | warmup–stable (no decay) |
adamw_wsd |
AdamW | warmup–stable–decay |
adamh_ws |
AdamH | warmup–stable (no decay) |
adamh_wsd |
AdamH | warmup–stable–decay |
File naming
Within each directory, runs are named:
{n_embd}_{neg_log2_lr}.csv
where:
n_embd— model embedding dimension (integer), which also fixes head count and MLP width via the standard GPT scaling.neg_log2_lr— the peak learning rate encoded as-log₂(lr). To recover the learning rate:lr = 2 ** -neg_log2_lr. Larger values ofneg_log2_lrmean smaller learning rates.
Examples:
| Filename | n_embd |
neg_log2_lr |
Peak lr |
|---|---|---|---|
768_8.csv |
768 | 8 | 2⁻⁸ ≈ 3.91e-3 |
768_10.csv |
768 | 10 | 2⁻¹⁰ ≈ 9.77e-4 |
1024_12.csv |
1024 | 12 | 2⁻¹² ≈ 2.44e-4 |
File-level conventions
- One CSV per training run (one
(n_embd, lr)cell of the sweep). - One row per logged step. Logging cadence is run-dependent; the
stepcolumn is the source of truth. - UTF-8, comma-separated, with a single header row. JSON columns contain commas, so a CSV reader that handles quoted fields is required (
pandas.read_csvworks out of the box).
Column Reference
Notation. We write $w_t$ for the parameter tensor at step $t$, $u_t$ for the optimizer's output at step $t$ (the proposed update direction before it is scaled by the learning rate), and $w_{t+1} - w_t$ for the realized parameter update. All norms below are L2 (Frobenius) norms of the corresponding tensor, flattened.
Scalar columns
| Column | Type | Description |
|---|---|---|
step |
int | Optimizer step index $t$. Monotonically increasing within a run. |
phase |
str | Phase label for the row. Observed values are train and val; rows tagged val carry validation-time measurements taken at that step. |
train_loss |
float | Training loss at this step (cross-entropy, in nats). |
val_loss |
float | Validation loss. Populated on val rows; may be 0.0 / NaN on pure training rows depending on the run. |
training_time_ms |
float | Cumulative wall-clock training time, in milliseconds, since the start of the run. |
step_avg_time_ms |
float | Rolling average step time, in milliseconds. |
JSON columns
Each of the following columns contains a JSON object serialized as a string. Keys are parameter names (see Model Architecture), values are floats — one number per parameter tensor.
| Column | Symbol | Definition |
|---|---|---|
grad_norms_json |
$\lVert g_t \rVert_2$ | L2 norm of the gradient tensor for the parameter at step $t$. |
optimizer_norms_json |
$\lVert u_t \rVert_2$ | L2 norm of the optimizer output $u_t$ — the update direction returned by the optimizer at step $t$, before the learning-rate scaling. |
update_norms_json |
$\lVert w_{t+1} - w_t \rVert_2$ | L2 norm of the realized parameter update between step $t$ and step $t+1$. |
weight_norms_json |
$\lVert w_t \rVert_2$ | L2 norm of the parameter tensor itself at step $t$. |
correlations_json |
$\dfrac{\langle u_t,, w_t \rangle}{\lVert u_t \rVert_2^{,2}}$ | Inner product between the optimizer output $u_t$ and the current weights $w_t$, normalized by $\lVert u_t \rVert_2^{2}$. Measures how much of $u_t$ is aligned with the existing weight vector (i.e. the coefficient of the projection of $w_t$ onto $u_t$). |
Loading and Parsing in Python
import pandas as pd
import json
df = pd.read_csv("run_xxx.csv")
JSON_COLS = [
"grad_norms_json",
"optimizer_norms_json",
"update_norms_json",
"weight_norms_json",
"correlations_json",
]
for col in JSON_COLS:
df[col] = df[col].apply(lambda s: json.loads(s) if isinstance(s, str) else {})
- Downloads last month
- 9