japhba commited on
Commit
15adf86
·
verified ·
1 Parent(s): 2044593

Training curves: add epoch axis on top

Browse files
README.md CHANGED
@@ -94,8 +94,8 @@ Llama-1B model additionally warm-started from a prior CODI checkpoint; this one
94
 
95
  Blue: training loss of each component (log scale). Orange, right axis: GSM8k test accuracy of
96
  the head that loss trains, measured on each epoch checkpoint (mean ± std over 3 samples):
97
- `ans_ce` → direct answer, `ref_ce` → verbalized CoT, `ce` → latent CoT. Grey lines mark
98
- epoch ends. The dashed line marks where the run was resumed from the step-6064 checkpoint after
99
  a crash; the curves continue without a jump.
100
 
101
  - All losses fall sharply in the first ~200 steps (learning-rate warm-up).
 
94
 
95
  Blue: training loss of each component (log scale). Orange, right axis: GSM8k test accuracy of
96
  the head that loss trains, measured on each epoch checkpoint (mean ± std over 3 samples):
97
+ `ans_ce` → direct answer, `ref_ce` → verbalized CoT, `ce` → latent CoT. The bottom axis is
98
+ the optimizer step, the top axis the epoch (1516 steps each); grey lines mark epoch ends. The dashed line marks where the run was resumed from the step-6064 checkpoint after
99
  a crash; the curves continue without a jump.
100
 
101
  - All losses fall sharply in the first ~200 steps (learning-rate warm-up).
plot_training_curves.png CHANGED

Git LFS Details

  • SHA256: 3fe1b9ff6a153f0f3ad778c2c4b8f2679474c006a878db9375e401151e3b6e0d
  • Pointer size: 131 Bytes
  • Size of remote file: 383 kB

Git LFS Details

  • SHA256: 36cbf25818e80a23ac363e26bf69d84d2a2e16774c0cd0c286c2d4672e547196
  • Pointer size: 131 Bytes
  • Size of remote file: 389 kB
training_logs/plot_training_curves.py CHANGED
@@ -23,6 +23,8 @@ for ax, (k, title, mode) in zip(axes.flat, panels):
23
  for e in range(1, 5): ax.axvline(e * STEPS_PER_EPOCH, color='0.85', lw=1, zorder=0)
24
  ax.axvline(RESUME, color='0.4', lw=1, ls='--', zorder=0)
25
  ax.set_title(title); ax.grid(alpha=0.3, which='both')
 
 
26
  if mode:
27
  e = ev[ev['mode'] == mode]
28
  tx = ax.twinx()
 
23
  for e in range(1, 5): ax.axvline(e * STEPS_PER_EPOCH, color='0.85', lw=1, zorder=0)
24
  ax.axvline(RESUME, color='0.4', lw=1, ls='--', zorder=0)
25
  ax.set_title(title); ax.grid(alpha=0.3, which='both')
26
+ top = ax.secondary_xaxis('top', functions=(lambda s: s / STEPS_PER_EPOCH, lambda e: e * STEPS_PER_EPOCH))
27
+ top.set_xticks(range(6)); top.set_xlabel('epoch')
28
  if mode:
29
  e = ev[ev['mode'] == mode]
30
  tx = ax.twinx()