Afshine Amidi (@afshinea) header
Afshine Amidi (@afshinea) profile picture

Ecole Centrale Paris, MIT. Twin of @shervinea. New book on Transformers & Large Language Models: https://teapawt.net/t.co/5b89hbceJf

Bay Area
Joined August 2014
Photo by Afshine Amidi (@afshinea)Photo by Afshine Amidi (@afshinea)Photo by Afshine Amidi (@afshinea)Photo by Afshine Amidi (@afshinea)Photo by Afshine Amidi (@afshinea)Photo by Afshine Amidi (@afshinea)Photo by Afshine Amidi (@afshinea)Photo by Afshine Amidi (@afshinea)Photo by Afshine Amidi (@afshinea)Photo by Afshine Amidi (@afshinea)
Our Stanford class "CME 295: Transformers & Large Language Models" is back for a new edition and Lecture 1 is now on YouTube!
3
54
5
502
16,417
Topics reflect the progress that has happened in the field in the past year: • AI Agents (tool calling, memory, planning, harness optimization) • Post-training approaches (RL with PPO and GRPO, RLVR, on-policy distillation) • Diffusion LLMs (continuous and discrete diffusion)
1
8
832
Our new Stanford class "CME 296: Diffusion & Large Vision Models" is now available on YouTube!
11
171
7
1,590
61,534
Topics of the class include: • Generation paradigms (diffusion, score matching, flow matching) • Multimodal guided generation (latent diffusion with VAEs, contrastive learning, CFG) • Architectures (U-Net, Diffusion Transformer, Multimodal Diffusion Transformer)
2
17
2,298
Announcing the VIP Cheatsheet for Stanford's CME 295 Transformers & Large Language Models class. Topics include: - Transformers: self-attention, architecture, variants, optimization techniques (sparse attention, low-rank attention, flash attention) - LLMs: prompting, finetuning (SFT, LoRA), preference tuning, optimization techniques (mixture of experts, distillation, quantization) - Applications: LLM-as-a-judge, RAG, agents, reasoning models (train-time and test-time scaling from DeepSeek-R1)
1
7
1
28
3,916
This Spring, my twin brother @shervinea and I will be teaching a new class at Stanford called "Transformers & Large Language Models" (CME 295). The goal of this class is to understand where LLMs come from, how they are trained, and where they are most used. We will also explore more recent topics such as reasoning models and agentic workflows. We will be posting updates on the class website and uploading some relevant material in the coming weeks. For reference, a large portion of the class is based on our recent book "Super Study Guide: Transformers & Large Language Models". Stay tuned & happy learning!
2
5
2
45
3,530
「Super Study Guide: Transformer と大規模言語モデル」日本語版が発売されました。250 ページにわたり約 600 点のカラーの図を交えて Transformer と LLM の詳細を解説しています。
1
4
9
1,937
内容は以下のとおりです。 - Transformer(仕組み、詳細な例) - LLM(事前学習、プロンプトエンジニアリング、ファインチューニング、プリファレンスチューニング、量子化などの最適化手法) - 応用(RAG、翻訳など)
1
5
838
Announcing "Super Study Guide: Transformers & Large Language Models", a 250-page book with ~600 colored illustrations covering the concepts of the Stanford workshop that Shervine and I are teaching at this summer.
8
24
5
192
74,349
Topics include: - Transformers (how they work, detailed examples) - LLMs (pretraining, prompt engineering, finetuning, preference tuning, optimizations such as quantization) - Applications (RAG, translation, etc.) Book: amazon.com/dp/B0DC4NYLTN/
1
5
1
36
3,416
Announcing Super Study Guide: Algorithms and Data Structures. Ideal for visual learners who want to brush up on core CS skills. Topics: arrays/strings, queues/stacks, hash tables, graphs, trees, sorting and search. Web: superstudy.guide Book: amazon.com/dp/B0B2TW6896
4
23
4
93
Earlier this summer, my twin brother and I decided to do a road trip between our two alma maters: MIT and Stanford. We recorded everything in case you would like to see what this (very) long trip looked like. Full video on YouTube: youtu.be/4Nl61iyCySc cc: @MIT, @Stanford
1
4
33
This journey had a length of 5,471 kilometers / 3,400 miles and spanned 13 states across the US: Massachusetts, Connecticut, New York, Pennsylvania, Ohio, Indiana, Illinois, Iowa, Nebraska, Colorado, Utah, Nevada and California. It took us a total of 59 hours to do that.
1
8
Ideal to prepare for interviews: illustrated Data Science study guides covering MIT’s 15.003 Software Tools class. Topics: data retrieval with SQL, data manipulation with R and Python, tips with Bash and Git. Web: mit.edu/~amidi/teaching/data… PDF version: github.com/shervinea/mit-15-…
3
65
8
175
Stargazing in the desert during the new moon is really incredible. Hard to believe that we could be alone in the Universe.
3
1
26
We are trying to get these AI cheatsheets accessible to more people around the world. If you want to help us with the translation into your own native language, you can contribute in this dedicated GitHub repo: github.com/shervinea/cheatsh…
Set of animated Artificial Intelligence cheatsheets covering Stanford's CS 221 class: Reflex-based: stanford.io/2EqNPHy States-based: stanford.io/2wh4F7u Variables-based: stanford.io/2HAiAfh Logic-based: stanford.io/2M7taia GitHub repo: github.com/afshinea/stanford…
5
32
3
91
The table of contents extension is a simple yet very cool add-on that can save you a lot of time when working on a long Jupyter notebook: jupyter-contrib-nbextensions…
1
8
Below are some of the best practices on how to make your work reproducible. These are essential when working in teams.
My #AAASmtg talk today on “Collaborating reproducibly” with notes on what I’ll say. biostat.wisc.edu/~kbroman/pr…
1
1
11
This website compiles neatly detailed Python tutorials on a wide range of topics: realpython.com/ Very useful for those who want to get a nice overview of various practical use cases.
17
49
Even though technical skills are of course useful and necessary, they are not sufficient. Conveying ideas in a clear and concise manner often proves to be at least as important.
1
2
21
The best way to remember that correlation does not imply causation is to have a funny counterexample in mind. The following website compiles a bunch of them: tylervigen.com/spurious-corr…
3
2
20
All data science projects have parts involving data, analyses and modeling. This website provides a nice overview of some good practices to follow when it comes to structuring your work: drivendata.github.io/cookiec…
Set of illustrated Deep Learning cheatsheets covering the content of Stanford's CS 230 class: Convolutional Neural Networks: stanford.io/2Rc82Ff Recurrent Neural Networks: stanford.io/2TO7ur6 Tips and tricks: stanford.io/2PTymHP PDF version: github.com/afshinea/stanford…
11
326
13
919
Just found a website that lets you learn SQL in an interactive way. Particularly convenient for those who wish to get some practice. If you're interested, here it is: sqlzoo.net
3
42
3
186
Additionally, all of the useful SQL commands are summarized in the following doc: github.com/enochtangg/quick-…
6
27