


6 Oct 2026 · 1h 30m · 34 chapters

TypeSafe’s Jev (episode #779) and the idea of “machine-native intelligence”: AI optimized for reliable decisions that software can execute, not for generating human-readable text. The guest argues the current LLM paradigm is mis-optimized for “strings,” creating a gap where demos look sci-fi but routine automation (e.g., customer support actions, underwriting, drive-thrus) remains unreliable.
Diogo Almeida, co-founder and CEO of TypeSafe. Previously at OpenAI for ~4.5 years, working on InstructGPT and RLHF/RLHF-adjacent work that enabled instruction-following assistants.
Written by AI. May contain mistakes.
Discussion on the divide between AI performance in complex vs. simple tasks.
“I'm Sam Sharrington, and this is the TwiML AI podcast.”
Delve into how optimization affects AI performance across different applications.
“I mean, I think part of it comes down to we've got this one tool in modern AI, right?”
A discussion on Sutton's bitter lesson regarding compute versus algorithms in AI.
“Like actually, I think ML people get it the least and people who interact with humans a lot get it the most.”
An exploration of RLHF and its significance in the development of AI.
“It's super interesting to hear you say that.”
Diogo shares his career trajectory, including his time at OpenAI and TypeSafe.
“but the data needs to be gotten from scratch.”
Explore the challenges and misconceptions surrounding AI, particularly in self-driving technology, and the divide between demos and actual reliability.
“You can take whichever of those you want to take first.”
Learn about the origins of Jev and how its development reflects a shift towards optimizing AI for software engineering.
“It's interesting to me that you call out Waymo versus Tesla in part because in the context of this conversation about like bitter lesson pilled, right?”
Dive into the technical distinctions between Jev and traditional classifiers, and understand the unique advantages Jev offers to developers.
“When JEV first came out, like, it seemed like the, it was a very kind of two disparate reactions to JEV and what it represented.”
Explore the innovative approach to AI intelligence and the challenges faced.
“I think people just don't get that they're paying for intelligence.”
Understand the critical need for reliability in AI systems from the developer's perspective.
“I hope that's not as big a deal as people were saying that kind of exactly, because the thing they want is intelligence.”
Discuss the challenges and unexpected learning curves in AI development processes.
“And, you know, people on the street recognize me and they're like, oh, you're the Jeff guy.”
Learn about strategies for improving AI performance through addressing weaknesses.
Get an overview of Jev's functionality and its potential applications.
“So it's a lot of like understanding the capabilities of LMs.”
Delve into the concept of decision models and their relevance in AI.
“like what is this thing look and feel like?”
Examine the process and thought behind the creation of the Jev model.
“What's an example of something that JEV would be good for that's not a decision?”
Learn about the innovative post-training techniques and their implications.
“At the time, fine-tuning existed and people were like, are you just fine-tuning the model on strings?”
Learn about the foundational elements of LLMs and their impact on AI development.
“And a lot of it will follow a la first principles with months of research.”
Discover the limitations of pre-training and alternative approaches to efficiency.
“but I think that all AI companies should be held to that same bar personally.”
Examine the importance of calibrated decisions and the function of RLCD in AI.
“That's the only way I've seen to get to general intelligence so far.”
Discuss how user control and parameter tuning can improve AI applications.
“Like what, like in an academic context, I'd ask about the setting.”
Understand the challenges of calibration and reliability in AI and how they affect performance.
“the most native to engineering controls.”
Discusses the importance of calibration and reliability in AI models.
“It requires like a mode dropping loss in order to make that work, which just completely warps the probabilities.”
Explores the challenges of generalization in AI decision-making workflows.
“The thing is that there's ways to bootstrap calibration and reliability and intelligence from all of that the same way that RLVR bootstraps reasoning, right?”
Engages in a philosophical dialogue on why AI lacks generalization.
“that like we're trying to automate than like just generating text.”
Analyzes the generalization capabilities of ChatGPT and its implications for AGI.
“you know, decisions would be harder to generalize than text is because like, presumably I get enough texts in the world.”
Discusses the challenges AI faces in learning and executing reliable decision-making.
“And I do think that there's some amount of generality native to things.”
Examines the JEV model's early development and its potential in business workflows.
“And now here's where you can correct me.”
Investigates the relationship and innovation potential between models and their harnesses.
“And I think in the case of LLMs, like LLMs were, you know, useful.”
Explore how the structure and intelligence of AI models impact their utility.
“But again, I'm talking about it from the outside.”
Discuss the potential for JEV to enhance automation within agent frameworks.
“want to call them um because those things make a lot of orchestration decisions uh that right now are being driven by text-based models and maybe there's a better way to do that.”
Analyze the trade-offs between agility and reliability in AI-driven decision-making.
“and you're leaving it as an exercise to the listener or for the listener.”
Explore the challenges and decisions between automation and manual work for software engineers.
“not think about reliability but i actually think that there's it's actually a feature to many actual uses.”
Discuss the limitations of LLMs and the importance of designing workflows for greater efficiency.
“So I think that like people just don't think of LLMs as composable and layerable and something that can be the foundation of greater and greater cognitive abstractions because LMs are so unbelievably bad at this.”
Diogo shares his enthusiasm for upcoming AI models and the challenges of company building.
“Actually, if you've seen CloudCode's dynamic workflows, dynamic workflows are super cool.”

Get the gist, explore an idea or ask about something said.
On The TWIML AI Podcast (formerly This Week in Machine Learning & Artificial Intelligence), what are the key points of this episode?
Automatic transcript. May contain errors.
0:00Sam Charrington: Three weeks ago, TypeSafe came out of stealth with JEV, and it quickly became one of the most talked about new models in AI. When it was released, developers split into two camps. Some shrugged and said it was just a classifier. Others saw something fast and cheap and easy to build with. Within days, open source lookalikes were showing up, and even OpenAI has since announced its own response. But according to the person who built it, most of this discussion misses the point. Jev's real advance isn't speed or cost. It's a different idea of what AI should be optimized for. Diogo Almeida is co-founder and CEO of TypeSafe.
0:34Sam Charrington: Before that, he spent four and a half years at OpenAI, where he was part of the team behind InstructGPT and the RLHF work that helped turn language models into the assistants we use today. With Jev, he's now pursuing what he calls machine-native intelligence. Models optimized not for generating strings that people consume, but for making reliable decisions that software can act on. Here's Diogo on the gap he's trying to close. The elevator pitch I use for Jev is just where the f*** is all the automation. I think AI is just so unbelievably smart, yet so unbelievably useless at the kinds of things you'd really expect it to be useful for.
1:12And most people, as far as I can tell, don't really have an answer on why there's like this entire bucket of stuff where AI is not just good, it's like super humanly good, like chat to GPT, deep research, cloud code, and the other bucket of stuff where it's not just bad. It's like so bad that it can't even be used at all, despite having enormous financial incentive.
1:36Sam Charrington: I'm Sam Sharrington, and this is the TwiML AI podcast. For over a decade, I've been exploring the ideas and innovation shaping the future of AI through conversations like this one that help you understand what's real, what's next, and what matters. Let's jump in.
1:58Why can't people use agents for basic data entry and insurance underwriting? And actually, you know, if you go to, oh man, I don't want to be taking stabs at people, but like if you go even to Anthropics website and you try to use their agent, their customer support agent to do anything, it's really great at throwing the FAQ at you, but it is not useful if you want to do something even easier, like changing a credit card. You know, and that I think is a thing that everyone who is AI adjacent at least should have an answer to why that's the case. Kind of curious if you have an answer why there's like such a big divide between, you know, super smart stuff and like super, you know, useless stuff.
2:40Sam Charrington: I mean, I think part of it comes down to we've got this one tool in modern AI, right? It's this kind of token predicting transformer at the core with a bunch of machinery around it that makes it, you know, better and better at producing, you know, producing content, producing words, producing texts. And we're trying to kind of jam that into every place we can. But that's not always the best thing to for every problem. And I suspect that that's probably not too far from your viewpoint on this. A little bit, though. There's so much nuance into it, right? Like, for example, how can this token-spewing transformer solve millennium-price problems in math, but cannot automate accounting, right?
3:29There's a lot of nuance into that, where it really begs some questions that I don't think people in the field are really ready to answer and are very incentivized, at least the AI labs are very incentivized, to not answer that truthfully.
3:41Sam Charrington: Is the implication there that you are ready to answer that question? Yeah, I could if you want. I mean, first of all, everything is just an opinion, right? So I wouldn't say I have proof of that. I would say I have a lot of conviction and I have a lot of evidence. But the way to prove this would be to actually just automate that job. And I'm hoping that Jev is the first step in that direction. So my take on the answer and like the nuance of it is that you get what you optimize for, which is just true of all things ML, kind of true of all things in the world. All things, things. All things, yeah.
4:19Like actually, I think ML people get it the least and people who interact with humans a lot get it the most. So you get what you optimize for. And basically all the string LLMs have been optimized for strings and strings are meant to be consumed by humans or other LLMs. But if you want something like accounting, that's meant to be consumed by a computer, right? Like you have like specific fields and forms and discrete decisions. And it's very different to optimize for strings versus like these discrete decisions. And that, I believe, is the largest explainer of this gap.
4:52Sam Charrington: You know, when you kind of juxtapose Navier-Stokes and accounting, that is like kind of a contrived example that kind of plays directly into the positioning that you've kind of built up around Jeff and like what that's really good at. But I don't think that like AI being good at some things and bad at other things is like this one dimensional, you know, text versus decisions. Like it's a jagged edge and there will need to be, I think a lot of different things or something fundamentally different to smooth out that jagged edge and kind of push that frontier forward. And I'm wondering if you have any thoughts on what that looks like.
5:33Can I actually test the hypothesis about the jagged edge for real quick? Absolutely. Because I feel like that's a fun one to talk about. As an aside, a lot of what we do is really focus on making the model like this robust, like cognitive core that can be plugged into any software and a lot of what we do is really focus on how can we smooth out the jaggedness that is put in via all sorts of like weird processes so but but like to test the hypothesis about the jagged edge existing um have you ever seen chat gpt respond to you rudely or like insulting you for no reason not if i didn't tell it to do that exactly so there's actually so the models are actually reliable at some stuff, right?
6:19They're not just, they're like super duper reliable at some stuff. I would say that jaggedness is not intrinsic to LLMs or AI.
6:28Sam Charrington: You're saying jaggedness is relative to our application of them towards specific problems. Yes. And to our optimization process, right? Like if you optimize super hard in a particular direction, you get certain types of reliability that you lose others because you focused all of your optimization pressure on those things that really matter. Like if you were optimizing for decisions, for example, in a customer service chat, saying to give someone a refund when you shouldn't is from an accuracy perspective, exactly the same as like mashing your face on the keyboard. You know, it's the same 0 % accuracy, but you never get the mashing your face on the keyboard because of the asymmetry in the optimization.
7:13This is what RLHF does, right? Like you use a reward model and the easier it is to punish something, the easier it will be to make sure that doesn't happen at inference time. And you just never get those types of things anymore, even though the pre-trained models could actually get word salad, right? So post-training can make certain types of things reliable. And I don't think people realize how much of an agency that AI practitioners have in setting their menu of desiderata into the model.
7:42Sam Charrington: It's super interesting to hear you say that. And you said that, you know, a few minutes ago as well, that everybody gets that you get what you optimize for, but ML people, but ML is all about optimization inherently. And, you know, all of our gains with language models are, you know, RLHF. And like, you know, we talk about cost functions all the time. Like, how is it that you think that ML people don't get that? I love this. Have you seen my blog post on the bitterest lesson? No, tell me about it. I can just explain it. So there's Sutton's bitter lesson. I'm paraphrasing to be useful for me. So this is not exact, but roughly I'm simplifying.
8:22It's hard to simplify actually good writing, right? So I'm simplifying a bit to be beneficial to my narrative.
8:27Sam Charrington: Everybody else simplifies the bitter lesson. So you might as well too. Yeah, I might as well too. But I just want to emphasize that there's actually nuance to it. But here it is. So it's roughly speaking that compute and scaling matters more than algorithms. And this is bitter because ML people love algorithms. It's always the sexy thing to work on. It's fun. It's cool. This is what they've studied. And it's bitter because, you know, like who wants to do that systemsy stuff and like getting GPUs is hard. And especially in the back in the academia days, you didn't have that much compute. and this birthed like an entire era of scaling pilled ml practitioners for for mixed reasons you know like i actually think that there's pros and cons to being scaling scaling pilled but i believe that data matters a lot more than compute so you actually need data to put the compute on and more important than data is you need the right task so this is the most important thing in all of the ML that we do.
9:27And the right task is kind of the North Star that you get what you optimize for. You know, something like pre-training loss. Pre-training loss is like maybe obvious in hindsight. It was quite a big leap of faith that pre-training loss would lead to such awesome AI stuff. And it was by no means guaranteed. So it's actually a rare few that I think can actually make a new task. And that is the you get what you optimize for part of it. And if I could add like slight nuance to Sutton's take, in the case of games, there's no question what the right task is because that's constrained by the rules. And there's no data for games because you're doing on policy RL such that you get data from compute by like doing rollouts.
10:10So I would guess I would say that in the case of RL games, Sutton's bitter lesson is the equivalent one of what I'm describing.
10:18Sam Charrington: But by extension, in real world application, data is the constrained resource more so than compute. Figure out the direction of the data as well. So I won't talk necessarily about JV and RLCD right now because, you know, it won't be fine. We can. But let's talk about RLHF, right? When we made, there's many definitions of RLHF. There was the original RLHF that Paul Cristiano did to teach robots to backflip. no LLMs involved. There was another RLHF learning to summarize where some people in the OpenAI team, I think Paul also was pivotal for that, taught the models to summarize, like a GPT-2 size model, to summarize text better than humans did.
11:04I'm not sure about that part. And then there's RLHF, which is what everyone refers to now, which is creating the task of instruction following, like teaching the models to chat and follow instructions. So when I refer to RLHF, This is the task that is being done. And before RLHF existed, there was literally no human feedback data on the internet of the shape that we were looking for because we had to create it, right? Like, why would anyone have preferences between two completions from language models that were somewhat on policy? Because that's such a weird thing to have. So it actually took some genius from the team to realize that this is a direction to go down.
11:43And once you have that direction, first off, when you're in the early days of the direction, you are not sure it's the right direction by definition, right? Like it's not yet working. You need like a lot of data compute and algorithms to make it work. And you just have a strong conviction that it's the way to go. But eventually you get the data and all the other stuff, but the data needs to be gotten from scratch. And that eventually becomes something phenomenal in the world. And that tends to be how you get like the gigantic jumps in ML, You know, chat to GPT was a gigantic jump. O1 was a gigantic jump.
12:17And Jev, at least, you know, I don't want to toot my own horn too much, but at least from like a excitement perspective was also a gigantic jump.
12:24Sam Charrington: Let's maybe take a step back because you mentioned RLHF. We spoke the last time 10 years ago, just a month under 10 years ago. It was October 2016. and we were talking about kind of deep learning broadly way before any of this Gen.A.I. stuff. Give us a brief summary of what you've been up to since then. You were at Open.A.I. for some period of time. I was at Google and then I left. I was retired for a while, just trying to like chill out and be happy. Did a lot of weird stuff like very competitive video gaming and improv and stuff. And eventually I realized that actually AI is way more fun than that.
13:08Let me join this weird ass company that has weird ass goals. And that was OpenAI. This is before language models were really a thing. So I got the honor to actually work on a lot of OpenAI's greatest hits. I was there for about four and a half years and worked on a whole bunch of stuff. But really, even when I was working on other things, like I've been obsessed with this question that has led to TypeSafe and Jeff. Like, why is the AI so unbelievably good, yet so useless for the easy work? And that's been, you know, it's still an obsession, if I'm like totally frank. And it will not be done until we see massive, massive transformative automation and software doing absolute sci-fi stuff.
13:58Sam Charrington: is so much so many things in there that I want to pick at like software is doing sci-fi stuff like clearly you're talking to your phone while you're a great example on Twitter guy is talking to Grok and his Tesla asking an agent to build a video like that's pretty sci-fi right software is doing sci-fi stuff and also the other thing to pick at in there is like the easy stuff like The easy stuff isn't necessarily easy, which is why we haven't done it yet. Oh, man. You can take whichever of those you want to take first. I don't believe in running from questions, so I will try to get them both. But actually, I'll just do the first one.
14:39I'll ramble, so I want to focus up on that one. I think a lot of what AI does is super freaking sick. I use coding agents. I don't even code that much anymore, but I use coding agents every day. I use chatbots every day. Holy smokes, would it be a lot harder to run a company without chatbots? But they are.
14:59Sam Charrington: And in case it wasn't obvious with the Tesla example, I didn't say the punchline, which was the car was driving itself at the time. Right? Yeah. Self-driving actually, I think, is a little bit different. And we can talk about the distinction between self-driving. The point was only sci-fi. Oh, cool. I my my argument with sci-fi is especially related to LLMs, which I think tends to be what people mean by AI these days, because it seems to be like the greatest compression of intelligence while having like the least utility. So and also it's quite I wouldn't say it's like universally hated, but there's a lot of dislike for AI, which is tragic.
15:40And I think that we would be remiss as a field to not own up to why that is the case. so there's like a lot of like dark sides to ai too and i could like name a subset of them but i think that that's worth talking about so number one i think self-driving is super duper cool um and also i see self-driving as a ginormous engineering win not necessarily an ai win um i use waymo as like the gold standard here no offense to tesla fans but like they seem to be safer. And also the way they do it is by building like a la software and engineering, like reliable systems that they understand the pieces of that have their own like decomposed abstracted parts and make sure those are like unbelievably good while programming in the behavior of the policies you want such that this can generalize outside of distribution.
16:31So this is super freaking cool, but none of this is happening in AI right now. When in AI, what you tend to get is a lot more let's just make a demo and you know the the my cynical loop here is make a demo raise like a seed or series a say that you're going to make it reliable never end up making that reliable pivot into a human in the loop version of this thing instead of actually automating the task and and it's not i don't hate on them to be clear that is actually the right move to do given the current ai climate because the models are not reliable enough so even you know i try to be as unbiased as I possibly can.
17:11I obviously can't be perfect, but I would like to have like the same type of critical lens to LLM demos as JEV demos. And I, you know, like, I think that a lot of them are super cool, especially when they have sick ideas. And also I can't really vouch for them because they solve work when they actually reliably can be run in the background. And LLMs are extremely not there. I actually don't know of anyone who actually runs an LLM as a separate dependency because you can't get abstraction with an LLM, right? It can just break arbitrarily and the abstraction needs to leak in order to see like, oh, why did you talk about biology?
17:52Oh, I'm sorry, my Claude can't talk about biology. It fell back to another model or something like that. And that is extremely sensible for a first party app, but super nonsensical, in my opinion, for something developers are meant to build on top of. So I think that there's that lack of usefulness I still think is present there despite demos looking like sci-fi because demos will always be significantly ahead of the curve. Opening I have seen has been showing like customer service demos since 2020. I believe that is now roughly six years ago and customer service is still not solved. And maybe because the work is hard as you say, but it really looks a lot easier than Millennium Prize problems in math, because I don't know anyone who could solve a Millennium Prize problem in math.
18:41I feel like I know everyone, but I don't know everyone who could solve customer service, but everyone I know probably could do that job better than an LLM can. Or even drive-thrus. People keep trying and failing to automate drive-thrus, and there's no good answer for that other than maybe drive-thrus are harder than unsolved math.
19:00Sam Charrington: It's interesting to me that you call out Waymo versus Tesla in part because in the context of this conversation about like bitter lesson pilled, right? Because in one sense, like what differentiates Waymo is that they're not taking a bitter lesson pilled, you know, approach to it, whereas Tesla's is more bitter lesson pilled. Like we're gonna, you know, I'm characterizing their approach at a 30 ,000 foot view. But like, we're going to collect a lot of data and throw that into a big model and let it do end to end. Whereas Tesla is, we're going to like classically engineer this thing, break this thing into a lot of different modules, use all the sensors we can to get as much data as we can.
19:44Sam Charrington: I've had conversations with Drago on the podcast about like how they approach it and how it's so fundamentally not like, you know, we're aiming for this end to end single model to rule the entire driving experience. So I want to emphasize that that is just the ML part of it, but I don't think that's the limit of what we should be building. And I'm actually extremely pro software and software engineering. And I actually think that I hope that and I want to do everything I can that Jev will usher in another golden era of software engineering, kind of like with the early internet creative energy of like building crazy things.
20:20and for ML, you need data, you need to focus on the right task, you need compute, you need algorithms, but ML is meant to be one part of a larger system, in my opinion, in general, and ML should be scoped to the part of the system that it can really do well. And in general, the way to get higher reliability is to zoom in, you know? Like, would Waymo be as successful in San Francisco if they tried to do the whole thing end-to-end? Honestly, I would wager not. Like maybe this is going to be better in five years, but in order to like actually ship something now that is useful and reliable and safe, I think you need engineering to study all of these things, study the properties of every single ML component.
21:04And when things break, be able to like debug which part caused it and fix that. And that's very hard to do in a one model rules them all type setting.
21:12Sam Charrington: So where did the idea for Jev come from? Like, was this like, hey, I'm going to set up type safe and I'm running towards this thing that I already knew about. Did it evolve? Did you pivot into it? Like, how did how did it happen? Oh, I'll give you a fun story about this. Some investors, we've been fundraising and some investors have said, wow, that's the greatest pitch we've ever heard. And I told them that is I'm going to avoid cursing. Bull. Bull. That's bull. because I gave the exact same pitch last year and you guys didn't get it. What you guys are reacting to is the product market fit. So I've been saying the same thing for years, which is what I'm now calling machine native intelligence, like optimizing for automation, which is optimizing for machines instead of strings and humans is exactly the same thing I've been talking about.
22:11I did not know it would be in the shape of Jev. Like we've had to get our own multiple breakthroughs to even get as far as we've had. But the North Star has always been, what does AI look like if it's really, really optimized for being useful for software? And Jev is our, you know, initial foray into that and our best guess of like the 80-20 of maximum usefulness.
22:36Sam Charrington: When JEV first came out, like, it seemed like the, it was a very kind of two disparate reactions to JEV and what it represented. You know, one camp of people was like, oh, wow, we've created classifiers. We've created logistic regression. You know, why is everyone excited about this? And there's another camp of people that was, you know, hey, this thing is amazing. like I could do things that I've been trying to do with LLMs for much, much, much cheaper, much, much, much faster.
23:13Sam Charrington: You know, part of my question is like, what do you make of that? But, you know, more specifically, I'd love for you to talk about, you know, in kind of a technical level and with more nuance, like how is JEV different from a classifier? How is it different from an embedded bot embedding model plus a classifier? where OpenAI just came out with their decisioning model, which is like a small model, post-train for decisions. How is it different from that? What makes it and your approach unique? Oof. Man, I don't know where to start there because you've left so many breadcrumbs, so I'm going to just try to...
23:47I'm just going to jam. Eat them all. Hell, I don't eat them all. I'm going to eat the most tasty ones. Okay, so let me start with the tastiest one of them. And I've had this rant a couple of times. I don't know if I can do this rant without cursing, so I'll try to control myself. So classifiers, there's nothing wrong with classifiers. Classifiers are an interface. Like creating classifiers is not an ML innovation. And no one in like 2010 to 2020 was inventing new shapes of classifiers. They were just making classifiers for useful stuff. And classifiers are not like meant to be cool in ML. They are literally the shape of usefulness.
24:28Yeah, you know, like that sounds like an arrogant thing to say, but that is how you get. Yeah, well, yes, that is how you put intelligence into software to make the software smart. How is meta powered? Classifiers. Maybe some regressors, but probably mostly classifiers. How is Google powered? Probably mostly classifiers. So there's nothing wrong with classifiers. I actually think it like if someone told us that we were a zero shot general classifier for anything, that would be the greatest compliment I've ever been given for Jev. we have other things too but like for jeff that would be an incredible description of it like if someone could say that um i can give you you know and you know random developer the equivalent of a ml it an mle team of a dozen people from 2019 to work on any task that you think up on the fly while coding and it's instantly done and not only that it's going to be better than the quality in 2019 because the ai models have gotten a lot better it's going to be way way way smarter that sounds insane for development so i think that the classifier thing is um like grumpy ml people who kind of don't get it and that is totally fine because the jav party is a developer party oh man i should have said developer um so yes and not i actually think that there's another class of people who is not just like we can run the same stuff with lms so much cheaper i actually think that they are the they are the second wave of people i think the first wave of people who got really excited were the kind of people who felt like this is how ai should have been shaped all along this is like obviously the way to make stuff useful and i'm talking about like the people who like live and breathe structured outputs like the dsp i i am not sure how it's pronounced dsp um
26:18Sam Charrington: I would say DSPY, but I think DSPY is the most popular way of saying it. But these people have been kind of trying to push this vision of this is how you actually make useful systems. And I believe that they're intellectually quite correct, but they've been hobbled by the models being optimized for strings instead of them being optimized for the thing that they want, which is programmatic use. so i think those people not necessarily dspy but like there's a lot of developers who intuitively think in this way and part of what made us so popular is kind of on twitter them screaming like a phantom limb was returned and i you know i didn't expect this because i'm like this you know i i was designing for like where's my missing phantom limb and it turns out there's tons of other people with this and that was so so freaking cool that was only one crumb like there are more I don't even remember what the other crumbs were.
27:16Do you?
27:16Sam Charrington: I just got worked up. Yeah. Embedding model plus classifier, small models. The thing is, if you put a small model or an embedding model plus a classifier, a lot of people miss this. And my team has been telling me to stop telling this to people because it makes it more likely we have competition. And right now, I think everyone is missing this. I want to educate the world, even if it's not in my financial best interest. And the thing I really want to emphasize is that it is not about the interface. The interface is cool. It is not even about the speed and the cost. Speed and cost are bad things.
27:53Ideal speed is instant. Ideal cost is zero. No one spins up a library and says, I feel like putting cost and latency into this line of code. Thing you want, right? I think people just don't get that they're paying for intelligence. And if you use a logistic regression on top of embeddings or a small model, you get the intelligence of logistic regression on top of embeddings or a small model. Right? Yeah. But everyone misses that you get what you optimize for. Of course, you can get a gigantic jump in this thing if you're literally the only person doing that. And we are literally the only person doing that, despite me trying to shout out, like, hey, everyone, please do this.
28:35this is really valuable for the world this is what's gonna make ai really useful and you know there's been lots of copycats i still don't think people i was just gonna say you say no one's doing
28:46Sam Charrington: this but like within the space of a week i think there are half a dozen or more open source projects uh a bunch of other like i mentioned at dev days yesterday open ai announced their decision models which is i think terror or a smaller model like that's about like the interface and the cost and the speed not about the intelligence right like if people really want taking the same approach that you're taking to get there they don't even need to have the same approach they just need to care about intelligence you know like if you're taking like an open source model doing something to make it have the same interface and same characteristics and you just benchmark on nlp tasks or something like that like you don't think i thought of that this was like literally day one into this project uh it's like i i i thought this project would take a week um it's been fun you know i i only feel okay admitting it now totally honestly because it's been so successful like i it becomes feels way safer to admit my failings at the time we started this i was probably at worst tied at best at post training in the world when we started and i thought it have taken a week because i've post-trained so many models for so many different things and models are they seem to be very very general at a lot of stuff but apparently not decision making which i've learned the hard way so i i i think it's very cool that people are playing around with stuff i worry that if people play with bad versions of the model they might actually get burned by the whole subgenre and say like, hey, like, like this kind of stuff is crap.
30:23Sam Charrington: I hope that's not as big a deal as people were saying that kind of exactly, because the thing they want is intelligence. If the models were perfectly intelligent, which our models are not and no one else's are, then you could literally solve everything. Classification is AI complete, right? Like any task could be boiled down into classification questions and you could just solve everything. So truly intelligence matters in what you can and can't automate and what kind of sci-fi you can build. And it's really important. It's so important. I try so hard. You know, like we could have released so much earlier if we didn't care about this.
30:56And, you know, even now it's a debate for like shipping new stuff. How do we continue to ship stuff when we have such a high bar for reliability? Because we want to be trustworthy. We want to be trustworthy to developers, not ML researchers who are like, you know, snooty about like which benchmark things are better at. We just want people to like not have to worry about their intelligence because that is what, developers want in order to build stuff. So I get worked up about this basically every day. It's like, it's such a frustration. And, you know, people on the street recognize me and they're like, oh, you're the Jeff guy.
31:31I love how smart and cheap it is. And I'm like, no, what has my reputation become? You know, like, I want to be a paragon of making AI so reliable that it's boring, like SQL. You know, like I want AI to be so predictable that you can like write queries without having to even run them against like eval sets, because you know, this is what common sense intelligence would do there. And to just do it every single time. And that is when software engineers get super duper powers. And yeah, I obviously love Jev. I love that we're fast and cheap. We're going to keep pushing that. Just you wait. And also, I cannot emphasize enough reliability is what people are paying for.
32:13Reliability is what people want. And if you want to put intelligence to applications, you need the intelligence.
32:19Sam Charrington: So let's dig into how you get that intelligence. You know, I think maybe let's like start at the end state, like what it is, how it works. You know, we can from there maybe touch on RLCD, which is a big part of your process. But along the way, I'd love to hear like you thought it would take a week it took a lot longer how much longer and maybe what some of those some of those milestones and turning points were oh man on that note if you want like a fun embarrassing thing about me is at the time i had this idea and like the aha hit me i wrote a document in open ai entitled titled maybe not entitled um titled we could have we could have had AGI last year and it was meant to be very spicy where it's like and actually I did believe it at the time I still believe the sentiment to it but like the the sentiment inside of it was like one year's worth of time of like the equivalent of an RLHF effort would be sufficient to make this new class of models that are made to be machine native and RLHF could have been done in less than a year for sure um in hindsight we we've learned but um in hindsight i think rlcd could not have been done in a year it was just much much harder i think that making like lms are much more suited to to making things like human pleasing than ai is to be making calibrated robust decisions and there's so much jaggedness when you remove the psychophantic elements of AI that it's been a lot of work is what I would say.
34:09And I see the North Star and of how we do things is really, really, really trying to find what are the ways, like if you imagine the cognitive core that has like these jagged cracks, what is the most efficient way to like heal that to get smooth, robust performance at whatever level of intelligence is truly capable within the cognitive core. So it's a lot of like understanding the capabilities of LMs. It's a lot about like seeing their weaknesses. It's a lot about like figuring out what weaknesses are addressable and how do we address those? Our model cannot count R's in strawberry. Luckily, that is not what real world work looks like, but it can do a whole bunch of other stuff because a lot of work is in the shape of semantic judgments, which luckily LLM -
34:52Sam Charrington: You can't decompose that into a classification problem? Oh yeah, you can decompose it, but you can't just ask it vanilla. and at some point like it's a little bit i'm just teasing yeah let's not put it's cheating right like if you like break it into like a list then it works um so that the tokens don't get merged but um like if you you want like a sane level of decomposition that makes sense for your engineering system that's ideally at the right level of abstraction that it's understandable by an engineer and it's maintainable versus like overfit to any one question. So even if our model could solve every single task, if decomposed perfectly, that may not be sufficient because we want to keep moving up the abstraction hierarchy so people can program at the semantic layer that matches the way they think about it, right?
35:43Like if you could break down like this, does this person want a refund into a hundred different refund scenarios? Like maybe then that'll work. But like, that's still kind of a pain in the ass where some businesses will still do it. But like that, I wouldn't consider a job done for that.
35:57Sam Charrington: We've talked broadly about Jev. And it may be that everyone who's listening to this has already seen it, played with it, knows a bit about it. But in case not, you know, I asked you a bunch of questions before. Let's kind of break those down. The first is like, from the perspective of a developer, your target user, like what is this thing look and feel like? Like I think of it broadly as like, or you could call it an intelligence API. You give it a bunch of possible decisions and some input and it like makes one of those decisions or tells you which I think it is and it gives you some probabilities.
36:34Sam Charrington: How would you tune that? I love it. A lot of people describe it in many different ways and I take all of them as long as they're accurate. I also like the description of SQL for intelligence. you know uh or like it's a combination right like system there's the interface which then the model and we are kind of made both so it's a little bit confusing but to me i see the interface as like the building blocks for making intelligence applications kind of like adding a fourth logic gate or something like that so i really want intelligence to be standardized into a common set of primitives and ideally everyone makes these things as smart as possible not just us I also like the kind of positioning as like, hey, we have this thing called language models.
37:20Sam Charrington: Here's this new thing called decision models that kind of says a bit about what it aims to do. Not necessarily, Jev, but like some emerging class of. Yeah, tell me. I will give a tiny warning about this where we consider decision models as a name. I'm not opposed to the name. I think that the best categories are named by the community. So, but I will give a disclaimer that there's a reason we didn't pick that. And I think that there's a lot more that fits this class of models beyond decisions. So I would say that like people's public interface to JEV could be called decision models, but I wouldn't, I personally wouldn't call the category.
38:04Sam Charrington: What's an example of something that JEV would be good for that's not a decision? Ooh, I will not tell you, but I will give you a hint if you'd like. So I've said that decisions and classification is how you make intelligence useful to software. And we are all about making intelligence useful to software. And I'm also saying that there's more than just decisions available, which sounds like a little bit of a paradox. but I will say it will one day be obvious. And I can't reveal that yet because these are like things like a little bit more distant in the roadmap. But it's a fun one to think about if your readers want to noodle on this.
38:47Sam Charrington: So that's kind of the shape and kind of functional surface of it. Let's talk a little bit more about kind of the making of like at the core, there's a model that we won't call a decision model. We'll just call it JEV. And it was created through a process called RLCD post-training. Is it a post-train of something else? Is it a ground-up thing? Like, what can you tell us about this thing? I will answer this in a way that is, like, overly precise. Back before RLHF existed, post-training as a concept did not exist. Right? Like, we as a team, we didn't name post-training, but like that we created the concept of post-training.
39:35At the time, fine-tuning existed and people were like, are you just fine-tuning the model on strings? And by some definitions, we were fine-tuning the model, but we did a whole lot more such that at some point it becomes misleading. So I would actually say that, just turning my, oh, there we go. um i would say that calling it post training is probably going to be seen as inaccurate in hindsight but the field doesn't have a terminology yet for what we are doing so uh that will probably
40:13Sam Charrington: be revealed more in the if you were to invent one right now what would you call it no one likes my ideas in the team um so i've said this elsewhere so i'm okay saying this but we okay back to lesson we this because this is ml we care a lot about the north star and we are willing to do everything for it and i try to be as upfront about the trade-offs as possible and part of that trade-off is being a lot worse at string generation and even like the jev can chat stuff like it's very cute but it's obviously dumb uh like these are trade-offs we intentionally make so when designing the entire pipeline um post training was a lot easier on top of llms because the shape was very similar like it's strings here it's basically strings there technically there's some structure with like the chat ml format but it's mostly just strings you know so there's a lot of similarity in the stack what we're doing is we're actually like ripping out a lot of fundamental pieces and like rejiggering them and using pieces from other stuff so i have described it as a frankenstein's monster of models um which i i haven't read the book but i've been told is at least innocent if not the good guy.
41:25Just to be clear, because people are like, don't call the model a monster. And I'm like, it's a good analogy, though.
41:31Sam Charrington: What's the foundational thing that you're applying this unnamed thing to? Is it like an off the shelf Quen model or something? A lot of different open source models because they all have different tradeoffs to them. So we are actually Frankensteining all over. But the important bit, if we want to be maximally precise and useful, is figure out the North Star, figure out what you're willing to trade off, and remove all the stuff that is useless for that trade-off or that is needed for the thing you're giving up and hyper-focus on the thing that matters. And a lot of it will follow a la first principles with months of research.
42:07Sam Charrington: Sure, but that's broad in general. And to be concrete and specific, it is interesting that you didn't start from nothing. You started from LLMs and Transformers and you're building on these building blocks that have established themselves with LLMs. just to be clear um i have talked you did or did not i did not say transformers i did say open weight models slight distinction um which i would just want to be precise um so i think that oh man something i want to event well number one it's very obvious we haven't done pre-training like if we could pre-train better than the rest of the world with the budget we've had then the rest of the world is totally cooked.
42:59I think pre-trading is not the most efficient thing in the world. And it's exponentially more resources for debatably linear gains. Seems very sublinear. It's kind of a bad deal, in my opinion, unless it's necessary.
43:20Sam Charrington: meaning we've kind of already boiled the ocean of content down into things that are kind of consumable by some downstream process why keep doing it unless you're doing something fundamentally different exactly so we are trying to focus more on like the 10x or more jumps that can be made and we think that that can be very much done in a budget well we obviously think that because we did but I think that all AI companies should be held to that same bar personally. Part of the reason why I'm trying to really drill down on this point is not necessarily for you to say, oh, we use, you know, QN3.6 or whatever it was, is that it took a while for me to wrap my head around the fact that there was an LLM at the core of this thing and that is the source of intelligence and that is the source of zero shot And like, if you think about it as like, like if all you've seen is Twitter and like, oh, it's like this cool new classifier thing.
44:19Sam Charrington: And you're like, oh, okay, well, that could be like, I don't know, XGBoost or like some other, it could be anything. And like, they've done some like really training thing. but then you you are like oh well then i have to like post train it or i have to like give it some information about my domain or something like that how am i just going to give it a bunch of decisions and ask it to decide like where is that intelligence coming coming from to your point about intelligence uh but then you can start to see how that could work if you realize there's an LLM down there somewhere. I could see that analogy.
44:59Like I kind of, I'm trying not to avoid the LLM terminology because it's technically not a language model. You know, like it doesn't model language despite people wanting to force it into that. I see, I kind of see this as like this more broad, like this recent wave of AI has been creating these incredibly awesome condensed bits of intelligence of which, you know, like with a scaffolding around it that turns it into an LLM. So imagine like this mega battery with like stuff on top that like turns into a language model.
45:35Sam Charrington: I only meant it in the sense of like a compressed version of the internet. Exactly. Exactly. So I would use that. And like, I see that. You've got a compressed version of the internet that some large effort created and you're using that. Exactly. And I think that's the only way to get what I'm calling general intelligence. That's the only way I've seen to get to general intelligence so far. Or it's debatable if you want to call it general intelligence, but I think it's general. Not to oversimplify, like you've done a lot of things, like you've Frankenstein, it sounds like several different models.
46:08Sam Charrington: You have an involved process that we won't call post-training, but there is this thing called RLCD. What is that? So back to the topic of RLHF, like RLHF is not about PPO on reward model on, you know, like doing first SFT and then reward model training and then on policy training of that. Okay. RLHF is about human decisions and your thing is about decisions, calibrated decisions. Human preference. It's never about human decisions. Human preference. Sorry. Yeah, yeah, yeah. Exactly. Human feedback. So like when I talk about RLCD, I talk about like the general class of algorithms that optimize specifically for calibrated decisions because that is what's useful for software.
46:52So we do have many algorithms in here that we have been playing around with. We actually have talked about publishing something here, though I will not promise anytime soon because the team is super duper swamped. But I think that you can imagine. But I think that publishing RLHF was probably really good for the world. You know, it allowed a lot of people to understand stuff. It took us a couple of months to publish it. But, you know, we had InstructorGPT for a while. And I think that eventually publishing something here would be really good for the world, too. So I think that that could be in the cards.
47:31But the task, that's the algorithm versus the task, just to be clear. Other people will probably make other algorithms within the same umbrella of the task.
47:40Sam Charrington: Is it useful to talk more about the task or do you mean the task broadly in the way we've been talking about it thus far? Like what, like in an academic context, I'd ask about the setting. Like what is, what is the setting for RLCD? Like how have you defined that? That is very complicated, but I can give a simplified version of it. Have you ever used like function calling in the chat completions API? So function calling is kind of like decision making because it is decision making really, but it's done on a layer above the string stuff. So all the knobs available are the stringy knobs that are still available from like the string models.
48:27And one example of a stringy knob is a logit bias. A logic bias allows you to like nudge in the direction of sampling a particular token. So you can do that to make certain tokens less or more likely, if that makes sense. And one of my claims is that no function calling API should exist without a logic bias for the function itself. Like, why would you not provide that knob to a user? because if you are, for example, doing a customer service thing and you need to figure out if you're escalating to a human, your policy is probably extremely different if you're Walmart versus like Costco. I know nothing about these policies, but I'm just making some off.
49:10But like the only alternative now then is to like program again into the language, like please give refunds or please don't give refunds or something like insane instead of giving the controls of the system to the programmer implementing the downstream behavior. So to me, RLCD is about exposing the right interface to builders so that they can get the properties they want without just praying to the system message. And these types of basic things are table stakes. This hasn't happened recently, but this happened back in the older days when OpenAI had issues with over-refusals. They had to roll back the model because they refused too much.
49:52And I would argue that that was actually bad decision-making. What was happening is the model within its weights was making a decision, refuse or no refuse. And then the system is just going with what the language model thinks because it blends the decision with the text and then just does that. So there does exist queries by construction that if you refresh it several times, it will sometimes refuse and sometimes not refuse. That is insane behavior from an engineering point of view, right? Why wouldn't you have a threshold? Why wouldn't you have a tunable threshold? Why would you not have a tunable threshold that responded at least somewhat indirectly to how people are complaining, right?
50:33Or if you're doing customer service, why can't your threshold on whether to escalate or not be dependent on really basic things? Like how much is this customer worth to us? And how busy are our human workers right now? because maybe that changes things. And we just don't have any of those controls today. So I see RLCD as really exposing the most native to engineering controls. And that is the shape of the task. And a lot of stuff comes from that shape. Like in order to have meaningful knobs to tune and thresholds to chop, you need to be calibrated. You need your probabilities to be like smart and accurate.
51:11You care about the long tail of probabilities, not to just the accuracy. and there's like a lot to the task itself on studying this seeing trade-offs figuring out what the right behavior is there's there's a lot to the product of an ml api that most people don't realize because they mindlessly follow the you know the the gradient of things like maus
51:35Sam Charrington: monthly active users you talked about the rlcd setting being one of you've got some kind of some set of inputs and you know there are the inputs that the user provides but there's also these knobs that kind of control internal bias in the system does the current JEV product expose those to the user or are those knobs that the JEV engineering team has access to to create this thing that you know this decision API that you've published to the world? As far as I can tell the internal API and the external API are basically the same. So we want, but how would we know what users should set this to if we don't have their application, right?
52:23Like what is the right, so confidence is part of this. Probabilities are a part of this. Most people don't use the probabilities, but I would guess when things get into hardcore engineering, you would definitely use the probabilities every time over just picking what the model thought was best. Because even if all of the choice, even if you had like the perfect probabilities for each of the actions you can take as a company or a business deploying this, or even a software engineer, like trusting it with your own home system, each of these actions have different costs and benefits.
52:55Sam Charrington: Well, I guess I want to come back to the probabilities as outputs. I'm more thinking about like input knobs that when I've, you know, my cursory look into the Jev API, it's like a very simple API shape, but I've not dug into the docs and looked at all the possible knobs that you give me access to beyond just the decisions that I send in. Like, what are some of those knobs? The knobs are via outputting the probabilities. We are basically trusting the user to make those decisions. This would be equivalent to, imagine speed wasn't an issue. It would be the equivalent to the OpenAI API, outputting logits for every token.
53:36And then the software developers can choose how they want to chain the sampling algorithm instead of letting OpenAI just handle everything. So we give those knobs by giving people a raw access to the models than other people have access to the string models. And that way they can tune their behavior to what actually is needed in their system instead of what, you know, like OpenAI PM thinks is like a globally okay behavior for everyone using the API or first party product.
54:06Sam Charrington: Which brings me to a question I had about how you do that. And I guess I imagine this is circling back on RLCD. But like historically, uncertainty estimation has been like very difficult.
54:23Sam Charrington: And, you know, particularly when we are talking about these, you know, large compressed versions of the internet that historically generate text and like, and large complex models generally. Like, so how do you, how do you do that? Hard work, blood, sweat, and tears. And also, and also like, you know, it's hard work. Like we were in stealth for a long time, you know, being two years in stealth, it's like kind of insane in in like ai terms the amount of i'm not asking you to divulge the family jewels it's more like is it is it grounding on something like what's the guiding star the like the the principle that kind of helps us understand why we should trust these probabilities as opposed to well they've just got some token generator that's been trained to generate numbers between zero and one I'm going to give you like one more bone in the last thing, which is, you know, we did work in stealth for a long time.
55:26We missed so many fads, even though we thought Jev would have been great for a lot of those fads. Like, holy shit, would have been cool to launch Jev the same time as Open Claw. It would have been awesome because everyone has like a lot of reliability issues with Open Claw. And also, like these compressed things of the internet are, as far as we can measure, decently calibrated. They're not perfectly calibrated, but they are way, way more calibrated than RLHF models are. Actually, RLHF and RLVR destroy the calibration of the models immensely because in order to output strings well, you actually need extreme overconfidence.
56:02It requires like a mode dropping loss in order to make that work, which just completely warps the probabilities. And I think that the GPT-4 paper started talking about this because that's when models started not shipping their pre-trained versions and only started shipping post-trained versions. So I think the GPT-4 paper went into it a bit. But the models used to be decently calibrated. Look at a lot of Anthropics early publishing, you know, measuring what they called PINO, the probability it knows facts. Like these are all like pretty decent and it's definitely not good enough. I would guess Jeb would crush all of those like super easily.
56:41The thing is that there's ways to bootstrap calibration and reliability and intelligence from all of that the same way that RLVR bootstraps reasoning, right? Like in an ideal world, the reasoning of RLVR doesn't come from humans writing the reasoning because it does it differently. But if you have the right RL objective of calibrated decisions, there are ways to get that working from that seed data into becoming more and more and more calibrated over like the training that i don't really know what it's called epochs training stages whatever so there are there's like hand wavy ways that makes sense that you can get calibrated stuff out of not quite nothing but out of like the beautiful raw material that ai has today because ai has like a lot like I feel like AI is still a diamond in the rough.
57:33You know, there's so much stuff to do there. And if I wasn't doing JEV, I would probably be ideally not starting a company, but doing other cool stuff on top of the AI models.
57:43Sam Charrington: Like, how do you get to generalization? Like, you know, presumably you've got, you know, you're grounding on some corpus of decisions so you can teach this thing like what decisions are like and, you know, how to map to these probabilities and all this kind of stuff. Um, but like that, uh, you know, as with all these, these training efforts, like, you know, you have to be asking things that are in distribution in order for the results of the model to be representative. And like, how should we think about, you know, if you're trying to enable, you know, zero shot, you know, classification, like zero shot decision making.
58:29How do I know that like my particular problem is in distribution versus out? And maybe more broadly, like I would think that like generalization would be a harder
58:45Sam Charrington: problem for workflows and decisions and like software interactions and all these things that like we're trying to automate than like just generating text. But like I could be way off on this. So you tell me. It's an interesting question, which maybe would be more fun as a dialogue than a lecture. You know, maybe like, why do you think AI lacks generalization? I have my own answers that I could say later too. But like, what makes you think that a generalization is not native to AI? uh it sounds like you're asking a philosophical question and i can ask and ask a practical version you know how general did chat gpt feel i think the perspective that you know that the question came from was one of you know as a general principle like the reliability of responses is governed by kind of mapping the training data and like, you know, the degree to which the thing you're asking is familiar to the model.
59:56Sam Charrington: You know, using these terms very broadly and like, very broadly, right? And so like, I think why the take that, you know, decisions would be harder to generalize than text is because like, presumably I get enough texts in the world. If I'm asking a model to generate text, like it starts to understand like how to put words together. And if I'm not asking it for precise facts, then, you know, it can like put words together that are plausible. Whereas like in the case of, you know, I've got an accounting workflow and I needed to do a very precise thing. Like if that workflow is very different from the standard way of doing that workflow, like I would think the model would be very confident and wrong.
1:00:57Ooh, so fun, fun stuff. So, you know, like, was chat GPT general is one way I would like to start the conversation? Did it feel general to you?
1:01:11Sam Charrington: I mean, I think it is general. And I mean, this is maybe going in a different philosophical direction, but I was very, very strongly against AGI as a broad term for what we've achieved. but like in the past three months, maybe like I'm getting closer to being able to say that like we've achieved this, like in the sense of, you know, I can talk to an agent that, you know, you know, conversationally and have it do things in my business like an employee might like it is like.
1:01:55Sam Charrington: AGI and generalization are different concepts, but I'm accepting of the idea of chat GPT being general. Yes. I don't know that that negates the in-distribution, out-of-distribution line of questioning. I mean, there's a bit of it because in-and-out-of-distribution is also a function of how long and hard you've worked on that because you start mining the long tail of examples. So in the grand scheme of things, chat GPT of today is a lot, even if you do use instant mode, so turn off reasoning, is a lot more refined than chat GPT of four years ago. Well, three years and 10 months. Well, sure, but not necessarily because the model is more general, but because now we've built these harnesses that know how to go out and find information to fill in context.
1:02:46I mean, if you talk about just ChatGPT, I would imagine that there actually was generalization gains, but ChatGPT already was quite general, and it did a lot of simple stuff quite well, I would argue. And I do think that there's some amount of generality native to things. I actually have a separate blog post I've called, I believe it's called Lies, Damned Lies, and Benchmarks, where I talk about how a lot of the fragility and jaggedness we see of LMs today come from RLVR. Because if you are being non-generous to RLVR, it is kind of, by definition, optimizing for benchmarks. like by definition a verifiable reward is a benchmarkable one and by adding latent reasoning before the answers you give the models all the power in the world to do really well in those benchmarks so it's very unsurprising it does very well in benchmarks i think a lot of the jaggedness has come from this and and then you get to this whole like uh like challenge of like adding more and more and more and more and more data in distribution to get more and more diminishing returns to make the jagged frontier even more fractal and spiky such that it can do some things really reliably but not super duper and i i think it's gonna be really interesting to see how this plays out because they're spending like a lot of money on this and it seems like it's not yet super general is what i would get the sense of and i think that our path to generality is going to be a lot easier from what I've seen.
1:04:22But by far the easiest for generality was RLHF. RLHF was ridiculously easy to make it general because it was very, very good at writing human pleasing stuff because that is subjective. So I think that this is one of those, you get what you optimize for, but you need to be aware of the real world. And the real world is how good are like these compressed versions of the internet at surfacing intelligence. And I think that they're incredibly good at writing text to please people. They are quite good at system one tasks, but they are... It's quite a battle to get them good at the system two tasks, hence the extreme jaggedness that we're seeing right now.
1:05:06It'll be really interesting to see where it goes, though. I'm very excited to see the models evolve.
1:05:11Sam Charrington: I'm not sure that that answers why a JEV model like, well, A, do you agree that uh that in this that this domain of business decision making like is generalization is harder in this domain than in text or do you think that that's that premise is incorrect i would disagree i would or depending on what you mean by text if you mean like is what's harder follow a simple business workflow or solve a millennium price problem in math i would bet quite a lot that the math problem is a lot harder um people might disagree and bet otherwise but that that violates too much common sense for me to say anything else okay so let's peel this back like part of i think the question is like or part of where i'm coming from is like i'm trying to compare model to model, not like harness to Jev.
1:06:16Sam Charrington: And now here's where you can correct me. I'm thinking of Jev as more akin to a model and less akin to a harness. I see the distinction, actually. What I think I was talking about was imagine that there's like a grand graph of a grand plot. God dang. a grand plot of how much generality there is. I believe I was talking about the slope of the curve for different objectives. And my claim is that absent where models are today, my claim is that RLHFs is by far the easiest than RLCDs, than RLVRs. So I'm making a claim about the general space of the task. As far as models goes, GEV is like extremely early down its curve right like it is literally our first public release it should be treated like an early chat GPT and I would guess that in terms of like overall robustness the RLHF models are very bad at decision making so I would guess that our models would be less good at decision making than the biggest RLVR models but a lot better than like the non-reasoning RLHF models.
1:07:34And that's kind of where I would guess we are at today. And as we really scale up our efforts, I would expect us to like greatly overtake everything, at least for business-y workflows. But again, first model, early research preview. And yeah, please, if there's like dumbness in the model, we love to hear about it and fix it. There's a lot for us to keep on doing and we i believe it's going to be a lifelong journey to add every single nine of reliability into the model and every single nine will unlock all sorts of crazy use cases so um be understanding and also i think it's already hella useful and smart and also i think it can get a lot better too and it is not in the extreme plateau of diminishing returns like other models are so
1:08:25Sam Charrington: So that last comment of mine prompted another thought, which is like this relationship between model and harness. And I think in the case of LLMs, like LLMs were, you know, useful. But then we added harnesses to LLMs and they became a lot more useful. You can tell me whether you agree or disagree. but with regards to jev like is jev like mostly model a little bit of harness and and like a lot of innovation can come by expanding that harness like is it uh mostly harness a little bit of model like what's is there a similar is it even makes sense does it even make sense to think about that same relationship between model and harness and you know what what would the harness do in the case of of jev perfect i will actually rename into my terminology real quick that harness is code so um i would i would debate that simply adding a while loop on the lms and tool calls is what made them good because i don't actually want to discount all the efforts that ml people put into that i am i was not inside the labs at the time but i'm fairly certain the gigantic jump that happened with clod code around november 2025 clod code was released months beforehand and there was a giant and it was not that popular and then there was a giant jump later my guess is this is what happened when they finally put it in distribution because you get what you optimize for and i think that is what made clod code very good being put what you said put it into distribution you mean the coding distribution literally yes cloud code or or things like cloud code i don't have access to their data obviously but i would wager that there was a gigantic data jump in between where they decided to make a big bet to put that in distribution so and i believe that is why agents started working are you saying that like uh i think you know broadly you know there's this narrative that like Claude was great, but Claude code was this harness that, you know, used the Claude models and made them a lot more useful to people.
1:10:47Sam Charrington: And what I hear you saying is that maybe something like that was coincidental and the harness wasn't really, you know, the step function, but there was some model innovation that allowed the harness to be useful, a data innovation. Yep. That is what fits my timeline of it. But again, I'm talking about it from the outside. When CloudCode was released, technically the shape of CloudCode is very powerful, just like the shape of classifiers is very powerful, but it's only as powerful as the intelligence behind it. And as far as I can recall of that time period, CloudCode was like a very niche, weird thing that people didn't use very much.
1:11:31And people eventually feel the pain of unreliability and stop using it. A similar thing happened with Open Claw. Open Claw obviously has a very powerful shape. People are continuing to innovate in that direction right now. And the problem was not the shape or the harness. The problem was the intelligence behind it. Maybe the right harness can harness the intelligence better. Haha. But like in, thank you. But in that case it is like it would be remiss to blame the open claw harness because the intelligence can evolve too and you need to be aware of reality when making these things so it wouldn't surprise me if the the i don't know what the general term for this is like cloud assistance whatever everyone is doing right now uh it wouldn't surprise me if these start getting way better because they are put in distribution and it is it is not a stab at open claw right open claw did a really awesome interface jump just like clawed codes interface jump was very cool even if they didn't make the model very good at it so uh i want to say that i don't think it's purely the harness that gave its capabilities um so harness needs to map or the thing we're calling harness needs to map the capabilities in the model in order to be useful.
1:12:49I would actually not call it harness per se. I would call it code. And I would call the thing wrapping our model code as well. Our model is much lower level than an LLM is.
1:13:00Sam Charrington: And that thing, is that thing a type safe thing? Or are you talking about the user's code that has access to the model? The user's code. Okay. Yeah. Yeah. It's actually, it's weird for the logic to be running on someone else's server if your system message has like your whole business algorithm on it. That's very unusual for an API. Normally, you outsource that to an API, the work that you own only the API can do. And you actually not rather give it all of your business secrets or anything like that. So this is just like more like a normal API. And I like to think of it as like one day intelligence will be like databases where you just call it when you need it, when you need intelligence within your code.
1:13:45So I think that TypeSafe requires code. I cannot imagine, I find it a little bit fun to play with the models, but it's not useful to look at probabilities. The probabilities are only meaningful if they go into an application that then does something that ideally eventually delights a user or provides value. So TypeSafe cannot be used without code. If you are a non-coder, it's really cool that you're interested in our model. I'm kind of confused. I would love to ask you why you're interested. And also, like, it's made for coding. I'm sorry. It's not made for writing code. It's made for enhancing the power of code itself.
1:14:24Exactly. Which is very different from where LMs are because they are mostly used for writing the code, which has the same expressive power as it's had for the last decade or so.
1:14:33Sam Charrington: So just kind of to pull that back, what I'm hearing is that Jev is at its core a model and you don't right now see like a role for a quote unquote harness between you and the user that you control that's like the while loop thingy or that's fetching external contacts. but rather every user is going to embed that JEV model into their code and they're essentially providing the harness that makes sense for them. Yep. And actually, I just reject the notion of harness entirely. I think that higher level abstractions could exist for JEV-like models, but a harness itself is just, it's a very horseless carriage type thing of trying to turn the intelligence into something that looks like a human, which is cool if it works I have no doubt like if it worked I would have tons of them but as far as I can tell it doesn't yet so I don't and that's just not necessary for like the massive amount of automation that I think needs to get done so we think that like you know like we don't need like the same harness everywhere what we need is for the users to be able to like put their logic in there which is what software engineers do they like hyper literally specify the logic of automation in order to create value and we want to expand the vocabulary of logic that they can put in and i'd like to think of it more like um n8n nodes you know or any kind of like um i don't know if there's a general name for that like WYSIWYG style no code editors like we are just like one of the nodes that maybe you put a lot of the place exactly um but the rest of the logic is all you and the data is all you too right like this that is how you make stuff do valuable things all right so uh you've brought up open claw a few times uh you know one interesting potential opportunity for jev is inside of all of these agenda harnesses or frameworks or whatever we want to call them um because those things make a lot of orchestration decisions uh that right now are being driven by text-based models and maybe there's a better way to do that.
1:16:54Sam Charrington: Like what's your take on Jav plus agents? Ooh, ooh, ooh, ooh. There's so many, that is surprisingly high number of breadcrumbs you've added in there. So I'll answer it in a couple of levels. Number one, we obviously want to make it work. But number two, we are definitely not experts at this. And it seems like the experts at this are playing around and trying to figure out the killer use cases and everything. So we want to really help those people crush it and create lots of value and ideally make agents a lot more either reliable or efficient or ideally both. That would be ideal. Fast would be cool too, but it feels like I would prefer reliability and a lot of businesses would prefer cost.
1:17:42So given all of that, Like, JEV is meant to be this, like, general technology that understands, like, common sense and can be helpful all over the place. I did actually share a write-up I had. I actually have a blog post related to this called KV Cash Rules Everything Around Me. Like, C-A-C-H-E. Somehow, no one on the internet has said cash rules everything around me beforehand with a C-A-C-H-E. And I can't believe I was the first one to say this. So number one, I have a blog post about why agents are extremely beholden to their KV caches. And why a lot of the design of an agent very obviously comes from the constraint of knowing that the KV cache is extremely expensive and very sensitive, like you don't want to pollute it.
1:18:33So things like why don't people use more sub-agents? Why does routing tend to not work? All of this I go into my blog post. I've also released a Google Doc, which I kind of regret because I keep getting share requests for it of people who want to like edit my Google Doc or something. But I had this internal design of how could JSB used for coding agents? Because once upon a time, we thought that we would be a bit more stealthy and we thought we would be building products ourselves. And that cat is now totally out of the bag because we decided not to do that. But, yeah, I think that there's so many cool things that can happen if you just assume that you don't need a append-only KVCache.
1:19:18Like, a KVCache is great for saving money, right? But also very constraining. It prevents a lot of, like, cool programming patterns, like fanning out and filtering and reordering and stuff like that. And it's... I love the interview question. how would you design a coding agent if KV caching didn't exist? It really makes you rethink how agents could work. And I think it's a really useful intellectual direction for figuring out how to design agents. If, for example, you had like extremely cheap but reliable intelligence on the fly, and I think there's so many cool things that can be done. You know, the KV cache is a little bit similar to like having global variables everywhere.
1:20:02But what if you could be smart about your state? why do you need the full view of like every past decision you've ever made um for all the future decisions too because presumably when you're in a moment there's extra information you might want that you could like insert get the decisions out pop it off the stack and like really curate this kv cast or even do super sick things like um like log of n lookups within your context nothing stops you from doing like hierarchical searches within your context and that way you don't need to have the same thing over and over and over again. Another gigantic use case is actually tool calls.
1:20:37Tool calls, number one, result in context wrath because they require tons of context up front. Number two, you don't always need them. And number three, because the models have been overfit to their native harnesses, they tend to call the native tools a lot more than the ones you plug in. So the models don't end up calling them that much. What if you could provide logic biases to your tool calls to fine-grainedly control when things are inserted or not? without poisoning your context. So there's so many cool things that could be done. If I wish I could work on it, ah, it would be so cool. It would have been so cool.
1:21:12Sam Charrington: So the agent architecture is potentially very different in a kind of Jev Greenfield world and you're leaving it as an exercise to the listener or for the listener. Well, I think there's an interesting intellectual direction to look there. Pragmatically, we need to care about what actually works in the real world. And there might even be limitations of JEV, such that this is currently JEV 1.13. Maybe you need JEV 1.16 to actually get all of this working. Who knows? It's going to be like a wide open, really fun world. My guess is the future is going to be hybrids that slowly add more and more logic, because it's very hard to add additional hardness logic into the cloud codes and codexes, because their core loop is just a while loop.
1:21:57And in general, adding logic is expensive. So it takes a while to like really tune. But once you have software that works, it's really lovely when it works. So my guess is people will be building up more and more and more software that latches into these harnesses until they switch over into being a lot more software and a lot less magic while loop.
1:22:21Sam Charrington: Very early on, I mentioned I wanted to come back to a particular point. And fundamentally around, like, you know, when you think about architecting around decision models or whatever we want to call the broader category that Jeff sits in, that would require like more traditional kind of workflow orientation versus like where we've kind of arrived at with agents and agentic software is like, okay, well, let's generate some context and give it to an LLM and let it spit back some answers and call some tools, which are essentially the next steps. And like, I guess I want to poke at like, you know, in some ways it feels like, you know, if you set aside the fact that this world that we move to doesn't really work all that well reliably, right?
1:23:16Which is kind of important. It's kind of, that's a kind of, it's kind of important, yes.
1:23:21Sam Charrington: Yeah. But like, let's set that aside. Like, there's a certain agility to being able to hand off all your decisions to this one thing and let it run in a loop and let it call off call you know next actions and like return to this loop whereas like decomposing everything into these much more like static or rigid workflows like creates a lot of debt over time creates a lot of complexity and like you know does jeff require us to move back there or how do you think about that like i've kind of set this up okay yeah you set it up very unfairly because you put aside the reliability issue i recognize i recognize that but i'm open to that and actually i think that um this is a fun hypothetical question because i never not think about reliability but i actually think that there's it's actually a feature to many actual uses.
1:24:18Like obviously there's a long tail and there's going to be a lot of uses that is not worth automating. This is the tragic problem of like just doing work as a software engineer. Do I write a bash script for this that will take me four hours or do I just do it in five minutes? And I'm the kind of guy who would probably write the bash script more often than not. But there's a dilemma here, right? So I would guess for a lot of work, it's probably worth it to just give it to the unreliable LLM and hope that it works right. And then you can just check its work if it's not. But if you're actually trying to scale something, like if it's a workflow that is so valuable that you'd want tons of people to do this, or you'd want to run it a lot in the background, or, and this is the part that I think no one really gets in LLM land.
1:25:00If you want it to be like closed away in the box and run in the background and have it be a dependency that you just call forever, that's the kind of thing where it makes sense to really engineer that system upfront. And it actually makes sense to maintain it over time because that provides value forever versus like having to rediscover the logic every single time. So I think that like people just don't think of LLMs as composable and layerable and something that can be the foundation of greater and greater cognitive abstractions because LMs are so unbelievably bad at this. And it is a feature to be on the rails.
1:25:38You know, like you don't want to go an amusement park that doesn't have its rails. Or at least you can't do the most fun stuff without like the rails and the seatbelts and all of that. Right. So I think it's going to be a very similar thing for the most valuable parts of AI software.
1:25:53Sam Charrington: You're saying that the automating with this, you know, unreliable-ish thing is kind of it's an oasis and you're not going to fully get there. and the fact that we force you to that jev like would force you to like more traditional code and like workflows and all that isn't necessarily it's a feature i think is the positioning that it's a feature for automation it is not a feature for just in time stuff um so like if you're doing stuff on the fly that's a one-off like of course it's not worth it to write a big old automation for that. And there's lots of in-between. Actually, if you've seen CloudCode's dynamic workflows, dynamic workflows are super cool.
1:26:38And nothing stops you from actually having an LLM understand your task, write a workflow for map producing across your documents in your company brain or whatever is hot these days. But actually, it could call JEV models in it because there's a lot of documents and you don't actually want Opus 5.5 to reason over the whole thing. So there's a lot of middle grounds over there um and the world is going to be our oyster for creativity
1:27:05Sam Charrington: we've talked a lot about kind of broadly what's next but like if you had to like directly answer what's next like what comes to mind it's hard for me to say without shit talking other people um so i will start shit talking then oh man i i our advisors have told me that I've been much too nice online I think that I'd rather just genuinely be me and like I have spite obviously against like AI misinformation but I don't want like I actually don't want to be spiteful at any particular release or product so I don't actually want to go down that direction really we have a lot of stuff that we want to be shipping um there's And it's, oh man, like I'm so excited to tell people, and not to tell people, to show people why we call them System 1 models.
1:28:02That's going to be cool. We have like a lot of stuff we have in the tank as well of like, hey, it's going to be really complicated to launch with multiple models. Let's keep it simple for now. So I'm so excited for that too. I'm excited to have like an early access program of some sort. Like I want people to be able to play with like the earlier models we have. that don't necessarily have our stamp of reliability, but we think is better than anything else out there. Man, I'm just excited for stuff. Technologically, I also have a lot of company building to do, which I really don't like. So if anyone wants to be working for someone, I would love to hire a jillion people.
1:28:46And hopefully that'll make my life a little bit easier.
1:28:52Sam Charrington: well Dioga it's been wonderful catching up way overdue you've been doing some interesting things over the years but we should definitely do this more great moment in time for TypeSafe congrats on the recent success and traction with Jeff thank you and I do believe that this is just the first of many so just you wait you might have me on here sooner than you think alrighty we'll keep in touch thank you heck yeah have a good one Thank you.
In this episode, Diogo Almeida, co-founder and CEO of TypeSafe, joins us to discuss Jev, TypeSafe’s recently released model for bringing fast, reliable intelligence directly into software. We explore the idea of “machine-native intelligence” and why Diogo believes models optimized for generating text are poorly suited to many of the decisions required for real-world automation. He explains how Jev differs from traditional classifiers and LLM-based approaches, the role of reinforcement learning from calibrated decisions (RLCD), and why calibration and reliability are central to making AI useful as a software primitive. We also discuss the relationship between models and code, why Diogo believes AI systems should become more engineered rather than relying on a single model to do everything, and how Jev-like models could reshape agents, tool use, and the architecture of AI-powered software.
🗒️ Full show notes: https://twimlai.com/go/779.







