
most expensive step
CommonCrawl, github, stackoverflow
size: 100B / 1T tokens
floating point operations
10^25 FLOPS
FLOPs = number of tokens * number of parameters
Chinchilla law
decoder only transformer based models
memory bottleneck
data parallelism: data distributed on GPUs (each device has a 👮 copy of the model)
gradient aggregate across GPUs


can share/shard parameters across devices
more communication costs but decreased memory load per GPU

tiling via SRAM
small chunks to HBM

Concept 🧩 🚀 input/output awareness
Concept 🧩 🚀 sometimes better to recompute than store

Supervised fine tuning SFT
instructions tuning
data from tsaks that users can ask for at inference time (math. chat, code, …)

helpful but harmless
chatbot arena to give real-life feeling
do you like emojis in your chatbot response ?
evaluation is a hard problem and no single metric will do the job

also midtraining
not only model alignment
but also data
Parameter Efficient Fine Tuning
LoRA Low Rank Adaptation


where to apply LORA?
mostly in feed-forward network but also in multi-head attention
