(1/3) how to achieve an extremely trivial speedup in nanogpt via a faster optimizer kernel: 🧵
1.30x faster optimizer maps -> 0.16% faster training run
Our work at @novaskyai with @afterquery on integrating SDPO into visual code generation is out!
We explored how targeted feedback, teacher selection, and KL approximations affect sdpo training, with cool findings on stability and efficiency.
Mike was my colleague at Berkeley, and he's been fairly skeptical of deep learning's trajectory for years. Most scientists are skeptics, and it can take a big shock to get someone to consider a possibility that goes against the anchoring effect coded in our DNA.
I too was somewhat of a skeptic until ~6 months ago, and people ask me all the time why I joined Anthropic.
It started in April, when a friend I've known for 20 yrs messaged me saying he'd be in the Bay Area in a week, and he suggested we meet up. I invited him to my house for dinner, and he told me he had just joined Anthropic. He said the models were becoming increasingly more capable, and he believed both that they'd soon be smarter than him and also that all intellectual work would be highly devalued in the near future, and lastly that society was not at all ready for what's coming.
I'd of course heard claims similar to this before, but not from a friend I'd known for this long, and who I trusted, at my dining room table. It was the initial shock needed to destabilize my own anchoring. Also, I've been fortunate to work with and/or mentor many smart people in my life (e.g. Fields medalists, a 4x Putnam Fellow, IOI first place winners, etc.), so I feel pretty calibrated in recognizing very smart people, and this was someone who is definitely very smart and with impressive such credentials. So, it was hard to ignore this friend saying the models would be smarter than even him in particular.
After that dinner, I decided to do an informal survey, calling and meeting up with a lot of my friends who now work on improving model capabilities at these frontier labs. They all agreed with that first friend. These were all people I'd known 10, 15, 20 years, who mentored me, or I mentored them, or we met professionally in academia. These are people I trust, and their beliefs on this topic were consistent.
I then spent a whole lot of time understanding the missions of different companies, and talking to current and former employees and people in leadership. I read Dario's (long) essays and watched videos on YouTube of company leaders being interviewed. Anthropic's stated mission "to ensure that the world safely makes the transition through transformative AI" felt like exactly the right guiding principle to handle such a society-disrupting technology, and everyone I spoke to at the company was very aligned with this mission. It's easily the most mission-focused place I've ever been at, and everyone takes the work extremely seriously and with a profound sense of responsibility.
And now here I am. And being on the inside, the pace of progress has surprised me more than I first imagined. The moment that pure mathematicians are in, to me, is just a microcosm of what I predict a much larger of society will be grappling with in the not too distant future, and I really hope our leaders and the general public internalize sooner than later just how significant a moment we're in.
As AI Timelines keep getting shorter, it seemed increasingly more important to think about The Age of Design we're bringing about.
Some early thoughts, in two short poems:
https://t.co/sztjV4NS2M
Can we break the memory wall for LLM inference via KV cache rematerialization?
🚨 Introducing XQuant, which leverages underutilized compute units to eliminate the memory bottleneck for LLM inference!
• 10–12.5x memory savings vs. FP16
• Near-zero accuracy loss
• Beats state-of-the-art KV quantization🔥
Key insights:
1. KV cache = bottleneck → grows linearly with context length + batch size.
2. Compute >> memory → GPUs offer FLOPs orders of magnitude faster than memory bandwidth.
3. Key idea → don’t store KV, just recompute it. 🧠
Since LLM inference is typically memory-bandwidth bound, compute units are often idle and underutilized. So, we can put this available compute to use without any overhead!
GPU hardware trends show that compute capabilities are scaling much faster than memory bandwidth. Thus, reducing memory operations in exchange for more computation can help speed up LLM inference. The KV cache grows linearly with sequence length and batch size, incurring the majority of memory operations during LLM inference. If we can trade additional computation to circumvent loading and storing the KV cache, we can accelerate inference!
XQuant exploits this hardware trend: 🧵 [1/7]
Paper: https://t.co/qqBAvE09Us
Joint work with: @coleman_hooper1@mjlee_official from @FuriosaAI@HaochengXiUCB@rish2k1 Wonjun Kang from @FuriosaAI@lucamanolache0 Michael Mahoney @KurtKeutzer@amir__gholami