Dependencies:
pip install torch transformers hydra-core pandas
Thermal Throttling changes the execution time, so we fix the clock rate to lessen that effect! Fix clock speed (-i index of card): nvidia-smi -lgc 1800 -i 0 Reset Clock Speed nvidia-smi -rgc -i 0
Start Sweep:
CUDA_VISIBLE_DEVICES=1 nohup python bench_model.py --config-name decode-sweep -m +cooldo n_time=40 >> bench-decode.out &`
- Less components in the critical pyth
- Small Models: layernorm take quite a lot of time (O(n), but n isn't so big that it's only dominated by BMM's)
- Big Models: one less syncronisation barrier per block
Papers:
- Transformers without Normalization: https://arxiv.org/pdf/2503.10622
- Stronger Normalization-Free Transformers: https://arxiv.org/pdf/2512.10938
- SiameseNorm: Breaking the Barrier to Reconciling Pre/Post-Norm: https://arxiv.org/abs/2602.08064