Pinned Tweet
Such a rewarding experience (pun intended) collaborating with @tongyx361 @xiangyue96 @sirius_ctrl @gneubig! We hope our results are useful to the community 🙏
Demystifying Long CoT Reasoning in LLMs
arxiv.org/pdf/2502.03373
Reasoning models like R1 / O1 / O3 have gained massive attention, but their training dynamics remain a mystery. We're taking a first deep dive into understanding long CoT reasoning in LLMs!
11 Major Takeaways👇(long threads)
Love @ylecun ‘s spicy takes 😂 I see his point though — is gradient descent “learning” if you limit it to a few iterations? The life expectancy of a human is short in the timescale of technological progress. Science has a scaling law too 🤔
To qualify as Science a piece of research must be correct and reproducible.
To be correct and reproducible, it must be described in sufficient details in a publication.
To be 'published' (to receive a seal of approval) the publication must be checked for correctness by reviewers.
To be reproduced, the publication must be widely available to the community and sufficiently interesting.
If you do research and don't publish, it's not Science.
Without peer review and reproducibility, chances are your methodology was flawed and you fooled yourself into thinking you did something great.
No one will ever hear about your work.
No one will pick it up and build on top of it.
No one will build new technology and products with it.
Your work will have been in vain.
You'll die bitter and forgotten.
If you never published your research but somehow developed it into a product, you might die rich.
But you'll still be a bit bitter and largely forgotten.
8
370
Coool
# Reproduce GPT-2 (124M) in llm.c in 90 minutes for $20 ✨
The GPT-2 (124M) is the smallest model in the GPT-2 series released by OpenAI in 2019, and is actually quite accessible today, even for the GPU poor. For example, with llm.c you can now reproduce this model on one 8X A100 80GB SXM node in 90 minutes (at ~60% MFU). As they run for ~$14/hr, this is ~$20. I also think the 124M model makes for an excellent "cramming" challenge, for training it very fast. So here is the launch command:
And here is the output after 90 minutes, training on 10B tokens of the FineWeb dataset:
It feels really nice to reach this "end-to-end" training run checkpoint after ~7 weeks of work on a from-scratch repo in C/CUDA. Overnight I've also reproduced the 350M model, but on that same node that took 14hr, so ~$200. By some napkin math the actual "GPT-2" (1558M) would currently take ~week and ~$2.5K. But I'd rather find some way to get more GPUs :). But we'll first take some time for further core improvements to llm.c. The 350M run looked like this, training on 30B tokens:
I've written up full and complete instructions for how to reproduce this run on your on GPUs, starting from a blank slate, along with a lot more detail here:
github.com/karpathy/llm.c/di…
3
194
Very interesting analysis of attention heads that can be exploited for fun and profit 😁
From Claude100K to Gemini10M, we are in the era of long context language models. Why and how a language model can utilize information at any input locations within long context? We discover retrieval heads, a special type of attention head responsible for long-context factuality
2
183
Model merging meets evolutionary computing i.e. models can now have kids. Decentralized intelligence 🚀
Introducing Evolutionary Model Merge: A new approach bringing us closer to automating foundation model development. We use evolution to find great ways of combining open-source models, building new powerful foundation models with user-specified abilities!
sakana.ai/evolutionary-model…
1
251
AI engineer has completed upwork jobs
Today we're excited to introduce Devin, the first AI software engineer.
Devin is the new state-of-the-art on the SWE-Bench coding benchmark, has successfully passed practical engineering interviews from leading AI companies, and has even completed real jobs on Upwork.
Devin is an autonomous agent that solves engineering tasks through the use of its own shell, code editor, and web browser.
When evaluated on the SWE-Bench benchmark, which asks an AI to resolve GitHub issues found in real-world open-source projects, Devin correctly resolves 13.86% of the issues unassisted, far exceeding the previous state-of-the-art model performance of 1.96% unassisted and 4.80% assisted.
Check out what Devin can do in the thread below.
353
More progress towards the decentralization of AI. Also found this gem of a blog post from a few years ago. Curious what the current state of things are.
colinraffel.com/blog/a-call-…
This post is from an account that no longer exists. Learn more
2
182
Interesting points
Let me clear a *huge* misunderstanding here.
The generation of mostly realistic-looking videos from prompts *does not* indicate that a system understands the physical world.
Generation is very different from causal prediction from a world model.
The space of plausible videos is very large, and a video generation system merely needs to produce *one* sample to succeed.
The space of plausible continuations of a real video is *much* smaller, and generating a representative chunk of those is a much harder task, particularly when conditioned on an action.
Furthermore, generating those continuations would be not only expensive but totally pointless.
It's much more desirable to generate *abstract representations* of those continuations that eliminate details in the scene that are irrelevant to any action we might want to take.
That is the whole point behind the JEPA (Joint Embedding Predictive Architecture), which is *not generative* and makes predictions in representation space.
Our work on VICReg, I-JEPA, V-JEPA, and the works of others show that Joint Embedding architectures produce much better representations of visual inputs than generative architectures that reconstruct pixels (such as Variational AE, Masked AE, Denoising AE, etc).
When using the learned representations as inputs to a supervised head trained on downstream tasks (without fine tuning the backbone), Joint Embedding beats generative.
See the results table from the V-JEPA blog post or paper:
ai.meta.com/blog/v-jepa-yann…
1
111
Internet of AIs
Distributed Inference and Fine-tuning of Large Language Models Over The Internet
paper page: huggingface.co/papers/2312.0…
Large language models (LLMs) are useful in many NLP tasks and become more capable with size, with the best open-source models having over 50 billion parameters. However, using these 50B+ models requires high-end hardware, making them inaccessible to most researchers. In this work, we investigate methods for cost-efficient inference and fine-tuning of LLMs, comparing local and distributed strategies. We observe that a large enough model (50B+) can run efficiently even on geodistributed devices in a consumer-grade network. This could allow running LLM efficiently by pooling together idle compute resources of multiple research groups and volunteers. We address two open problems: (1) how to perform inference and fine-tuning reliably if any device can disconnect abruptly and (2) how to partition LLMs between devices with uneven hardware, joining and leaving at will. In order to do that, we develop special fault-tolerant inference algorithms and load-balancing protocols that automatically assign devices to maximize the total system throughput. We showcase these algorithms in Petals - a decentralized system that runs Llama 2 (70B) and BLOOM (176B) over the Internet up to 10x faster than offloading for interactive generation. We evaluate the performance of our system in simulated conditions and a real-world setup spanning two continents.
1
123
Some progress on decentralizing AI training 🧐
🚨 We released our work on data parallelism for language models *distributed* across the entire world!
arxiv.org/abs/2311.08105
🧵Thread below 👇
xitter.gq/_akhaliq/status/172463…
1
205
arxiv.org/pdf/2212.13345.pdf
Hinton's Forward-Forward algorithm might be a good starting point.
81
Amazing 🚀🚀
Replying to @huggingface
@huggingface just updated the leaderboard with much harder evals. Yi-34B is now the top model of the leaderboard across all sizes/model categories!!! Thanks @clefourrier for sending the news. Would love to share Yi Open-source with more fellow developers huggingface.co/01-ai
200
New top performing pretrained open source LLM on the block, and it’s bilingual too. Can’t wait for what’s next 🚀
We are humbled by the evaluations from both @huggingface listing Yi-34B #1 English/global open source LLM (pretrained) and C-Eval #1 for Chinese open LLM. Quantized and chat model coming up soon. Share with more fellow developer friends! 01.ai/en
What a wonderful blog
Interesting hypothesis. So basically just throw parameter and compute at the problem, and don't worry about hyperparameter tuning and architecture.
(And definitely don't bother with NAS, neural architecture search.)
nonint.com/2023/06/10/the-it…
163
Can’t wait to find the time to dig in🍿
TinyML and Efficient Deep Learning Computing, MIT 2023
A course that covers efficient AI techniques used for deploying deep learning models on resource-constrained devices.
The topics covered include model compression, pruning, quantization, neural architecture search, distributed training, data/model parallelism, gradient compression, on-device fine-tuning, and applications specific techniques for large language models, diffusion models, and video recognition.
Large language(and image) models are remarkably great at tasks they do but getting them to actually work require a huge amount of computational resources. It's nice to see courses that are dedicated for demystifying large models deployments.
Lecture videos: youtube.com/playlist?list=PL…
Website: efficientml.ai
249
Tokens as registers. Interesting!
Vision transformers need registers!
Or at least, it seems they 𝘸𝘢𝘯𝘵 some…
ViTs have artifacts in attention maps. It’s due to the model using these patches as “registers”.
Just add new tokens (“[reg]”):
- no artifacts
- interpretable attention maps 🦖
- improved performances!
162



























