Sergey Serebryakov (@megaserg) header
Sergey Serebryakov (@megaserg) profile picture

ML Engineer, AI Infra expert. Ex-@weHRTyou, ex-@Cruise, ex-@Tesla, ex-@Twitter, ex-RocketFuel, ex-@JetBrains, ex-@Facebook, ex-@Google. mostly puns

London, United Kingdom
Joined April 2010
Photo by Sergey Serebryakov (@megaserg)Photo by Sergey Serebryakov (@megaserg)Photo by Sergey Serebryakov (@megaserg)Photo by Sergey Serebryakov (@megaserg)Photo by Sergey Serebryakov (@megaserg)Photo by Sergey Serebryakov (@megaserg)Photo by Sergey Serebryakov (@megaserg)Photo by Sergey Serebryakov (@megaserg)Photo by Sergey Serebryakov (@megaserg)
"the mechanism is outside the scope of this report" This mechanism is block-routed top-k, k=16K. Internal name: DBSA (presumably "dynamic block sparse attention").
Here is the technical report on SubQ 1.1 Small. subq.ai/subq-1-1-small-techn… This is the second iteration on our Subquadratic Sparse Attention (SSA) model, and the first to be deployed with design partners in the coming weeks. The results are compelling and verified by @AppenResearch. - Near-perfect long-context retrieval up to 12M tokens on the needle-in-a-haystack test, with up to nearly 1,000x attention compute reduction. - A balance of long-context optimization and general reasoning ability, with strong performance retained across knowledge, coding, and non-coding enterprise agent benchmarks. - At 1M tokens, SubQ 1.1 Small requires 64.5x less compute than dense attention and runs 56x faster than FlashAttention-2. These results highlight a significant scaling advantage thanks to the efficiency gains from the SSA architecture. We included some details and learnings from the development process which may be helpful to the community. Comment with questions, I’ll try to respond!
1
209
correct me if I'm wrong, but I don't believe Cunningham's Law is real
1
129
TIL: the Gingerbread Man ≈ Kolobok
1
133
What is Apple thinking? I expected Siri to catch up to ChatGPT/Claude years ago. Meanwhile, on the latest OS, Siri on my Apple Watch can't tell me what temperature chicken should be cooked to
2
2
253
even digits are bouba odd digits are kiki change my mind
1
1
196
.@matroid not sure who this is on your speakers list, but it's not @aelluswamy
2
1
236
I saw the best minds of my generation developing AI to make compulsive short-form videos
4
197
sucks to be limited by the speed of light tbh
1
4
401
Sergey Serebryakov retweeted
How could #AlphaFold 3 transform drug discovery? Most drugs are small molecules known as ligands that bind to proteins to change how they interact in human health and disease. AlphaFold 3 can predict these interactions to atomic accuracy.
7
118
15
438
75,461
There are vast and obvious inefficiencies wherever there was no dedicated optimization effort, and possibly even where there was Also true for organizations
Replying to @karpathy
This post became popular; Few more thoughts / pointers on the topic for the interested reader. Example of the complexity involved: @cHHillee has a great post "Making Deep Learning Go Brrrr From First Principles" horace.io/brrr_intro.html I was always struck by this diagram from this post. Left to right is time. Look at all these functions stacked up vertically that are dispatched until 30 layers deep you get the actual computation (addition in this example). All of this stuff is PyTorch function overhead. In practical settings this overhead becomes narrow in comparison to the actual computation because the arrays we're adding are so large, but still. What is all this stuff? We're just trying to add numbers. Second: startup latency. Open up Python interpreter and try to import the PyTorch library (`import torch`). On my computer this takes about 1.3 seconds. This is just the library import, before you even do anything. In a typical training run you'll end up importing a lot more libraries, so even just starting your training script can often add up to tens of seconds of you just waiting around. A production-grade distributed training run can even add up to minutes. I always found this very frustrating. Computers are *fast* - even a single CPU core (of up to ~dozens on your computer) does billions of operations in one second. What is happening? In llm.c, all this startup latency is ~gone. Right after allocating memory your computer just directly dives into useful computation. I love the feeling of hitting Enter to launch your program, and it just goes. Direct to useful computation on your problem. No waiting. Third thought: LLM as a compiler. It feels likely to me that as LLMs get much better at coding, a lot more code might be written by them, to target to whatever narrow application and deployment environment you care about. In a world where very custom programs are "free", LLMs might end up being a kind of compiler that translates your high level program into an extremely optimized, direct, low-level implementation. Hence my LLM Agent challenge earlier of "take the GPT-2 PyTorch training script, and output llm.c", as one concrete example. Lastly I also wanted to mention that I don't mean to attack PyTorch at all, I love the library and I have used it for many years. And I've worked in Python for much longer. These are a lot more general problems and tradeoffs that are really fun to think through - between flexibility, generality, hackability, security, abstractions overhead, code complexity, speed (latency / throughput), etc. The fun and magic of pareto optimal infrastructure, and of programming computers.
1
650
Do not use NotaryCam. Find a local notary public instead.
1
389
more like NotaryScam amirite
170
Вчера изобрёл: Допингийские игры, Киборгийские игры и Генетийские игры. Ищу инвестора
8
690
You want to build and install an iOS app on your device? Your iOS is too new, an Xcode update is required. To update Xcode, a macOS update is required. This development toolchain is so broken.
1
1
407
Sergey Serebryakov retweeted
spent all this time studying ML and all i got was an addiction to training large models on expensive GPU clusters
5
2
57
8,745
shrinkflation is when your therapist charges you the same price for a 55-minute session
1
6
559
Прокуратура обвинила в организации экскурсии по коллекторам, во время которой погибло восемь человек, Александра Кима — основателю сервиса «Спутник». Ким проходил по делу как свидетель. Его сервис не организует экскурсии vc.ru/legal/806543
1
4
1
10
7,924
In New York, with a high enough wage, your effective income tax starts to equal marginal state tax, by design. Crazy that it's not talked about more! bogleheads.org/forum/viewtop…
2
1
584
And California, when taxing nonresident income, applies tax bracket computed from the total income. Amazing.
1
415
Convinced that if everyone personally filed their taxes by hand, there would be no socialists.
1
1
3
323