Bert Maher (@tensorbert) profile picture

I’m a software engineer building high-performance kernels and compilers at Anthropic! Previously at Facebook/Meta (PyTorch, HHVM, ReDex)

Joined December 2022
Photo by Bert Maher (@tensorbert)Photo by Bert Maher (@tensorbert)Photo by Bert Maher (@tensorbert)Photo by Bert Maher (@tensorbert)Photo by Bert Maher (@tensorbert)Photo by Bert Maher (@tensorbert)Photo by Bert Maher (@tensorbert)Photo by Bert Maher (@tensorbert)Photo by Bert Maher (@tensorbert)Photo by Bert Maher (@tensorbert)
Bert Maher retweeted
I am a proud American, and I’m proud to work at Anthropic. Labeling Claude a supply chain risk will only harm America’s lead in AI. It’s not un-American to support AI guardrails that protect our civil liberties.
138
194
7
2,552
44,704
Bert Maher retweeted
Replying to @fermatslibrary
One of the most common flaws of math textbooks is that they present only the logic, without the intuition. They give you the later, cleaned up version of the idea, which hides the way it was discovered.
121
238
40
2,936
137,524
Bert Maher retweeted
Introducing Claude Sonnet 4.5—the best coding model in the world. It's the strongest model for building complex agents. It's the best model at using computers. And it shows substantial gains on tests of reasoning and math.
1,099
3,033
2,047
19,675
5,053,499
TIL, RIP Triton, killed by inability to have good Blackwell performance
17
10
10
370
155,655
TIL, RIP Triton, killed by inability to have good Blackwell performance
5
4
80
7,799
The most important skill for a researcher is not technical ability. It's taste. The ability to identify interesting and tractable problems, and recognize important ideas when they show up. This can't be taught directly. It's cultivated through curiosity and broad reading.
97
498
64
3,674
211,347
Bert Maher retweeted
6
20
3
309
52,400
Live, from the Cadillac Lounge, is a new vacation blog post!
5
15
2
150
13,598
I was talking to @tensorbert about why so many Chinese talent on AI especially on the engineering side. It’s because of a deep engineering / implementation/ optimization culture in the STEM education system that favors incrementally a lot more than innovation. DeepSeek was an outlier (its founder was heavily influenced by Renaissance)
1
1
6
3,514
Bert Maher retweeted
getting a phd is mostly about developing a system for maximizing the time you spend in flow state, over several years
37
100
9
1,702
97,710
This is hilarious, the random activation function I made up for this talk because it demonstrated fusion well is actually useful 😂
1
1
2
739
Prompted by investigations by Boyue Li and @tensorbert, I reduced the kernel launch latency of the open-source compiler github.com/openai/triton by a factor of 7 yesterday, from 105μs to 15μs. Admiral Grace Hopper explains the importance of microseconds in youtu.be/9eyFDBPk4Yw
3
2
18
2,380
Bert Maher retweeted
Happy New Years Everybody! 🥳 One year ago today, I had: - Never trained any model - Did not know the first thing about AI - Never worked in Tech - Had 8 followers on twitter? (probably) One year later and here I am! Met many of my heroes and legends in tech and worked with hundreds of amazingly talented and influential people, went on some amazing trips to SF and NeurIPS and met so many of you, worked at three tech co's, built Nous Research with @theemozilla @karan4d and Shivani, made several of the worlds SOTA OS models, became a pro data engineer, got cited in at least 14 papers, and so much more! Imagine where we'll be in a year from now, I'm optimistic I'll be able to continue contributing to the Open Source future!
196
102
56
2,066
366,564
Ok I’m at NeurIPs to talk about our in person competition workshop on LLM efficiency on Friday Dec 15 between 1:30 - 4:30 pm CST Competitors had to fine tune 1 LLM in 1 day on 1 GPU and the reception was incredible. This was one of the most popular ML competitions of the year. If you’re interested in the foundations of eval and fine-tuning come learn from the best @jeremyphoward @rasbt and most importantly which techniques actually worked from the winners themselves! Stacked lineup -> neurips.cc/virtual/2023/comp…
1
21
3
94
80,929
Replying to @MistralAI
@MistralAI model is hot: with mixture-of-experts, like GPT-4! It promises faster speed and lower cost than model of the same size and quality Fascinatingly, the speed-up is unevenly distributed: running on a laptop or the biggest GPU server benefit the most. Here’s why 🧵 1/7
7
88
19
478
127,630
Bert Maher retweeted
Language is an imperfect, incomplete, and low-bandwidth serialization protocol for the internal data structures we call thoughts.
177
858
207
5,007
Today we announced Flash-Decoding 🚀- a better way to run the LLM attention during decoding. It can be up to 60x faster than Flash-Attention v2, and enables scaling to sequence lengths of 64k+! This is a common work with @tri_dao , @fvsmassa and Grigory Sizov (1/n)
8
104
4
663
115,760
Bert Maher retweeted
In past companies, contributing to LLVM, there was a huge quality-gap between internal LLVM-code and LLVM public one. As an engineer, OSS code reviews were protecting me against skewed short-term internal incentives and manager pushing for "just land it as-is and improve later".
The work of making a open-source library usable and popular also improves the quality of the code (specifically the API) in ways that help its users move faster. Internal-only code tends to accumulate “glop” because people have no choice but to use it.
1
6
53
9,139
Bert Maher retweeted
There's a huge opportunity to use ML to replace hand-written heuristics in compilers. Want to try? Check out this @kaggle contest organized by Ashley Chow, Bryan Perozzi, HCL-Jevster, inversion, Mangpo Phothilimthana, and Sami Abu-El-Haija! kaggle.com/competitions/pred…
8
73
12
468
127,476
Speculative execution for LLMs is an excellent inference-time optimization. It hinges on the following unintuitive observation: forwarding an LLM on a single input token takes about as much time as forwarding an LLM on K input tokens in a batch (for larger K than you might think). This unintuitive fact is because sampling is heavily memory bound: most of the "work" is not doing compute, it is reading in the weights of the transformer from VRAM into on-chip cache for processing. So if you're going to do all that work of reading in all those weights, you might as well apply them to a whole batch of input vectors. I went into more detail in an earlier thread: teapaw.org/karpathy/status/… The reason we can't naively use this fact to sample in chunks of K tokens at a time is that every N-th token depends on what token we sample at time at step N-1. There is a serial dependency, so the baseline implementation just goes one by one left to right. Now the clever idea is to use a small and cheap draft model to first generate a candidate sequence of K tokens - a "draft". Then we feed all of these together through the big model in a batch. This is almost as fast as feeding in just one token, per the above. Then we go from left to right over the logits predicted by the model and sample tokens. Any sample that agrees with the draft allows us to immediately skip forward to the next token. If there is a disagreement then we throw the draft away and eat the cost of doing some throwaway work (sampling the draft and the forward passing for all the later tokens). The reason this works in practice is that most of the time the draft tokens get accepted, because they are easy, so even a much smaller draft model gets them. As these easy tokens get accepted, we skip through those parts in leaps. The hard tokens where the big model disagrees "fall back" to original speed, but actually a bit slower because of all the extra work. So TLDR: this one weird trick works because LLMs are memory bound at inference time, in the "batch size 1" setting of sampling a single sequence of interest, that a large fraction of "local LLM" use cases fall into. And because most tokens are "easy". References arxiv.org/abs/2302.01318 arxiv.org/abs/1811.03115 arxiv.org/abs/2211.17192
Full F16 precision 34B Code Llama at >20 t/s on M2 Ultra
100
584
104
3,730
812,725