Scott Newcomer (@puekey) header
Scott Newcomer (@puekey) profile picture

ekki hugsa

Wisconsin
Joined October 2014
Photo by Scott Newcomer (@puekey)Photo by Scott Newcomer (@puekey)Photo by Scott Newcomer (@puekey)Photo by Scott Newcomer (@puekey)Photo by Scott Newcomer (@puekey)Photo by Scott Newcomer (@puekey)Photo by Scott Newcomer (@puekey)Photo by Scott Newcomer (@puekey)Photo by Scott Newcomer (@puekey)Photo by Scott Newcomer (@puekey)
Scott Newcomer retweeted
JACKSON CHOURIO WINS IT. PANDEMONIUM IN MILWAUKEE.
224
2,846
571
13,075
1,602,829
IMO the most reasonable high level model one can have of the AI behemoths is still a brute-force stochastic search in token space where the sampling is biased to mimic mathematician writing that eventually hit target. 1/3
Terence Tao: The math behind today’s LLMs is actually simple. Training and running them mostly uses linear algebra, matrix multiplication, and a bit of calculus, material an undergraduate can handle. We understand how to build and operate these models. The real mystery is why they work so well on some tasks and fail on others, and why we cannot predict that in advance. We lack good rules for forecasting performance across tasks, so progress is largely empirical. A key reason is the nature of real-world data. Pure noise is well understood, perfectly structured data is well understood, but natural text sits in between, partly structured and partly random. Mathematics for that middle regime is thin, similar to how physics struggles at meso-scales between atoms and continua. Because of this gap, we can describe the mechanisms but cannot yet explain capability jumps or give reliable task-level predictions. That mismatch, simple machinery versus hard-to-predict behavior, is the core puzzle. ---- Video from Prof @Briankeating YT Channel (Link in comment)
40
59
7
917
144,244
Scott Newcomer retweeted
"The pursuit of excellence does not need justification." 🎯
Mind boggling to me that I can make a thing faster and there's always people that ask "but why?" What kind of mentality is that? The pursuit of excellence does not need justification. Also, I find in so many cases, we can't know the impact of an improvement until we do it. For example, one I've talked about before: Ghostty's high IO throughput has enabled terminal program (emulator and TUI) fuzzing at a speed thats incomparably fast to prior solutions. This has resulted in upstream patches to resolve issues in popular projects like btop, tmux, and more. Speed enabled that anecdotally example that lifted the tides of adjacent communities that don't rely on Ghostty technology at all. I didn't predict this. Make things better because they can be better and let the results naturally play out.
31
199
12
3,084
161,732
Scott Newcomer retweeted
I've got an agent in a loop optimizing a renderer with the goal to minimize frame times (and tests to measure). It got times down from 88ms to 2ms and allocations down from ~150K to 500. Sounds good, right? Wrong. This is exactly why agent psychosis is a big fucking problem. As an experiment, I rewrote the Ghostty core render state in Go, with access to identically laid out data structures as Ghostty and the exact same validation tests. I made a purposely naive renderer (simple, correct, but slow). 88ms per frame with 150,000 allocations (horrendous, lol)! I then kickstarted a Ralph loop to bring the frame times down. I told it it can't modify input data structures or the public API or tests (they're correct), but it can do anything else it wants. It got to work. It has worked for about 4 hours. I've spent around $350 on this experiment so far. The results? 88ms => 1.5ms 150K allocs => ~500 allocs Incredible right? Nope. My hand-written renderer I ported has frame times (same benchmark) of ~20us (0.020ms) and 0 allocations in the update path. This is the problem with psychosis and lacking systems understanding. If you don't understand the system, you're going to accept that this is an incredible result. If you understand the system, you'll see better solutions immediately and can do roughly 75x better on throughput. The people who blindly trust agent output are in the former camp. They're sheeple, overdrinking from a fountain of mediocrity. Standard disclaimer: I use AI all the time. I like AI. The point I'm making is to not blindly accept results. Think. Analyze. Learn.
333
1,182
265
10,610
1,000,935
Scott Newcomer retweeted
Clarity of thought is the only real way to be a 10x developer.
29
11
2
160
8,079
Scott Newcomer retweeted
the problem with most sales folks is you feed them more slides in the hope it aids in the deficit of their storytelling ability storytelling is what is felt - it’s the energy, reading the room, confidence, is the ‘vision casting’ — it’s the art it’s what Founders do the best sales reps are not founders, but they should be able to cosplay one at highest level this is why knowing when to bring in the founder is so, so critical too
15
11
3
151
14,575
Scott Newcomer retweeted
This is complete nonsense. AI isn’t writing most of the code. This is something only non-coders believe. If AI were writing most of the code, why would it matter that senior engineers have their heads in the sand? (which they don’t)
Hearing from a lot of good founders that AI tools are writing most of their code now. Software engineers orchestrate the AI. They are also finding it extremely hard to hire because most experienced engineers have their heads in the sand and refuse to learn the latest tools.
54
21
21
551
137,665
Scott Newcomer retweeted
Number of founders who had problems with marketing before inventing AI: 100% with AI: 100%
90
19
6
329
14,394
Most marketers I interview, regardless of level, tell me: “I want to do strategy.” Sometimes I ask what they mean but most times I don’t and just pass on them. I only want to hire builders bc shipping is the strategy. Ship quickly and do it with taste. Stop focusing on the work around the work my friends.
2
1
12
1,446
JUST IN: The US now has more unemployed people than job openings for the first time since April 2021
1,778
8,100
2,675
73,945
27,035,838
Scott Newcomer retweeted
The Neural Tangent Kernel (NTK) is a useful tool to understand convergence and generalization in deep learning. To understand the NTK, you must first know about Gradient Flow. This blog with @BorealisAI comes complete with Python code. Feedback welcome!
📣 NEW RESEARCH BLOG: Gradient Flow by @SimonPrinceAI is out now! This blog is the first in a series in which we consider machine learning from four different viewpoints. Delve into part I of this blog series ➡️: bit.ly/3vXRmeg
2
20
1
114
17,001
Scott Newcomer retweeted
If you know why our Christmas tree is decorated like this, then I’ll listen to your time management hacks.
109
14
4
386
109,228
An explanation on how we add models to Bumblebee (@toranb asked on EEF slack and I thought it would be a good write up here). The first thing to note is that almost all of the models have significant overlap in implementation details. A transformer is a transformer. There are different "families" of transformers, and slight implementation differences, but the high-level details are the same. That means it's really easy to abstract out most of the implementation details into generic functions. Jonatan did a really good job of pulling the generic details out into helper functions for us in Bumblebee, so implementing new models is just a matter of determining which variations a particular model uses. e.g. Does the model use rotary embeddings? Do they used Grouped Query Attention? Is it encoder-decoder or decoder-only? The actual process of adding a model is essentially 4 steps: 1. First we create a mapping for the model here: github.com/elixir-nx/bumbleb… This is where we tell Bumblebee how to map model names in HuggingFace's config.json to an actual Bumblebee module. Each model family has it's own module, and within that module we implement different model function heads for the different types of models. You can see this if you look at Llama for example: github.com/elixir-nx/bumbleb… We match on the model architecture (e.g. base, causal language modeling, and sequence classification) and then for each architecture we have an implementation. You'll notice here that each implementation shares a `core` implementation which is the meat of the model. If you look at the HuggingFace implementation, `core` is identical to their base model implementation, and then each architectural variation is just a different head on top of the base model. 2. The next step is to map the configuration to the HuggingFace configuration. We slightly alter their configuration names for consistency, but it's as easy as looking at the model config (e.g. LlamaConfig), defining the options in the module like so: github.com/elixir-nx/bumbleb… Defining a struct for the module with those options (each model is a struct with model configuration): github.com/elixir-nx/bumbleb… And then implementing the configuration conversion: github.com/elixir-nx/bumbleb… The conversion is necessary because we have slight variations in config names so this is a normalization step. The conversion defines a mapping from HF config name to Bumblebee config option. 3. The next step is to actually implement the Axon version of the model given the model "spec" or configuration. For most models, you can base your implementation off of another model implementation already in the repository and just change some minor details. The implementations map more or less directly to the PyTorch implementation in the HuggingFace repo. Each PyTorch module (class) is analogous to a function in Bumblebee. If we look at Llama, you'll see the base model or "core" has an embedder, a decoder, and then applies normalization on the output: github.com/elixir-nx/bumbleb… This is a common pattern with decoder-only transformers. The bulk of the model is the "decoder", which actually just consists of some number of transformer "blocks" as we call them, given by the model configuration: github.com/elixir-nx/bumbleb… This "blocks" function just implements the repeated application of transformer layers or blocks defined here: github.com/elixir-nx/bumbleb… Which itself applies the actual multi-head attention, the feed-forward network, normalization, etc. Most of your work for a new model will actually be just determining the right configuration for the transformer blocks. You can control things like what type of normalization to apply (e.g. regular layer normalization or RMS norm), what the FFN should look like in the block, should normalization be applied before or after each group of layers, whether or not to use rotary embedding, etc. The transformer blocks implement most of the variants you'll find in transformer models, so you shouldn't ever really have to mess with the actual block implementations. 4. The final step is to define the parameter mapping. This is how we map PyTorch parameters to Axon parameters. It's pretty simple, you just take the Axon parameter names, and define how they should map to PyTorch parameter names in the PyTorch model. During conversion, Bumblebee will use this mapping to convert the parameter map into something the Axon model can use. As for testing implementations, we typically look at the HuggingFace examples for a model and check our implementation outputs match those example outputs. If they don't, I usually debug intermediate outputs using Axon hooks. That's pretty much it! I'm happy to help anybody add new models to Bumblebee. We're missing a lot from the HF repo - a lot of which should be trivial to add - so we could use the help!
2
16
1
91
9,864
I just uploaded a 90 minute tutorial, which is designed to be the one place I point coders at when they ask "hey, tell me everything I need to know about LLMs!" It starts at the basics: the 3-step pre-training / fine-tuning / classifier ULMFiT approach used in all modern LLMs.
73
1,068
66
6,207
958,582
Scott Newcomer retweeted
it’s AI if you need money for GPUs, it’s ML if you need money for K8s
6
14
1
182
16,575
Scott Newcomer retweeted
Promising. Everyone should hope that we can throw away tokenization in LLMs. Doing so naively creates (byte-level) sequences that are too long, so the devil is in the details. Tokenization means that LLMs are not actually fully end-to-end. There is a whole separate stage with its own training and inference, and additional libraries. It complicates the ingest of additional modalities. Tokenization also has many subtle sharp edges. Few examples: That "trailing whitespace" error you've potentially seen in Playground? If you end your (text completion API) prompt with space you are surprisingly creating a big domain gap, a likely source of many bugs: blog.scottlogic.com/2021/08/… Tokenization is why GPTs are bad at a number of very simple spelling / character manipulation tasks, e.g.: xitter.gq/npew/status/1525… Tokenization creates attack surfaces, e.g. SolidGoldMagikarp, where some tokens are much more common during the training of tokenizer than they are during the training of the GPT, feeding unoptimized activations into processing at test time: lesswrong.com/posts/aPeJE8bS… The list goes on, TLDR everyone should hope that tokenization could be thrown away. Maybe even more importantly, we may find general-purpose strategies for multi-scale training in the process.
MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformers abs: arxiv.org/abs/2305.07185 paper page: huggingface.co/papers/2305.0…
84
561
75
3,762
1,500,986
I don't talk much about this - I obtained one of the first FDA approvals in ML + radiology and it informs much of how I think about AI systems and their impact on the world. If you're a pure technologist, you should read the following: There's so much to unpack for both why Geoff was wrong, and why his future predictions should not be taken seriously either. Geoff made a classic error that technologists often make, which is to observe a particular behavior (identifying some subset of radiology scans correctly) against some task (identifying hemorrhage on CT head scans correctly), and then to extrapolate based on that task alone. The reality is that reducing any job, especially a wildly complex job that requires a decade of training, to a handful of tasks is quite absurd. Here's a bunch of stuff you wouldn't know about radiologists unless you built an AI company WITH them instead of opining about their job disappearing from an ivory tower. (1) Radiologists are NOT performing 2d pattern recognition - they have a 3d world model of the brain and its physical dynamics in their head. The motion and behavior of their brain to various traumas informs their prediction of hemorrhage determination. (2) Radiologists have a whole host of grounded models to make determinations, and actually, one of the most important first order determination they make is whether there is anything notably wrong with a brain structure that "feels" off. As a result, classifiers aren’t actually performing the same task even as radiologists. (3) Radiologists, because they have a grounded brain model, only need to see a single example of a rare and obscure condition to both remember it and identify it in the future. This long tail of rare conditions to avoid missing is a large part of their training, and no one has any clue how to make a model that acts similar in this way. (4) There’s so many ways to make Radiologist lives easier instead of just replacing them, it doesn’t even make sense to try. I interviewed and hired 25 radiologists, whose primary and chief complaint was that they had to reboot their computers several times a day. (5) A large part of the radiologist job is communicating their findings with physicians, so if you are thinking about automating them away you also need to understand the complex interactions between them and different clinics, which often are unique. (6) Every hospital is a snowflake, data is held under lock and key, so your algorithm might not work in a bunch of hospitals. Worse, the imagenet datasets have such wildly different feature sets they don’t do much for pretraining for you. (7) Have you ever tried to make anything in healthcare? The entire system is optimized to avoid introducing any harm to patients - explaining the ramifications of that would take an entire book, but suffice to say even if you had an algorithm that could automate away radiologists I don’t even know if you could create a viable adoption strategy in the US regulatory environment. (8) The reality is that for every application, the amount of specific and UNKNOWABLE domain knowledge is immense. LONG STORY SHORT: thinkers have a pattern where they are so divorced from implementation details that applications seem trivial, when in reality, the small details are exactly where value accrues. Should you be worried about GPT5 being used to automate vulnerability detection on websites before they’re patched? Maybe. Should you be worried GPT5 is going to interact with SOCIAL systems and destroy our society single-handedly? No absolutely not.
This must be said and repeated. Yes, Geoff was totally wrong to predict a drop in radiologist positions. We knew that it was wrong when he said it. We have data now.
84
549
178
2,631
1,614,069
Scott Newcomer retweeted
Sean Moriarity, author of "Genetic Algorithms in Elixir" and creator of the Axon Library, joins the Wizards to discuss Elixir's role in the future of #MachineLearning, #AI, deep learning, and neural networks 🤖 Listen here: smr.tl/45sytgu #myelixirstatus #elixirlang
2
4
1
15
7,638
Scott Newcomer retweeted
not all clever code is bad, not all simple code is good
43
9
3
408
36,722
Scott Newcomer retweeted
Lowering barriers to entry has always resulted in a huge boost in terms of productivity and the availability of products and services. We are still in the early days of the transformative power of AI.
Perhaps one of the most profound impacts of the current AI boom is the number of new developers it will create. 📈 People are realizing just how powerful this technology is and want skin in the game. If you know someone that is learning to code, please encourage them!
1
2
24
6,407