Language Models from Scratch
Problem: researchers are becoming disconnected f rom the underlying technology.
Building small language models might not be representative of large language models

โ์์ ๋ชจ๋ธ์์ ๊ด์ฐฐํ ํน์ฑ์ด ํฐ ๋ชจ๋ธ์์๋ ๋์ผํ๋ค๊ณ ๊ฐ์ ํ ์ ์๋ค.โ
์์ ๋ชจ๋ธ(760M) FLOPs ๋น์จ
- MHA 35%, FFN 44% ํฐ ๋ชจ๋ธ(175B) FLOPs ๋น์จ
- MHA 17%, FFN 80%
๋ชจ๋ธ์ Scale ๋ณํ์ ๋ฐ๋ฅธ ๋ชจ๋ธ์ ๊ณ์ฐ ํน์ฑ ๋ณํ๊ฐ ์ผ์ด๋ ์ ์๋ค. ์ฆ FLOPS ๊ตฌ์ฑ ๋ณํ์ ๋ฐ๋ฅธ ๊ณ์ฐ/๋ฉ๋ชจ๋ฆฌ/ํ๋์์ด ํน์ฑ ๋ณํ๊ฐ ์์ ์ ์๊ณ , ์ด๋ ๋ณ๋ชฉ ๋ฐ ์ต์ ํ ํฌ์ธํธ์ ๋ณํ ๊ฐ๋ฅ์ฑ์ด๋ค.

Scale ์ฆ๊ฐ์ ๋ฐ๋ฅธ ๋ชจ๋ธ์ย taskย ์ฑ๋ฅ/ํ๋ย ๋ณํ
Itโs all about efficiency
How do you train the best model given a fixed set of resources?
Resources
- Data
- Compute
- Memory
- Communication bandwidth
ํ์ฌ๋ compute-constrained์ด๋ฏ๋ก, ์ ํ๋ Hardware์์ ์ต๋ํ์ ์ฑ๋ฅ์ ์ป๋ ๋ฐฉํฅ์ผ๋ก ์ค๊ณํ๋ค.

Efficiency drives design decisions
- Data processing โ ๋์/๋ถํ์ํ ๋ฐ์ดํฐ์ Compute ๋ญ๋นํ์ง ์๊ธฐ
- Tokenization โ sequence length๋ฅผ ์ค์ฌ Compute ํจ์จ ํฅ์
- Model architecture โ Memory/FLOPs ๊ฐ์
- Training โ ์ ํ๋ Compute๋ฅผ ํจ์จ์ ์ผ๋ก ์ฌ์ฉ
- Scaling laws โ ์์ ๋ชจ๋ธ๋ก Hyperparameter ํ์
- Alignment โ ์ํ๋ ๋ชฉ์ ์ ๋ง๊ฒ ๋ชจ๋ธ์ ์กฐ์ ํ์ฌ ํ์ํ Base Model ๊ท๋ชจ ๊ฐ์
Course Overview
systems() scaling_laws() data() alignment()