MIT 6.5940, TinyML and Efficient AI Computing
deep neural nets demand tons of compute, so MIT has a course teaching you how to minimize the amount needed both in the cloud and on tiny devices, an essential skill right now
link: https://t.co/PDSYaYlWgu
Introducing e-means, an algorithm beating k-means in 10x fewer epochs.
With order of magnitude wall-clock speedups, e-means is released in FAISS and needs no hyperparameter tuning beyond k. It is robust to various scales and datasets. Still skeptical ? Just try e-means [1/10]🧵
Deep learning is often taught as a sanitized collection of facts and math. But work at the frontier of AI is messy and empirical.
Our new class, Deep Learning Alchemy, aims to teach the art and science of deep learning in the hands-on spirit of Language Modeling From Scratch.
Students build intuition by running experiments on small LMs, then test it through prediction quizzes: given an unseen code diff, can you predict what happens?
https://t.co/0H82T1yyam
My co-instructor @kothasuhas and I think there's significant demand for classes that treat students as serious learners who want to be assessed for what they’ve learned, and so we're trying a new exam-heavy approach to the class (7 exams, 85% of the grade, with the remaining 15% in-person discussion assessments).
We’ve designed the class so students can use AI agents to run their experiments and do their assignment, but they then have to demonstrate that mastery on exams without access to the assignment, and any partial credit on the exam has to come through citations to the assignment, incentivizing them to know what’s in their write-up.
The same assignments and quizzes are public for anyone to try (lecture recordings will be released through @StanfordOnline with some delay). We have some very fun assignments and quizzes covering both classic topics (like NQM, run-to-run stochasticity, and scaling laws) and new and timely topics like muP or hyperball. Made by some real experts like @TristanThrush and @wen_kaiyue
Try some quizzes below!
Check out our latest paper on looped transformers! We found looping enables implicit reasoning, and a new trick we introduced that forces the model to decode the tokens explicitly between looped modules enables the model to learn multi-hop reasoning in a generalizable way!
@karpathy This is what I have been doing lately.
/human-review for markdown review with interactive human comments (though I wish I have nicer UI interface to allow agent comment directly instead of creating a new turn
/diagram-design to generate architectural diagram
We will be teaching Agentic GPU Programming for MLSys as part of the CMU ML Systems course this upcoming spring at @SCSatCMU, touching on knowledge curation, compiler analysis, and feedback loops. We also curated an online book on the topic, check it out https://t.co/S3TmfiAJ7h
Easy, an LRM can do that for you. LRMs have very different training mechanisms and inference behavior. They have very high latency and perform (unrolled) search in natural language program space at test time. They also have radically different performance profiles on any system 2 task.
Harvard has put one of the best AI systems curriculums I’ve seen online for free.
CS249r goes well beyond model architecture. It gets into the engineering that decides whether a model can actually be trained and served efficiently: processors, memory hierarchy, data movement, accelerators, distributed computation, inference, quantization, serving, reliability and deployment.
And there is much more than a textbook.
The material includes two open-access ML Systems volumes, TinyTorch for building an ML framework from scratch, interactive browser labs, MLSys·im for experimenting with hardware and infrastructure bottlenecks, StaffML for systems practice, and the lecture slides used for teaching the course.
TinyTorch alone has 20 progressive modules. The labs let you change system parameters and see what becomes the bottleneck instead of only reading about it.
This is the material I’d study after getting comfortable with neural networks and Transformers.
Knowing how attention works is useful. Knowing why KV cache consumes memory, when inference becomes bandwidth-bound, why batching changes throughput, and why adding more GPUs eventually stops scaling is a different skill.
Everything is here: https://t.co/K7GTZUZi5h
GitHub: https://t.co/g24EyoTy5x
Nearly half a year of silence. We spent it studying one problem: how far RL can scale.
MiMo-V2.6 is in the middle of its RL run right now. Three things we scaled: compute (~2B tokens per step, 1568 prompts × 16 rollouts, fully async), environments and harnesses (multi-task agentic RL, mixed across multiple harnesses in one run), and grader compute (agentic in-group credit assignment, with test-case and rubric-based rewards). We'll open-source the details piece by piece over the coming weeks.
Streaming the run: https://t.co/ZSxahzJRju
Gaps on why agentic software is fragile
Requirements only approximate stakeholder intent, and the model only approximates the real deployment environment. We call these together — requirement gap and model gap.
Solution: assurance–revision loop
https://t.co/S1kJHTzITn
Yesterday, I was asked about a rumor that Astra https://t.co/EqfFw6ad8r uses a Full Bandwidth Transformer https://t.co/osGnEraffW .
I have no special knowledge, but it is at least strange to have someone from OpenAI asking where the idea came from.