Ilikemechuri commited on
Commit
b3b6a9c
·
verified ·
1 Parent(s): 69fcc79

Clarify GPU comparison baselines and relative L2

Browse files
Files changed (1) hide show
  1. README.md +5 -1
README.md CHANGED
@@ -265,7 +265,11 @@ The joint score is `min_ref max(Hamming / max(Hamming_limit_t, 1), norm_rel_erro
265
 
266
  ### GPU differences recomputed from saved deltas
267
 
268
- Each comparison uses the single RTX 3060 delta from the same training precision as its baseline. All 148 matching tensors and 124,439,808 elements were read and accumulated in FP64. Relative L2 uses the baseline norm as its denominator, globally or per tensor. Both training modes store their deltas in FP32. BF16 in the table refers to the training mode.
 
 
 
 
269
 
270
  | Comparison GPU | Training precision | Cosine | Absolute L2 | Global relative L2 | Median tensor relative L2 | Maximum tensor relative L2 |
271
  | --- | --- | ---: | ---: | ---: | ---: | ---: |
 
265
 
266
  ### GPU differences recomputed from saved deltas
267
 
268
+ **Baseline for every row: one RTX 3060 at the same training precision.** FP32 rows use the single-GPU RTX 3060 FP32 delta, and BF16 rows use the single-GPU RTX 3060 BF16 delta. Each delta is the change in weights after training. Both modes store deltas in FP32. All 148 matching tensors and 124,439,808 elements were compared with FP64 accumulation.
269
+
270
+ Global relative L2 is `100 × ||delta_comparison − delta_baseline||₂ / ||delta_baseline||₂`, with all parameters treated as one vector. For example, the L4 FP32 distance is **0.659%** of the RTX 3060 FP32 baseline delta norm. The L4 BF16 distance is **9.053%** of the separate RTX 3060 BF16 baseline delta norm.
271
+
272
+ The median and maximum columns compute the same ratio for each tensor using its own baseline norm. For the two-RTX-3060 BF16 DDP run, the global relative L2 is **3.630%**, while the maximum is **123.310%** for `transformer.h.3.attn.c_attn.bias`. That tensor's absolute L2 difference is 0.055337 and its baseline norm is 0.044876. The ratio exceeds 100% because the distance between the two updates exceeds the size of the baseline update for that tensor.
273
 
274
  | Comparison GPU | Training precision | Cosine | Absolute L2 | Global relative L2 | Median tensor relative L2 | Maximum tensor relative L2 |
275
  | --- | --- | ---: | ---: | ---: | ---: | ---: |