forked from stanford-cs336/lectures
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreferences.py
More file actions
436 lines (322 loc) · 18.6 KB
/
Copy pathreferences.py
File metadata and controls
436 lines (322 loc) · 18.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
from edtrace import Reference, url_reference
# For notes
def join(*args):
return "\n".join(args)
shannon_1950 = Reference(
title="Prediction and Entropy of Printed English", date="1950-09-15",
authors=["Claude Shannon"],
url="https://www.princeton.edu/~wbialek/rome/refs/shannon_51.pdf",
)
lstm_1997 = Reference(
title="Long Short-Term Memory", date="1997",
authors=["Sepp Hochreiter", "Jürgen Schmidhuber"],
url="https://www.bioinf.jku.at/publications/older/2604.pdf",
)
brants_2007 = Reference(
title="Language Models in Machine Translation", date="2007",
authors=["Thorsten Brants", "Ashok C. Popat", "Peng Xu", "Franz J. Och", "Jeffrey Dean"],
organization="Google",
url="https://aclanthology.org/D07-1090.pdf",
notes=join(
"Trained 5-gram model on 2T tokens"
),
)
bengio_2003 = Reference(
title="A Neural Probabilistic Language Model", date="2003-02-01",
authors=["Yoshua Bengio", "Réjean Ducharme", "Pascal Vincent", "Christian Jauvin"],
url="https://www.jmlr.org/papers/volume3/bengio03a/bengio03a.pdf",
notes="Used a feedforward neural network over last n words to predict the next word in a sequence"
)
glorot_2010 = Reference(
title="Understanding the difficulty of training deep feedforward neural networks", date="2010-03-01",
authors=["Xavier Glorot", "Yoshua Bengio"],
url="https://proceedings.mlr.press/v9/glorot10a/glorot10a.pdf",
)
adagrad_2011 = url_reference(
"https://www.jmlr.org/papers/volume12/duchi11a/duchi11a.pdf",
authors=["John Duchi", "Elad Hazan", "Yoram Singer"],
date="2011",
)
seq2seq_2014 = url_reference("https://arxiv.org/pdf/1409.3215.pdf", organization="Google", notes="Introduced seq2seq (encode entire sentence into one vector, decode translation)")
adam_2014 = url_reference("https://arxiv.org/pdf/1412.6980.pdf", notes="Introduced Adam optimizer based on RMSProp and momentum")
bahdanau_2015_attention = url_reference("https://arxiv.org/pdf/1409.0473.pdf", notes="Introduced attention mechanism (for machine translation)")
sennrich_2016 = url_reference("https://arxiv.org/abs/1508.07909")
layernorm_2016 = url_reference("https://arxiv.org/pdf/1607.06450.pdf", notes="Introduced LayerNorm")
cosine_learning_rate_2017 = url_reference("https://arxiv.org/pdf/1608.03983.pdf")
transformer_2017 = url_reference("https://arxiv.org/pdf/1706.03762.pdf", organization="Google", notes="Introduced Transformer (for machine translation)")
adamw_2017 = url_reference("https://arxiv.org/pdf/1711.05101.pdf", notes=join(
"Improves Adam by decoupling weight decay",
))
ppo_2017 = url_reference("https://arxiv.org/pdf/1707.06347.pdf", notes="Introduced PPO (for RL)")
moe_2017 = url_reference("https://arxiv.org/pdf/1701.06538.pdf", organization="Google")
gpipe_2018 = url_reference("https://arxiv.org/pdf/1811.06965.pdf", organization="Google")
large_batch_training_2018 = url_reference("https://arxiv.org/pdf/1812.06162.pdf", notes="Introduced critical batch size")
elmo_2018 = url_reference("https://arxiv.org/abs/1802.05365")
bert_2018 = url_reference("https://arxiv.org/abs/1810.04805")
sparse_transformer_2019 = url_reference("https://arxiv.org/pdf/1904.10509.pdf", organization="OpenAI", notes=join(
"Local attention"
))
gpt2_2019 = Reference(
title="Language Models are Unsupervised Multitask Learners",
authors=["Alec Radford", "Jeffrey Wu", "Rewon Child", "David Luan", "Dario Amodei", "Ilya Sutskever"],
organization="OpenAI", date="2019-02-14",
url="https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf",
notes=join(
"1.5B parameters",
"Pioneered stage release",
),
)
openwebtext_2019 = Reference(title="OpenWebText", authors=["Aaron Gokaslan", "Vanya Cohen"], date="2019", url="https://skylion007.github.io/OpenWebTextCorpus/")
t5_2019 = url_reference("https://arxiv.org/pdf/1910.10683.pdf", organization="Google", notes=join(
"Encoder-decoder, frames tasks as text-to-text",
"Introduced Colossal Cleaned Common Crawl (C4)",
"Filtering (Section 2.2)",
"11B parameters",
"Remove bias from feedforward layers",
))
megatron_lm_2019 = url_reference("https://arxiv.org/pdf/1909.08053.pdf", organization="NVIDIA")
zero_2019 = url_reference("https://arxiv.org/abs/1910.02054", organization="Microsoft", notes="Introduced ZeRO optimizer, can train 100B parameter model over 400 GPUs")
rms_norm_2019 = url_reference("https://arxiv.org/abs/1910.07467")
############################################################
# 2020
kaplan_scaling_laws_2020 = url_reference("https://arxiv.org/pdf/2001.08361.pdf", organization="OpenAI", notes=join(
"Vary model size, dataset size, compute; get power laws",
"Larger models require fewer tokens",
))
shazeer_2020 = url_reference("https://arxiv.org/pdf/2002.05202.pdf", organization="Google", notes=join(
"Experiments with different activation functions",
"Activation functions: ReLU, GeLU, Swish",
"Apply idea of gated units (GLU): ReGLU, GeGLU, SwiGLU",
"FFN-SwiGLU = Swish(x W1) * xV W2",
"Have 3 matrices now, so make hidden dimension 2/3 of the 2 matrix version",
))
pre_post_norm_2020 = url_reference("https://arxiv.org/pdf/2002.04745.pdf")
linear_attention_2020 = url_reference("https://arxiv.org/abs/2006.16236")
longformer_2020 = url_reference("https://arxiv.org/pdf/2004.05150.pdf", organization="AllenAI", notes=join(
"Sliding window (local) attention",
"Global attention to capture task-specific information",
))
gpt_3_2020 = url_reference("https://arxiv.org/pdf/2005.14165.pdf", organization="OpenAI", notes=join(
"Introduces GPT-3",
"Same as GPT-2, but alternating sparse and dense attention layers",
"175B parameters",
"Data: 300B tokens",
))
the_pile_2020 = url_reference("https://arxiv.org/pdf/2101.00027.pdf", organization="EleutherAI", notes=join(
"825GB text, 22 diverse subsets (CommonCrawl, PubMed, ArXiv, GitHub, StackExchange, USPTO, OpenWebText2, Books3, etc.)",
))
############################################################
# 2021
mmlu_2021 = url_reference("https://arxiv.org/pdf/2009.03300.pdf", organization="Berkeley", notes=join(
"57 subjects, multiple-choice",
))
rope_2021 = url_reference("https://arxiv.org/pdf/2104.09864.pdf", notes=join(
"Encodes absolute position with rotation matrix, incorporate relative position dependency in self-attention",
"Key: R W x, where R is a block-diagonal sequence of d/2 rotation matrices (equation 13)",
"Extrapolates to longer sequences",
))
megatron_parallelism_2021 = url_reference("https://arxiv.org/pdf/2104.04473.pdf", organization="NVIDIA", notes=join(
"Compose tensor, pipeline, data parallelism",
"Achieve 52% MFU on 1T parameter model on 3072 GPUs",
))
byt5_2021 = url_reference("https://arxiv.org/abs/2105.13626")
gpt_j_2021 = Reference(
title="GPT-J", organization="EleutherAI", date="2021-06-04",
authors=["Ben Wang", "Aran Komatsuzaki"],
url="https://arankomatsuzaki.wordpress.com/2021/06/04/gpt-j/",
notes=join(
"6.7B parameters",
"Attention and feedforward layers put in parallel",
"v3 256 TPUs (5.4 PFLOPs) for 5 weeks",
),
)
gopher_2021 = url_reference("https://arxiv.org/pdf/2112.11446.pdf", organization="DeepMind", notes=join(
"280B parameters",
"Data: 300B tokens",
))
switch_transformers_2021 = url_reference("https://arxiv.org/abs/2101.03961", organization="Google")
############################################################
# 2022
instruct_gpt_2022 = url_reference("https://arxiv.org/pdf/2203.02155.pdf", organization="OpenAI", notes=join(
"Training language models to follow instructions with human feedback",
))
chinchilla_2022 = url_reference("https://arxiv.org/pdf/2203.15556.pdf", organization="DeepMind", notes=join(
"Introduced the rigorous analysis scaling laws for language models",
"Key improvement over Kaplan: tune learning rate for the compute budget",
"Approach 1: for each model size, train with 4 learning rates, vary number of training tokens, fit lower envelope",
"Approach 2 (IsoFLOP): for each model size, train with 9 training budgets, take last point",
"Approach 3: fit parametric function L(N, D) = E + A/N^alpha + B/D^beta to data collected from approaches 1 and 2",
"Conclusion: model and data should scale up at same rate",
"Table 3: extrapolate to 10 trillion parameters",
"MassiveText, different data distribution (1.5 trillion tokens)",
"70B parameters",
))
palm_2022 = url_reference("https://arxiv.org/pdf/2204.02311.pdf", organization="Google", notes=join(
"Data: Social media conversations, webpages, books, GitHub, Wikipedia, news",
"540B parameters",
"SwiGLU, parallelize attention and feedforward layers, multi-query attention, RoPE, remove biases",
"hardware: 6144 TPUv4, 46.2% MFU",
"optimizer: Adafactor without factorization",
"Introduced the term model FLOPs utilization (MFU) metric (observed tokens/sec / theoretical max tokens/sec)",
))
gpt_neox_2022 = url_reference("https://arxiv.org/pdf/2204.06745.pdf", organization="EleutherAI", notes=join(
"Data: The Pile",
"20B parameters",
"Use RoPE, parallel attention and feedforward layers (15% throughput increase)",
"hardware: 12x8 A100s",
))
opt_175b_2022 = url_reference("https://arxiv.org/pdf/2205.01068.pdf", organization="Meta", notes=join(
"Data: The Pile, PushShift.io Reddit, deduplication",
"175B parameters",
"hardware: 992 A100 80GB for 2 months, lots of hardware failures",
"FSDP with Megatron-LM, fp16 with loss scaling",
))
bloom_2022 = url_reference("https://arxiv.org/abs/2211.05100", organization="BigScience", notes=join(
"Model: BLOOM (176B parameters)",
"Data: ROOTS",
"Hardware: 48x8 A100s on Jean Zay supercomputer for 3.5 months",
"ZeRO stage 1",
))
bahdanau_training_costs_2022 = Reference(
title="The FLOPs Calculus of Language Model Training", authors=["Dzmitry Bahdanau"], date="2022-01-09",
url="https://medium.com/@dzmitrybahdanau/the-flops-calculus-of-language-model-training-3b19c1f025e4",
)
mup_2022 = url_reference("https://arxiv.org/abs/2203.03466")
############################################################
# 2023
llama_2023 = url_reference("https://arxiv.org/pdf/2302.13971.pdf", organization="Meta", notes=join(
"Train only on open data (detailed recipe that is replicated by RedPajama)",
"Optimize for fast inference at 7B",
"Data: CommonCrawl, C4, GitHub, Wikipedia, Books, ArXiv, StackExchange",
"Architecture: Pre-norm, SwiGLU, RoPE",
"Training: 2048 A100 80GB for 21 days",
))
gpt_4_2023 = url_reference("https://arxiv.org/pdf/2303.08774.pdf", organization="OpenAI", notes=join(
"No details on the data or model architecture.",
))
alpaca_2023 = Reference(title="Alpaca", authors=["Rohan Taori", "Ishaan Gulrajani", "Tianyi Zhang", "Yann Dubois", "Xuechen Li", "Carlos Guestrin", "Percy Liang", "Tatsunori B. Hashimoto"], date="2023-03-13", url="https://crfm.stanford.edu/2023/03/13/alpaca.html")
transformer_math_2023 = Reference(
title="Transformer Math 101", organization="EleutherAI", date="2023-04-03",
url="https://blog.eleuther.ai/transformer-math/",
)
gqa_2023 = url_reference("https://arxiv.org/pdf/2305.13245.pdf", organization="Google", notes=join(
"Multi-query attention (MQA) speeds up, but less expressive",
"GQA: use an intermediate (more than one, less than number of heads) number of key-value heads",
"Experiments on T5",
))
lima_2023 = url_reference("https://arxiv.org/pdf/2305.11206.pdf")
megabyte_2023 = url_reference("https://arxiv.org/pdf/2305.07185.pdf")
dpo_2023 = url_reference("https://arxiv.org/pdf/2305.18290.pdf")
llama_2_2023 = url_reference("https://arxiv.org/pdf/2307.09288.pdf", organization="Meta", notes=join(
"2T tokens",
"70B parameters",
))
mistral_7b_2023 = url_reference("https://arxiv.org/pdf/2310.06825.pdf", organization="Mistral", notes=join(
"GQA, sliding window attention",
))
qk_norm_2023 = url_reference("https://arxiv.org/abs/2302.05442")
############################################################
# 2024
llama_3_2024 = url_reference("https://arxiv.org/abs/2407.21783", organization="Meta", notes=join(
"15T tokens",
"405B parameters",
))
deepseek_67b_2024 = url_reference("https://arxiv.org/pdf/2401.02954.pdf", organization="DeepSeek", notes=join(
"Data: DeepSeek, The Stack, Reddit, etc. (2T tokens)",
"Architecture: LLaMA, but: for GQA increased depth, 67B parameters",
"Scaling laws: used non-embedding FLOPs with IsoFLOP",
))
mixtral_2024 = url_reference("https://arxiv.org/pdf/2401.04088.pdf", organization="Mistral")
olmo_7b_2024 = url_reference("https://arxiv.org/pdf/2402.00838.pdf", organization="AI2", notes=join(
"Data: subset of Dolma (2.46T tokens, CommonCrawl, The Stack, Reddit, etc.)",
"Architecture: no biases, non-parametric layer norm, SwiGLU (8/3 d increased to closest multiple of 128)",
"Training: 256x4 AMD MI250X on LUMI supercomputer, 27x8 A100s, 800Gbps interconnect",
))
dolma_2024 = url_reference("https://arxiv.org/abs/2402.00159")
deepseek_math_2024 = grpo = url_reference("https://arxiv.org/pdf/2402.03300.pdf")
megascale_2024 = url_reference("https://arxiv.org/pdf/2402.15627.pdf", organization="Bytedance", notes=join(
"55.2% MFU for 175B parameter model over 12,288 GPUs",
"Combine data, tensor, pipeline, sequence parallelism",
"Parallelize attention and feedforward layers, sliding window attention, LAMB optimizer",
))
nemotron_15b_2024 = url_reference("https://arxiv.org/pdf/2402.16819.pdf", organization="NVIDIA", notes=join(
"Data: 8T tokens, 70% English, 15% multilingual, 15% code",
"Architecture: RoPE, squared ReLU activations, no bias, no dropout, GQA (15B parameters)",
"Training: 384x8 H100s, After 8T tokens, train on higher quality sources + benchmark tasks",
))
yi_34b_2024 = url_reference("https://arxiv.org/pdf/2403.04652.pdf", organization="01.AI")
gemma_2024 = url_reference("https://arxiv.org/pdf/2403.08295.pdf", organization="Google DeepMind", notes=join(
"6T tokens",
"MQA, RoPE, GeGLU, RMSNorm",
"Training: 4096 v4 TPUs, Use ZeRO-3 like techniques",
))
overtrained_scaling_laws_2024 = url_reference("https://arxiv.org/pdf/2403.08540.pdf", notes=join(
"Chinchilla scaling laws focus on loss of the trained model, ignoring inference costs.",
"Constant ratio of training tokens to parameters",
"Extrapolate over 300x training compute to 1.4B model on 900B tokens",
"Look at task performance rather than validation loss",
))
minicpm_2024 = wsd_2024 = url_reference("https://arxiv.org/pdf/2404.06395.pdf", organization="Tsinghua")
deepseek_v2_2024 = mla_2024 = url_reference("https://arxiv.org/abs/2405.04434")
mamba_2_2024 = url_reference("https://arxiv.org/abs/2405.21060")
dclm_2024 = url_reference("https://arxiv.org/abs/2406.11794")
tfree_2024 = url_reference("https://arxiv.org/abs/2406.19223")
auxfree_2024 = url_reference("https://arxiv.org/abs/2408.15664")
mtp_2024 = url_reference("https://arxiv.org/abs/2404.19737")
soap_2024 = url_reference("https://arxiv.org/abs/2409.11321")
huanyuan_large_2024 = url_reference("https://arxiv.org/abs/2411.02265", organization="Tencent")
qwen_2_5_2024 = url_reference("https://arxiv.org/abs/2412.15115", organization="Alibaba")
blt_2024 = url_reference("https://arxiv.org/abs/2412.09871")
nemotron_cc_2024 = url_reference("https://arxiv.org/abs/2412.02595")
gdn_2024 = url_reference("https://arxiv.org/abs/2412.06464")
deepseek_v3_2024 = url_reference("https://arxiv.org/pdf/2412.19437.pdf")
muon_2024 = Reference(
title="Muon: An optimizer for hidden layers in neural networks", date="2024-12-08",
authors=["Jordan Keller"],
url="https://kellerjordan.github.io/posts/muon/"
)
wrap_2024 = url_reference("https://arxiv.org/abs/2401.16380")
############################################################
# 2025
olmo_2_2025 = url_reference("https://arxiv.org/abs/2501.00656", organization="AI2")
deepseek_r1_2025 = url_reference("https://arxiv.org/pdf/2501.12948.pdf")
kimi_1_5_2025 = url_reference("https://arxiv.org/pdf/2501.12599.pdf")
smollm_2_2025 = url_reference("https://arxiv.org/pdf/2502.02737.pdf", notes=join(
"1.7B parameter model",
"Introduces FineMath, StackEdu",
))
llama_4_2025 = Reference(title="Llama 4", organization="Meta", url="https://ai.meta.com/blog/llama-4-multimodal-intelligence/", date="2025-04-05")
olmo_2_32b_2025 = Reference(title="OLMo 2 (32B)", organization="AI2", url="https://allenai.org/blog/olmo2-32B")
qwen_3_2025 = url_reference("https://arxiv.org/abs/2505.09388")
glm_4_5_2025 = url_reference("https://arxiv.org/abs/2508.06471", organization="Z.ai")
longcat_flash_2025 = url_reference("https://arxiv.org/abs/2509.01322")
ling_2_2025 = url_reference("https://arxiv.org/abs/2510.22115")
hnet_2025 = url_reference("https://arxiv.org/abs/2507.07955")
marin_8b_2025 = url_reference("https://marin.readthedocs.io/en/latest/reports/marin-8b-retro/", organization="Marin", title="[Marin 8B retro]", date="2025")
marin_32b_2025 = url_reference("https://marin.readthedocs.io/en/latest/reports/marin-32b-retro/", organization="Marin", title="[Marin 32B retro]", date="2025")
olmo_3_2025 = url_reference("https://arxiv.org/abs/2512.13961")
nemotron_3_2025 = url_reference("https://arxiv.org/abs/2512.20856")
deepseek_v3_2_2025 = url_reference("https://arxiv.org/abs/2512.02556")
regmix_2025 = url_reference("https://arxiv.org/abs/2407.01492")
############################################################
# 2026
kimi_k2_5_2026 = url_reference("https://arxiv.org/abs/2602.02276", organization="Moonshot")
glm_5_2026 = url_reference("https://arxiv.org/abs/2602.15763", organization="Z.ai")
arcee_trinity_2026 = url_reference("https://arxiv.org/abs/2602.17004")
qwen_3_5_2026 = url_reference("https://qwen.ai/blog?id=qwen3.5")
minimax_m2_5_2026 = url_reference("https://www.minimax.io/news/minimax-m25", organization="Minimax", title="[MiniMax M2.5]", date="2026")
xiaomi_mimo_v2_2026 = url_reference("https://mimo.xiaomi.com/mimo-v2-pro", organization="Xiaomi", title="[Xiaomi MIMO v2]", date="2026")
mamba_3_2026 = url_reference("https://arxiv.org/abs/2603.15569")
olmix_2026 = url_reference("https://arxiv.org/abs/2602.12237")
nemotron_3_super_2026 = Reference(
title="Nemotron 3 Super: Open, Efficient Mixture-of-Experts Hybrid Mamba-Transformer Model for Agentic Reasoning",
organization="NVIDIA",
url="https://research.nvidia.com/labs/nemotron/files/NVIDIA-Nemotron-3-Super-Technical-Report.pdf",
date="2026-03-11",
)
deepseek_v4_2026 = Reference(
title="DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence",
organization="DeepSeek",
url="https://huggingface.co/deepseek-ai/DeepSeek-V4-Pro/blob/main/DeepSeek_V4.pdf",
date="2026-04",
)