Sudo Sunday #2: Compile the Model
A lot of the LLM calls running in production are basically the same call. Same kinds of inputs and decisions over and over. So if part of what the model does is predictable, why not write that part as code and only call the model when you actually need it?
Cheng Lou’s Handwired got us thinking about this. It compiles JavaScript into a neural net with no training at all, which makes the line between code and weights look a lot blurrier than we assumed. We want to try going the other direction.
Stuff we want to chat about over coffee:
Is it even worth it? Cheaper, faster, more predictable, easier to debug, sure. But when does it stop paying off?
How do you decide, query by query, whether code can handle it or the model has to? Confidence thresholds, a learned router, fallbacks? And what does a wrong route cost you?
How do you actually build it? Have the LLM write the programs, cache its decisions, distill everything into rules?
Once the data drifts, how do you keep the generated code from quietly going wrong?
If you’ve tried something like this (whether it worked or not!), bring it and we’ll throw it up on the screen. Strong opinions also welcome.
Sunday morning at our office on 2nd St. Coffee’s on us. sudo in.