Nerd & Dad. RL & CodeGen research since before it was cool.

Paris
(🧵) Today, we release Meta Code World Model (CWM), a 32-billion-parameter dense LLM that enables novel research on improving code generation through agentic reasoning and planning with world models. ai.meta.com/research/publica…
60
310
1,798
920,808
This is an excellent history of LLMs, doesn't miss seminal papers I know. Reminds you we're standing on the shoulders of giants, and giants are still being born today. gregorygundersen.com/blog/20…
10
110
684
127,697
Reinforcement learning with execution feedback (RLEF). Lots of sweat went into this one, but what works in principle works in practice: for code generation we can turn compute into training data: arxiv.org/abs/2410.02089 This works for LLMs, but will lead to world models.
13
85
554
62,864
Everything I know in RL in one tweet: exploration>exploitation, easy to leverage off-policy positive rewards, hard to leverage off-policy negative rewards, update the policy often, focus on throughput, self-play or find asymmetric grounding, clip everything but check statistics.
11
28
486
33,753
Want to do research in code generation with LLMs and wonky deep learning from the 90s? We're recruiting one Master student (M2) intern for 2025 at FAIR Paris in my team metacareers.com/jobs/1068714…
8
44
286
58,039
The wav2letter Santa has brought 50k hours of read speech in 8 languages in CC-BY 4.0: - dataset: openslr.org/94/ - paper: arxiv.org/abs/2012.03411 - pretrained models: github.com/facebookresearch/…
4
47
275
To all the defeatists who think there is nothing else but scale: * 5 years between Self-Attention Is All You Need and FlashAttention * Transformers still require warmup. Researchers: get back to work! The future is bright :)
13
16
254
76,807
4/ Here is an example of the Code World Model tracing the execution of the piece of code counting the "r"s in "strawberry". Think of it like a neural `pdb` that you can set to any initial frame state, and that reasoning can query as a tool in token space.
4
9
259
121,326
Happy to be releasing Code Llama! We've built it on Llama 2 and improved it for code use cases. In particular it supports infilling out of the box, and was trained with sequences up to 16k tokens. Looking forward to what the community will build with it! 1/7
9
40
248
33,518
2/ When humans plan, we imagine the possible outcomes of different actions. When we reason about code we simulate part of its execution in our head. The current generation of LLMs struggles to do this. What kind of research will an explicitly trained code world model enable?
6
19
258
33,944
Flashlight's v0.3 release: a lightweight, modern C++ deep learning autograd-based library with SOTA models in speech recognition, language modeling, and vision: github.com/flashlight/flashl… dataloading/model/training/docs to follow [1/5]
5
40
225
I'm hiring Master interns at FAIR Paris to work on code generation, to work with me and the awesome CodeGen team (@b_roziere, @jadecopet, @jnsgehring, @adiyossLC et al.). We do Code Llama and research. Candidate at metacareers.com/jobs/1126568… and send me an email or message.
11
49
228
77,015
Just gave a talk on "Grounding LLMs in Code Execution" at the NeurIPS Hacker-Cup AI Competition, here are the slides docs.google.com/presentation…
5
33
232
46,343
We're releasing base models, Python-specialized models, and Instruct(ion following) models, all in sizes 7B, 13B, 34B params. Get the code and weights: github.com/facebookresearch/… Read the research paper: ai.meta.com/research/publica… Read the blog post: ai.meta.com/blog/code-llama-…
1
49
200
330,368
Thanks to *big* team effort, we released the code and the trained models from our LibriSpeech acoustic model architecture study and SOTA results arxiv.org/abs/1911.08460 here github.com/facebookresearch/…
1
50
198
Remember MusicGen? Today we open sourced the training code, as well as for AudioGen, and for EnCodec, and a bunch of goodies (models you can go play with and extend). Big congrats to @jadecopet, @honualx, @adiyossLC and everybody else for this last push! audiocraft.metademolab.com/?…
3
34
186
33,866
In another life I worked on StarCraft: Brood War, doing RL self-play from scratch with a population of agents. Lots of the lessons learned there I still carry to this day.
9
13
192
13,010
NIPS Workshop "Learn to Code a Paper with State of the Art Frameworks" (I missed it): mltrain.cc/events/nips-highl… code: github.com/vasiloglou/mltrai…
3
30
186
3/ CWM allows us to study this question. Our model is trained on large amounts of coding data & bespoke Python + Bash world modeling data, allowing it to simulate Python function execution and agentic interactions in Bash environments.
1
4
151
21,579
My only swag this time, let's wish it becomes vintage but not collector!
4
5
143
20,350
5/ The team and I can’t wait to see what new research will be enabled with a world model. We release 3 checkpoints under a research license: 1️⃣ CWM pretrained, e.g. for new posttrainings methods, 2️⃣ CWM SFT, e.g. for RL research, 3️⃣ CWM, e.g. for inference time scaling.
2
5
150
17,298
A short time ago in 10 timezones from California away... While Llama 3.1 is (rightfully) all the rage, some weirdos are making progress on generating all tokens at once with flow matching (a diffusion family process), and testing on the hardest task to get exactly right: codegen!
Excited to share our latest work on discrete flow matching! A new framework that achieves SOTA non-autoregressive generation. For example, pass@1 on HumanEval is 6.7/11.6 and 6.7/13.1 on MBPP. Paper: arxiv.org/abs/2407.15595 [1/n]
3
16
142
18,607
Sir David MacKay had a tremendous influence on me. First with Information Theory, Inference, and Learning Algorithms inference.org.uk/mackay/itil… which is my first read-cover-to-cover ML book, then with WithoutTheHotAir withouthotair.com/
3
11
130
I'm immensely proud of the work done by my cracked CodeGen team at Meta, with PhD students and veterans, for which nothing is someone else's problem. The broader Meta AI community all pulled together for this. I'm very thankful for the unwavering support of our whole leadership.
5
6
135
11,210
AGI delayed internally.
5
3
127
26,577
We’re hiring PhD interns to work on code generation research at FAIR in EMEA! Please apply at metacareers.com/jobs/1126568… if you’re interested by research in Code Llama, LLMs, code generation, compilers, reinforcement learning.
4
25
118
34,934
Science is not a zero-sum game. With more knowledge, we can do more things, with less. Science is not a zero-sum game. With more funding, more labs, we’ll train more students, and grow the pie for all. Science is not a zero-sum game. Publish, I can build on your breakthrough.
3
7
106
119,881
it's what we do in Code World Model too ai.meta.com/temp/research/pu…
I am excited to open-source PipelineRL - a scalable async RL implementation with in-flight weight updates. Why wait until your bored GPUs finish all sequences? Just update the weights and continue inference! Code: github.com/ServiceNow/Pipeli… Blog: huggingface.co/blog/ServiceN…
3
13
114
15,574
We just open-sourced wav2letter! facebook.com/ronan.collobert…
2
47
116
Asja and I are thrilled to announce the list of accepted workshops for ICLR 2020 in Addis Ababa, Ethiopia. (The ICLR website will get updated soon.)
3
34
113
The CodeGen team at FAIR *in Paris* is recruiting junior and senior research engineers! metacareers.com/jobs/4176159… Come work with us @jadecopet @b_roziere @qcar_ @FabianGloeckle @KunhaoZ et al., and folks in EMEA @jnsgehring @TacoCohen @adiyossLC @FelixKreuk et al.
1
26
102
101,969
pip install diffq more at github.com/facebookresearch/… and
@adiyossLC @syhw and I are happy to present our work: Differentiable Model Compression with Pseudo Quantization Noise 🗜️💾🤖 Our method, DiffQ, uses additive noise as a proxy for quantization, giving differentiability with no Straight Through Estimator👇 github.com/facebookresearch/…
23
102
STC is CTC with wildcards, easily implemented with WFSTs and benchmarked on ASR and HWR. 😅 arxiv.org/abs/2201.12208 (by @vineelk @awnihannun Ronan)
5
21
93
7/ We hope CWM provides a strong testbed for research on improving code generation with world models. We performed multi-task RL, and CWM has competitive performance for its size with 67.6% on LiveCodeBench v5, 76% on AIME24, and 65.8% on SweBench Verified with test time scaling.
2
4
95
11,692
AI can both be awesome today, tomorrow, and a ton of work is left to do for a while!
The @karpathy interview 0:00:00 – AGI is still a decade away 0:30:33 – LLM cognitive deficits 0:40:53 – RL is terrible 0:50:26 – How do humans learn? 1:07:13 – AGI will blend into 2% GDP growth 1:18:24 – ASI 1:33:38 – Evolution of intelligence & culture 1:43:43 - Why self driving took so long 1:57:08 - Future of education Look up Dwarkesh Podcast on YouTube, Apple Podcasts, Spotify, etc. Enjoy!
4
4
83
43,276
8/ Additionally, we’re publishing a preparedness report ai.meta.com/research/publica… in line with Meta’s Frontier AI Framework (ai.meta.com/static-resource/…). While CWM is intended for noncommercial research use, Meta makes system-level protections available (llama.com/llama-protections/).
1
5
86
12,023
Legend.
Leaving Meta and PyTorch I'm stepping down from PyTorch and leaving Meta on November 17th. tl;dr: Didn't want to be doing PyTorch forever, seemed like the perfect time to transition right after I got back from a long leave and the project built itself around me. Eleven years at Meta. Nearly all my professional life. Making many friends for life. Almost eight years leading PyTorch, taking it from nothing to 90%+ adoption in AI. Walking away from this was one of the hardest things I've ever done. But I'm leaving with a full heart. PyTorch handles exascale training now. It powers foundation models that are redefining intelligence. It's in production at virtually every major AI company. It's taught in classrooms from MIT to rural India. The tools I dreamed about making accessible? They are. The barrier to entry I wanted to lower? It's almost gone. To be clear, there’s so much more to do. As long as AI evolves at a breakneck pace, PyTorch will continue to play catch up. Obsessing over the yet-to-come sometimes makes us forget how much we’ve already done. To everyone who built this with me—who believed research should be joyful, that tools should be elegant, that open source changes everything—thank you. This wasn't my journey. It was ours. What's next for me? Something small. Something new. Something I don't fully understand yet. Something uncomfortable. I could have moved to something else inside Meta. But I needed to know what's out there. I needed to do something small again. I couldn't live with the counterfactual regret of never trying something outside Meta. It's very hard to leave. I probably have one of the AI industry’s most leveraged seats, I lead the software layer that powers the entire AI industry. Every major AI company and hardware vendor are on a speed dial. This kind of power is really hard to give up. But curiosity ultimately won out in my head. Keep making AI delicious and accessible. I'll be watching. Probably filing issues. Definitely staying involved. Is PyTorch going to be okay? I don't want to be doing PyTorch forever. I don't want to be like Guido or Linus— bound to a single thing for decades. Last November, coinciding with the birth of my daughter, I started planning my exit with Aparna. My goal was to leave PyTorch in a good and stable place. By this August, during the second half of my parental leave, I knew: Edward, Suo, Alban, Greg, John, Joe and Jana were ready. The team faced hard people, product, technical and organizational problems and didn’t feel the need to lean back on me to solve these for them (unlike in the past). The product story they crafted for the PyTorch Conference was coherent—really coherent. The things I'd flagged red were turning healthy. The project didn't need me anymore. Unlike 2020-2022 (when I stepped down to go do robotics and came back when Lin, Dima and Dwarak left), I have strong confidence that this time PyTorch is truly resilient. The most aligned culture carriers of PyTorch – Greg, Alban, Ed, Jason and Joe are at the decision table now, and people with strong value alignment – Suo, John and Jana have joined them at the table. And there’s a long list of equally value-aligned people willing to sit at the table should any of these people leave. There are many little things that make up my confidence on the people – John worked on Julia and open-source for a very long time (in fact we hacked a Torch.jl in 2015), Suo has been the strongest systems builder and strategic partner I’ve had for the past two years, and Jana worked on resilient core systems for a very long time, I’ve had long technical and organizational discussions with her over the past few months that give me confidence. And the product lineup and execution in 2025 should be sufficient evidence for any remaining doubt. I’m confident that this band of PyTorchers are going to do exceptionally well. PyTorch might change in flavor because I no longer impose my own taste from the top, but I’m confident that the values are going to stay intact and the product is going to be awesome. My time at Meta The early years of FAIR were absolutely magical. I was part of a small family of absolutely brilliant people building state-of-the-art AI out in the open. From working on GANs with Emily Denton, Rob Fergus, Leon Bottou, Martin Arjovsky and the (now legendary) Alec Radford to building Starcraft bots with Gabriel Synnaeve, to building the first FAIR Cluster with Howard Mansell, to working on object detection with Adam Lerer and Piotr Dollar, to building PyTorch. It was more fun than I can describe in words. 2015 and 2016 were probably the most productive and professionally enjoyable years of my life. I’ll probably romanticize this period of my life forever. When I joined FAIR, I had massive impostor syndrome, and the first 3 months were very very difficult. I can’t credit Andrew Tulloch enough for being the most thoughtful, kind and welcoming mentor, without whom I wouldn’t have made it. I’m so damn bullish for Meta just from the fact that he’s back. --- My time on PyTorch was special. I loved every part of building it—designing it, managing it, being the PM, TL, comms lead, doc engineer, release engineer, squashing bugs, growth hacking, turning it into a coherent product with hundreds of people, transitioning it to industry stakeholdership – the whole nine yards. To the core PyTorch team at Meta: the engineers, researchers, open-source maintainers, docs writers, CI infrastructure folks, hardware partners, the community builders. To the hundreds more inside and outside Meta—thank you. You turned a library into a movement. There are too many people to credit and thank, but I can't not mention Adam Paszke, Sam Gross, Greg Chanan, Joe Spisak, Alban Desmaison, Edward Yang, Richard Zou, Tongzhou Wang, Francisco Massa, Luca Antiga, Andreas Köpf, Zach DeVito, Zeming Lin, Adam Lerer, Howard Mansell and Natalia Gimelshein. And Schrep. They made the launch happen. And so many more people became centrally important later: Lu Fang, Xiaodong Wang, Junjie Bai, Nikita Shulga, Horace He, Mark Saroufim, Jason Ansel, Dmytro Dzhulgakov, Yangqing Jia, Geeta Chauhan, Will Constable, Briah Hirsh, Jane Xu, Mario Lezcano, Piotr Balecki, Yinghai Lu, Less Wright, Andrew Tulloch, Bruce Lin, Woo Kim, Helen Suk, Chris Gottbrath, Peng Wu, Joe Isaacson, Eli Uriegas, Tristan Rice, Yanan Cao, Elias Ellison, Animesh Jain, Peter Noordhuis, Tianyu Liu, Yifu Wang, Lin Qiao and hundreds more. It’s criminal of me to not take the space to list out everyone else I should be mentioning here. PyTorch is nothing without its people ❤️. The most joyful moments of building PyTorch was meeting users eager to share their happiness, love and feedback. I remember a grad student coming to me at Neurips 2017, in a slurring emotional voice he said he’d been trying to make progress on his research for 3 years but within 3 months of using PyTorch he made so much progress that he was ready to graduate. That moment made it tangible that what we do matters, a lot, to a lot of people, even if you don't constantly hear from them. I do miss the intimacy of the PyTorch community, with a 300 person conference that felt like an extended family gathering, but I feel that’s a small price to pay considering the scale of impact PyTorch is truly having today – yes the Conference is now 3,000 people where market-moving deals get brokered, but it’s helping orders of magnitude more people to do their best AI work. I miss the intimacy, but I'm proud of that growth. --- To Mark Zuckerberg and Mike Schroepfer, who believed that open-sourcing is fundamentally important and is a sound business strategy. This is so hard to understand for most people within the course of business, but we’ve run lock-step on this strategy without ever having to discuss it. Without you two, neither FAIR nor PyTorch would’ve happened. And those mean so much to me. To Yann LeCun and Rob Fergus, for building the magical early FAIR that I so revere. To Aparna Ramani, a leader that I find so rare at Meta in her ability to hold a really high bar for the org, technically brilliant with the span to discuss deep infra systems and industry-strategy within the same conversation and for being an absolute execution-machine! I’ve learned so much from you. To Santosh, Kaushik, Delia, Oldham and Ben for being so welcoming to Infra. For someone coming over from FAIR with a wildly different culture, you all made me feel at home and made me part of the family, and thank you for that. To all my managers who've championed me through the PSC video game – Serkan, Howard, Jerome, Abhijit, Yoram, Joelle, Aparna and Damien – I owe you a lifetime of drinks. --- Signing off for now. —Soumith
1
1
79
15,007
I finally did this "harsh/hands-on intro/tips to deep learning" blog post: snippyhollow.github.io/blog/… #deeplearning #machinelearning
2
35
73
The CfP for our Video Games and Machine Learning workshop at ICML2017 has arrived syhw.github.io/vgml_workshop… (cc @togelius @OriolVinyalsML)
42
69
We open sourced TorchCraftAI, a modular bot framework for StarCraft: Brood War AI research facebook.com/notes/gabriel-s…
3
25
68
Algorithmic progress is faster than hardware progress. arxiv.org/abs/2403.05812
1
14
70
8,329
- I don’t believe in AI extinction scenarios (more worried by climate change), - I believe we have agency on any AI development, - I think the best way to do so is through open source AI platforms, that provide democratic access.
The heretofore silent majority of AI scientists and engineers who - do not believe in AI extinction scenarios or - believe we have agency in making AI powerful, reliable, and safe and - think the best way to do so is through open source AI platforms NEED TO SPEAK UP !
1
63
16,148
Come to the next ParisAI meetup! Happy to chat about codegen and LLMs!
Join us for our next meetup on Tues 5 March, feat. talks on research and applications of AI technology from @instadeepai @GoogleDeepMind @ScientaLab @Meta Register/more information--> paris.ai
1
9
59
41,929
Slides for my "Introduction to (Deep) RL", a bad attempt at going from zero to implementing A2C in 1h30. pdf: dropbox.com/s/nx0gpb01thqi0r… pptx: dropbox.com/s/ivgqivgxnoyk7t…
10
58
Come see poster 128 at #NeurIPS2018 (upstairs poster room)!
4
49
Our poster is ready at the deep RL workshop at #nips2016 come see us 5:30pm onwards 😊
11
43
"Open Source AI is the Path Forward" llama.meta.com/
9
43
4,423
And beyond just code completion and code generation, it can help you finding bugs or pair program in general.
3
10
40
65,141
Growing Action Spaces, a "curriculum" that is always available (no need to modify the environment), from @greg_far and team!
Progressively growing the action space creates a great curriculum for learning agents -- check out our paper: arxiv.org/abs/1906.12266 + code: github.com/TorchCraft/TorchC…. Great working with Laura Gustafson @ebetica @shimon8282 Nicolas Usunier @syhw
8
40
We (with @ebetica and the team) are publishing "Forward Modeling for Partial Observation Strategy Games – A StarCraft Defogger" at NeurIPS 2018, here is a 3min video piped.video/watch?v=L1uHMAW6… Come talk to us at poster #128 on Wednesday morning, paper link: papers.nips.cc/paper/8272-fo…
10
41
The front cover of the MacTeX manual aims at producing panic attacks in graphic designers...
1
2
34
Faiss: A library for efficient similarity search and clustering of dense vectors. github.com/facebookresearch/… CPU and GPU large kNN SOTA!
2
17
34
We just moved back to France from NYC to be closer to family, but my heart is with America today: I wish you the best, and hope for a big blue wave.
1
35
Before enlightenment: add layers, train longer. After enlightenment: add layers, train longer.
1
37
4,271
Replying to @giffmana
Thanks Lucas. Yeah and we're not saying we're there yet, we've just opened this research direction. I'd say we're at the first "CoT" paper, "o1" still to be discovered.
2
37
1,284
Dream team
Replying to @kyutai_labs
Our founding team is covering many AI fields from vision, with Patrick Pérez and Hervé Jégou (@hjegou) to LLMs with Edouard Grave (@EXGRV), audio with Neil Zeghidour (@neilzegh) and Alexandre Défossez (@honualx) and infra with Laurent Mazaré (@lmazare).
2
1
35
3,912
Playing StarCraft for the first time in ages with my teenager-years team, we're 2% of the EU players online on BNet :-D
6
34
5,096
Then I asked it to generate "Swinged folk balad about the happy times of a paper release. 4/4 drums that are not too loud" with this audio conditioning. All first tries, no cheating!
3
2
34
6,409
Practical Black-Box Attacks against Deep Learning Systems using Adversarial Examples arxiv.org/abs/1602.02697
2
21
34
Dermatologist-level classification of skin cancer with deep neural networks (the paper:) nature.com/articles/nature21…
30
31
Here are some fun things we did with it: > I have a pandas dataframe with the columns "decoding", "Capabilities", "Fine-tuning", "Model size", "HE pass@1", "MBPP pass@1". I want a seaborn figure with two scatterplots side-by-side. [...]
2
5
31
49,376
"A Structured Prediction Approach for Generalization in Cooperative Multi-Agent Reinforcement Learning" by @alcinos26 et al. is going to be presented at NeurIPS next week, come talk to us! ai.facebook.com/blog/using-m…
11
32
The ICLR 2020 call for workshops is online, workshops will take place on April 26th, 2020, in Addis Ababa, Ethiopia iclr.cc/Conferences/2020/Cal…
9
28
Our poster is up at ICLR in C30 (first floor) 😊
1
6
29
Gonna be at NeurIPS starting tomorrow afternoon. See you there, in particular if you want to talk about codegen and (post-)LLM research!
1
1
30
3,166
piped.video/watch?v=lowvJWnX… piped.video/watch?v=xCE0xO1Y… by @NimOne510 @BigDaddyCh0p We're just at the beginning, we had lil' data But A.I. ain't replacing artists anytime A.I. ain't those guys creativity I tell ya They even turn A.I. brain farts into arts h/t @Thom_Wolf for the link
2
5
28
9,331
Replying to @awnihannun
Awesome!! Congrats to the whole team 😊
7
2,850
We showed Code Llama can be easily fine-tuned to SOTA (e.g. on MBPP below), so we hope it'd be a good foundation model for code. It's also state-of-the-art for multiple languages. There is already a nice thread by @b_roziere with some more details
Today, we release CodeLlama, a collection of base and instruct-finetuned models with 7B, 13B and 34B parameters. For coding tasks, CodeLlama 7B is competitive with Llama 2 70B and CodeLlama 34B is state-of-the-art among open models. Paper and weights: ai.meta.com/research/publica…
1
6
27
5,252
"Free jazz with electronic saxophone played by somebody who enjoys counterpoint"
2
2
23
9,718
An hommage thread!
2
1
27
5,321
How do I debug my neural nets? I plot gradients and updates over epochs (time), as a video piped.video/watch?v=Fj_0R1Yn…
2
15
25
Improving Monte Carlo Tree Search Policies in StarCraft via Probabilistic Models Learned from Replay Data nova.wolfwork.com/papers/aii…
1
5
24
"in Go, [...] pattern macthing algos are not yet at the strategical level of human players" 2012,my thesis aged fast emotion.inrialpes.fr/people/…
1
3
23
"Autograd for Torch" has arrived blog.twitter.com/2015/autogr… Thanks to the people from Twitter Cortex!
1
15
24
For my ASR twitter, interested in a single multi-modal code-switching model? @lorenlugosch made a good thread about the models release of his internship's work nitter.app/lorenlugosch/status/15… As he puts it: "Death To Tokenizers!", just forward() this model on whatever speech you have...
We're releasing an open-source massively multilingual speech recognizer! Repo (+ colab notebook): github.com/flashlight/wav2le… It's a 1-billion-parameter CTC transformer. This is a very cool model, for a few reasons:
2
2
24