Latest / Agentic Conversations (formally mlops.community) / Large Language Models in Production Round-table Conversation
Transcript
- 0:00Hey everybody, super glad that you are listening to this large
- 0:04language model in production Round Table.
- 0:06I want to mention before we jump into it, that because of the
- 0:10success of this Roundtable we ended up organizing a full-on
- 0:13conference. It's a virtual conference.
- 0:15It will be held on April 13th and you can register now, we're
- 0:19going to have incredible speakers.
- 0:21Like the founder of human Loop, the creator of Lange chain, just
- 0:27to name a few. And also the CTO of Of adapt.
- 0:30AI. They just raised two hundred
- 0:32fifty million dollars. Wow.
- 0:34All right, so if you want to register for that, check out the
- 0:39link in the description and we will see you there on April
- 0:4313th. I'm not going to chat for too
- 0:46long. I just want to talk real fast
- 0:50about the survey that would just put out in ml.
- 0:54Ops Community, this survey is kind of like, playing off of
- 0:59what we're about to talk about. And I'm fascinated by like,
- 1:03using large language models in production and how people are
- 1:07doing it if they are doing it. And if you're not, why are you
- 1:10not? So please feel free.
- 1:14You fill out that survey? It'll take like literally five
- 1:17minutes. It's the most basic thing ever.
- 1:19And that is my like one call to action that I have for everyone.
- 1:25Before we jump into this great conversation, I'm going to hand
- 1:28it over to Diego, man. I appreciate you running this,
- 1:32so we will talk soon. I'll be back in a bit.
- 1:40It said that everybody here. Great subject, great amount of
- 1:44experts. So excited about the next hour,
- 1:47we're going to be chatting about large language models.
- 1:49So I figure we kind of start really quickly with a quick
- 1:53lightning round of introductions, a Rebecca.
- 1:56I will start with you, everyone. Yes, you were excited to be here
- 2:00about this discussion. I'm Rebecca, I'm a research
- 2:03engineer, Facebook, AI research. And so, I work on primarily an
- 2:08LPR focusing on the robustness of Large language models.
- 2:11I also has worked on during us and responsible, a are aspect of
- 2:18MLP as well as foot by you. David.
- 2:21Hey gives everybody a vice president at an usual Ventures.
- 2:26Be fun. I focus our investments in ml so
- 2:29I've been thinking a lot about language models and spent before
- 2:33that like six years working on in my lab so across a couple of
- 2:37startups techcom and determined AI.
- 2:39Yeah, Percy was at Ford where I did ml platform stuff, like,
- 2:44like a lot of folks have talked to in the community.
- 2:46So honest. Hi.
- 2:48My name is honest, I'm a machine-learning engineer digits
- 2:51at the great chance to write machine learning related
- 2:54Publications, one about natural language processing and then
- 2:56about the Emma Ops and we use Lander block language models in
- 3:00production to the cystic album. So what digits is doing is like
- 3:03basically your real-time engine to understand books for business
- 3:06owners and accountants and basically no time and we Those
- 3:10language models to help start the conversation between
- 3:15accountants in the business owners.
- 3:17So we can talk about the details later, I thought and James,
- 3:21everyone, really started. To be here.
- 3:23I'm James CEO and co-founder of Bountiful and we're building a
- 3:29monitoring and testing tool for foundation model workflows.
- 3:33So one tool for FM app developers that allows them to
- 3:38actually observe and then test A cost quality and latency across
- 3:43their workflows. Excellent.
- 3:44Great. And I'm Diego, Oppenheimer.
- 3:46I'll be your opinionated moderator.
- 3:48Today is to give you, I'm currently serve as a partner at
- 3:53factory HQ, which is a venture fund that specializes in the, I
- 3:57Investments. Previous to that.
- 3:59I was an executive running on the lobster company called being
- 4:02a robot and previous to that. I was the CEO and founder of a
- 4:05if Mia which was one of the first ml up companies.
- 4:08I know this is lucky enough to be part of of this envelopes
- 4:10Community. Since I believe there was double
- 4:13digits of people in the community.
- 4:16So it's been really, really exciting.
- 4:18Time to see all the hard work that the Matrix in Peril and
- 4:22etcetera and friends have put into this guy.
- 4:24Because well, what size are we at now Dimensions?
- 4:26Because it's a like cross 15,000, right?
- 4:29Yeah. It's around 15K, it's wild,
- 4:31easy, amazing. So, I'm really excited.
- 4:34So a lot, a lot of hype around, Chachi PT and kind of what these
- 4:39large language. His models look like and so I
- 4:42figure it out. We could start with grounding on
- 4:44like what do we actually mean by a large language model?
- 4:48I'm going to pick on Rebecca, on this one, to kind of Define,
- 4:52what's the proper definition of what we would look at as a large
- 4:55language model? Sure.
- 4:56Yeah. So this is a bit of a contrarian
- 4:58opinion, but I think this is actually really poorly defined
- 5:02and this is just a new term for, you know, what we can say is
- 5:05transfer learning which is actually existed for decades,
- 5:08but I can give people a bit of an Overview for those who aren't
- 5:13as familiar with the background and history of them all to
- 5:15starting in the 1990s. This is when people start
- 5:18talking about machine learning and artificial intelligence, and
- 5:21this was a period of smaller statistical models.
- 5:25And graduated, in 2010, we start seeing deep learning.
- 5:29So down the Coon coined, this term.
- 5:32So we had larger datasets and we're computation.
- 5:35We see higher level teachers emerge through training on these
- 5:38data sets. And so really this The process
- 5:40of homogenisation. So rather having bespoke feature
- 5:44engineering pipelines for each application.
- 5:46Like you see that you could have the same neural network will
- 5:49deep neural network architecture.
- 5:51Use it for for a lot of different applications and this
- 5:54process of homogenisation has continued and that's really what
- 5:57we see leading up to today. Where we have a really powerful
- 6:01large language models can be used for a variety of
- 6:04applications. And so it's a, another
- 6:06inflection point was 2017 when we Add the transfer, where's
- 6:12paper? Like the attention is all you
- 6:13need paper. And then in 2018, we saw the
- 6:16Bert model. So then he's you know, the years
- 6:20for 2018 on till now we just saw so much like exponential growth
- 6:25and LLP mostly happening on the research side, but now on the
- 6:29production side as well. So it's been super exciting time
- 6:32for LLP. You know, 2018 we had Kurt and
- 6:37then 2019 we have the Roberta paper.
- 6:40Which showed that as you train with architecture, but will Big
- 6:44Ten eyck do this? That you actually can be pretty,
- 6:47pretty much like all the tasks and glue Benchmark.
- 6:50And then we just saw, you know, this is this is like what showed
- 6:53that a scaling matters and scaling is really powerful and
- 6:58then we just saw this influx of, you know, money and resources
- 7:02being poured towards training, large language, models
- 7:05sweetheart, Bert large or 340 million parameters gbtb2 with
- 7:091.5 billion. L T5 with 11 billion GT3 with
- 7:13175 billion which I imagine a lot of people here.
- 7:16Probably you think for your apps and and now we have like really
- 7:21powerful as from opening on that we can use and I would say that
- 7:26this is more of a succession of just us.
- 7:30Moving from very specific models for specific tasks to large
- 7:35pre-trained models that we can use for a variety of tests.
- 7:39So yeah. Say that this idea that's really
- 7:41Central to Foundation models. Or large language models is this
- 7:45idea of transfer learning which is that you can train a model on
- 7:51a lot of information and use it for a variety of Downstream
- 7:54test. So instead of having like one
- 7:57model for sentiment classification and one model for
- 8:00question answering and when model for maybe like breaking
- 8:05your ads you would just have one large pre-trained model.
- 8:08That's very powerful and you can You can just apply it with very
- 8:11minimal changes to a variety of accounts from tasks grow.
- 8:16So I guess to clarify a couple of things we look at it as you
- 8:21know large language models is a subset of foundational models
- 8:25regular. I think foundational models in
- 8:27general would actually apply to not just language models but
- 8:29also kind of like image will be a model whatever's coming out.
- 8:33There's some characteristics to these large language,
- 8:35foundational models. I think in generally we can call
- 8:38them that their no code. Terms of like we access them the
- 8:42natural language which really expands the ability for people
- 8:47to use them, right? I mean, I think that's really
- 8:49what's one of the biggest things that's inspiring?
- 8:51The second kind of what you mentioned.
- 8:52Rebecca, they're kind of, you know, there are no tasks, right?
- 8:55So they're actually generally, you're pretty General, they're
- 8:58not task-specific and they generalize quite well.
- 9:00And I guess we're still figuring out to what other tasks they
- 9:04generalize on a daily basis. And in one thing that I know of
- 9:07that, which is, I think also really interesting is that they
- 9:09don't really see. Over from a traditional ml cold
- 9:12star problem, right? Which is like you can actually
- 9:15start working with them without any sort of like pre-trained
- 9:17data. So one thing and I know you said
- 9:19you had a contrary view by like one of the things that have been
- 9:21like thrown out there is like what do we consider large?
- 9:24And it feels like some people say like okay like the billion
- 9:28parameter kind of like you know, line is the you know what will
- 9:31dry? It felt kind of arbitrary.
- 9:34I mean sounds like a nice little round number but you know do you
- 9:36have any comment on that? Yeah, yeah.
- 9:39So I think This is also super interesting.
- 9:42I'm sure people have seen the Llama models coming from
- 9:45Facebook, but now we're actually seeing that maybe you can do
- 9:50more with smaller models but just train it on where data.
- 9:53So for anyone who's curious, you can look up the chinchilla
- 9:56paper. So there's this idea that models
- 9:57have to be chinchilla optimal, which means that if you have
- 10:02like a one billiard parameter model, you have to train on x
- 10:05amount of data. But then if you increase the
- 10:08number of parameters, you have to train on.
- 10:10Maybe like 10 X or 1000x, more data for it to be chinchilla
- 10:15optimal. So really, it's not just about
- 10:19the parameter sighs. It's also about the amount of
- 10:22data that it was true. Not because a lot of the first
- 10:26generation of these are childish models were undertrained.
- 10:30That's what researchers are realizing right now about
- 10:34awesome. Great too.
- 10:36So we have these, you know, access to these really large
- 10:39models. You know, and I think there's a,
- 10:42I think it's kind of funny because we went from, you know,
- 10:45very, very specific like task models, tons of training data
- 10:49and we're going to go do this, this, this and this and now to
- 10:53the more generalized models to now like really or say, well
- 10:55actually what we really want to do is kind of like the
- 10:57generalized models but also combine them with smaller models
- 11:00and I think a lot of the reasons by combining them smaller models
- 11:04is really around. Okay, these things are actually
- 11:06really hard to put into production.
- 11:08They cost a fortune and And the kind of like economics are
- 11:13slightly flipped, right? I think like anybody, who's so,
- 11:16I've spent almost a decade looking at just production
- 11:19problems. And as soon as we kind of look
- 11:21that these like a lens, I was like, I don't like how we're
- 11:24like, how we're going to make businesses out of it.
- 11:26But cool thing is here is that how does it actually spent quite
- 11:29a bit of time doing some of that work of like, okay, how do we
- 11:34actually make decisions? We use apis, we use our own
- 11:38models. Do we continually train our own
- 11:40Also eyes. I'd like to give you the foreign
- 11:42time to talk to us about like your use case, whatever, you're
- 11:45willing to share but also kind of like what the thought process
- 11:48was, right. And how you broke down getting
- 11:51to you know, a specific in production, use case here.
- 11:56Yeah. So there's like we use large
- 11:59language models in a variety of cases.
- 12:01Like, we have this case of, like, regenerating some text
- 12:03for, for some users, we use logic language models to Define
- 12:08very custom embeddings. And I think to me that that is
- 12:11the beauty right now like back with like five years ago, we
- 12:14said like leaders in the oil with a large language models
- 12:17because there's so much work. Already pre like are
- 12:20pre-trained, it's more important to have clean and good smaller
- 12:25data sets. So we can imagine that custom
- 12:28use cases. So it's not like that but
- 12:31quantity of the data anymore where we can bring them into
- 12:33production, I think Rebecca made a really good point.
- 12:35You need a lot of like data to train it to get your initial
- 12:39state but once you Start reusing them.
- 12:41Then you can fight saying this with a lot of with smaller data
- 12:44sets, so that there is a, the number one would be like,
- 12:48there's a good motivation to use those language models, because
- 12:54we can get to a production ready model with this smaller sample
- 12:58sets. I remember, like back in the
- 12:59day. You like 2015.
- 13:02And so on, we were working on their and their similarity model
- 13:06where we didn't have large language models and we Spend a
- 13:10lot of time like, curating the deer just to get to initial
- 13:13State. The other thing is, like, when
- 13:14we talk about like large language models in terms of
- 13:16generating text, we need to think about, like, how do we
- 13:20integrate this into the part? So for example we need to
- 13:23protect the users against losing Nations or against like weird,
- 13:28generator text. And so what we do on the digit
- 13:30side when we generate a text, it goes through and it's a very
- 13:35stringent not-safe-for-work filter.
- 13:36If it's like the slightest rating there, we store this
- 13:39several wait. And then we have, we check
- 13:42constantly against patterns of hallucinations and if it follows
- 13:44them to one of those patterns, we also throw the sample and
- 13:48then we make sure in our app, whatever we show is, like
- 13:53reviewed by an accountant before.
- 13:54They actually send it to the client and then that is another
- 13:58layer of like there's a human in the loop who's like you could
- 14:00Satan does make sense of this next, its but at the same time
- 14:04those large language models allow to integrate amazing.
- 14:10Vacations are, for example, we are helping business owners to
- 14:13understand their their books in real time, but accounting is
- 14:16highly subjective. So we use large language wants
- 14:20to understand sir to understand the subjectivity with luck
- 14:23language models. And then we use like, we trained
- 14:26like similarity based in machine learning models or we use those
- 14:28generated AI, some of the decisions you made previous two,
- 14:33starting to work with these models.
- 14:35So I think, like it really, really?
- 14:36What I'd love to understand a little bit better.
- 14:38Is like you have the option of Using potentially many Pi, you
- 14:43had the option of grabbing some of these open source models that
- 14:47exist today. Maybe actually, is it word like
- 14:50for the panel actually, like talking about what exists in the
- 14:53open source Community? Because I think a lot of people
- 14:54are unaware that there's a huge movement that is, you know, it's
- 14:59not just opening. I building these models or the
- 15:02large lecture, we like big cloud providers.
- 15:04Really, actually quite a big community of researchers were
- 15:07built. Open-source barge language
- 15:09models like it. Luther in a couple others.
- 15:12So I'll actually let any of the panel has any of you know it's
- 15:15going to kind of like take that one and I yell because it sounds
- 15:18like you've all looked at it. So I don't know if I got any
- 15:22volunteers here. Nobody pop.
- 15:24Yeah, there you go. A lot of time kind of in the
- 15:28open source communities. I mean, number one, it's
- 15:31unbelievable. Some of the capabilities that
- 15:34kind of communities of people are turning out.
- 15:38I think I'm gonna actually message in the chat.
- 15:40If you can, you Discord service that I think this she just
- 15:43jumping in to summarize some of the best work if you want to go
- 15:47and understand the open-source bushes.
- 15:51And so yeah you got to Lucia. I you got copper II who are
- 15:54championing. Some of the attempts to kind of
- 15:56build open source alternatives to some of the largest models
- 16:01lie on as well. Doing really interesting work.
- 16:04I think like I'm not a developer so I'd love kind of alongside me
- 16:08and is or anyone else to Kind of give a developer's viewpoint on
- 16:12this for sure, when talking to companies who are building at
- 16:16the application layer, right. I think they start at least in
- 16:22our experience they start building on top of apis and then
- 16:25they start to consider. Okay there's this sea of
- 16:28open-source equivalent models that I could be using.
- 16:30That might give me some Advantage based on what I really
- 16:33care about for my users. Let me start investigating this,
- 16:36right? And a great place to start is
- 16:38literally jumping into Those three discount, Savage to
- 16:41understand what's being done and obviously hugging faces well, is
- 16:45kind of a lineup of One models, exist, or could be used great
- 16:50too. So, one of the things to talk
- 16:51about and then Allah will pass this on to Hanna's, right show.
- 16:54These models are available for download which are great.
- 16:57I mean, they're not as easy as accessing them, as I got, you
- 17:00know, hitting an API in. A lot of cases, you're going to
- 17:02have to do some inline pre-training or some fine-tuning
- 17:05yourself to actually make them usable.
- 17:07But they're portable, right? Right.
- 17:10And they're not relying on, just being behind an API.
- 17:13So we have a lot of use cases that are potentially not good
- 17:17for just using somebody elses API and sending data.
- 17:19These are definitely options. So you're not kind of boxed out
- 17:22of using Ela Adams because of it.
- 17:25So, with that Preamble honest, love to look like I, you know,
- 17:28walk us through the thought process here of and you don't
- 17:31have to give other the obviously any secrets but would love to
- 17:33understand like considerations how you thought about the
- 17:35problem like what were those qualifications and then you
- 17:38know, kind of like we can walk into like You did it, you know,
- 17:42there's no there's no secrets that I would say like we
- 17:44actually in fact, for published a blog post about like how we
- 17:46implemented it. So somebody wants to Repro this,
- 17:49go ahead and Conquer and yeah, but so when we saw this business
- 17:54problem, with generating questions, for example, always
- 17:57at the people, go to the opening, I play ground to try it
- 18:00out and you see, like, okay, is it actually feasible with a few
- 18:03prompts and and then the, the first I was like, can we
- 18:07actually Repro those things with an off the shelf?
- 18:10Model, which we could host in-house.
- 18:13Because the thinking there is like, if that is possible, then
- 18:16we have the opportunity to quantize and prune the model to
- 18:19reduce the latency. And we have this major benefit
- 18:22of LED, not handing over the data to the, to an external API,
- 18:26which we're not in control anymore.
- 18:28And so, for us with security and financial data, this is really
- 18:32Paramount to everything. We do, we promise our customers,
- 18:34are we? We're trying to be like we're
- 18:37keeping everything secure and in-house.
- 18:39So even going to open Guys like it's that burden is tremendous
- 18:44and would change, like even a whatever application of the
- 18:47terms and conditions with our customers and therefore there's
- 18:51a huge motivation to like cambree used open source models
- 18:54and host them. All ourselves is another benefit
- 18:57of leg. You have lower the network
- 18:58excuse, if you have the model sitting right next to you and
- 19:01your instance, there's like lots of cool benefits.
- 19:04But to would get away with saying, like, do you have to
- 19:06punch in a model? But in that moment, don't you
- 19:10also have like lots of opportunities to like make those
- 19:13models smaller and make the domain specific make them useful
- 19:17to your specific use case and the model can then in the moment
- 19:21and forget about all the other Villages, concerted the string.
- 19:25So speaking of use cases and you know, you kind of mentioned one,
- 19:28we're like very particular needed to be able to kind of
- 19:31Bring It in-house like David. You've been looking at a bunch
- 19:35of things you've been with. You had the developer ecosystem
- 19:38Doodle for Road a pretty cool blog.
- 19:40First about the developer ecosystem.
- 19:43But like what use cases are you seeing kind of how to maybe kind
- 19:47of talk a little bit about Adam, think about when to use look
- 19:51let's focus on production right and production use cases.
- 19:54And what you know when to go in One Direction, one to go in the
- 19:56other direction. What you're seeing that's really
- 19:58interesting right now. Yeah, I guess like I have a
- 20:00framework that is to think about this which is like, okay.
- 20:03So we would just talk about Foundation models and David
- 20:06coming for a while. But like this capability kind of
- 20:08got dropped in our lap magically by opening.
- 20:10A, i a couple years ago and so like when you, when you think
- 20:14about what's being used in production now, I think a lot of
- 20:17how to think about it is just like, how much time do we had to
- 20:21execute with this amazing new technology we have.
- 20:24And so, I frame everything to like, how long does it actually
- 20:27take to build it and so the obvious stuff that you saw in
- 20:29production first that because like the most simple application
- 20:33of language models and stuff like Jasper and Poppy AI that
- 20:36are completing text, right? Or in the Like sales category,
- 20:41like Reggie and auto bound books, that are kind of like
- 20:43generating sales, copy and sales emails and things like that.
- 20:46And so why it's easiest thing. Like you the production is like
- 20:50basically just a call to open a i you had one API called your
- 20:53application and your good and and you can do really incredible
- 20:56things. And so a lot of the stuff that
- 20:58requires no infrastructure, you see really successful in Pride
- 21:03right away. And then you get like one layer
- 21:06down like what's the next level of complexity as you try to do
- 21:09things? I think like the most obvious
- 21:11stuff is okay. We want to incorporate external
- 21:13information about the world or about our users into these
- 21:17models. Sort of like, what hottest was
- 21:20just talking about in one sense, like you need to understand
- 21:23what's going on in the world to be able to do anything and we
- 21:25counting or documents or spreadsheets, whatever it may
- 21:27be. And so there you have to start
- 21:31like building infrastructure databases Integrations, pulling
- 21:34data from whatever sources you need.
- 21:37And they're just like the fundamental time.
- 21:38It takes to do engineering. And so I think we're in the
- 21:41moment right now where a lot of what we're seeing.
- 21:43Come to production are tools that were, people are finally
- 21:47finished that engineering workload, that it takes to like,
- 21:49make all that happen and it even could be some not to fine-tuning
- 21:52and things like that, but for the most part, I think it's like
- 21:54just like Grab some stuff from a database connect to slack or
- 21:57whatever, you know. So I didn't act category, like
- 22:00you're some big shot, you beauty.
- 22:02It requires a little bit of context of like a whole
- 22:04conversation and wrangling that we're all of the bespoke
- 22:07chatbots that got announced when they announced their new API
- 22:10last week couple of folks. I've worked with like nem, which
- 22:13is a better to notion read. Sure, historical, documents and
- 22:17emails, and stuff like that. To help like complete do text
- 22:22and pollution but more personalized to you.
- 22:25Working with a company that's in our portfolio, called apt Edge.
- 22:28Who do this awesome, like customer service work where they
- 22:31have to connect to, like, Jared tickets in zendesk ticket since
- 22:34lacked like know, what's going on?
- 22:36So, it's like my tear to of complexity.
- 22:40And for those Park people like in that chair, still are doing
- 22:45the amazing work that has done to like, actually go grab a
- 22:47model. Fine-tune it that's hard work
- 22:50still and this stuff is like, kind of somewhat
- 22:52straightforward, even if it's more complicated.
- 22:55So I think of like, what's the next tier of complexity?
- 22:58And I think there's like two big categories you can get to one is
- 23:04like increasing model complexity.
- 23:05So like being chains of calls, we have like want to do.
- 23:10Agents and you want to call it to language model and get a
- 23:12response and parse the response. I call it the language model
- 23:14again. Yeah.
- 23:16And that's just kind of gets on unwieldy still.
- 23:19Like we haven't really done all. It's just actually the kind of
- 23:21hard to be confident in the system's.
- 23:23You build with that in a way where you're like ready to put
- 23:26in front of users, I don't think a lot of people have gotten
- 23:28there yet. So there's like these open
- 23:30source Frameworks like laying chain and stuff out.
- 23:32There were a lot of people are doing cool stuff that making
- 23:34chains but trusting that it exists probably, why James exist
- 23:39is because like Trust Some of that back and forth with the
- 23:42model is still challenging. And I think this is another
- 23:45engineering Gap where I think it's just going to take us time
- 23:47as a community and as a set of developers to figure out like
- 23:53how do you do it and how do you manage it?
- 23:54And what you can trust and the other side stuff like
- 23:58automation, where you're like like a lot of stuff to see now
- 24:00is copilot. Honest talked about this where
- 24:02you like you have a human in the loop to validate and that's
- 24:06because like this evening we already it's like hard to build
- 24:08all the tools we need to trust models right now.
- 24:10But but where we want to go is up the mission where we have
- 24:16lme's doing everything but that again requires just a ton of
- 24:20engineering work and going down that route.
- 24:22Like that's where people really think fine-tuning is necessary
- 24:26you kind of have to or rlh like the more complicated methods of
- 24:30owning and tuning models that you can trust.
- 24:34It's yeah I talked about like there's a big difference when
- 24:36you give the L and the keys to the car versus the autopilot.
- 24:41There's a lot more things that can happen and so it's like long
- 24:44answer but I think there's just a what we're seeing is more and
- 24:47more engineering complexity getting layered onto this
- 24:50amazing ml thing and use cases spawn up nearly daily because of
- 24:56the amazing progress, we're going getting, you can sort of
- 25:00track it on a straight line of how complex people are willing
- 25:03to go. I think the next Frontier to
- 25:06what house is talking about is, okay, can we go and weights, can
- 25:09we? Distill models.
- 25:11Can we do lower latency work? Because there's already that
- 25:15that's part of engineering complexity.
- 25:17Some people are bold and on the frontier doing it, but I think a
- 25:21lot of people are still sort of in level 1.
- 25:24It David, you bring up a really good point that every little
- 25:28open source language model comes with it, its own tokenizer as an
- 25:31example, right? Like you have your bird that has
- 25:33like workpiece tokenization. You have your Excel item that is
- 25:36like sitting in even like putting those pieces together.
- 25:40That isn't it real whole Challenge and I told you glanced
- 25:43over this, like I'm sorry about all this.
- 25:45But like once you once you get over this hump and you actually
- 25:49have the models and weights in front of you, then you can run
- 25:52like for example the tents up over time, And like, see what
- 25:55can I cut out as language model and make the ladies in Fast and
- 25:59this is something which maybe you don't have to do for the
- 26:02probable. But if like, if you see a lot of
- 26:04inferences that investment might pay off and then you're sort of
- 26:08this coupled. See, from the API, you get a
- 26:10faster response and you save money long term, but it to your
- 26:15point it was like this lots of engineering complexity in there.
- 26:17So it's like, I can see the trade of products Services might
- 26:19be easier to code or an API because you get it up and
- 26:22running faster and versus long-term benefits.
- 26:25One of the interesting things is your Diego mention their flight
- 26:27that like a lot of what's happened is this like
- 26:30democratization where so many people can develop with language
- 26:33models. And so it's like, oh I guess go
- 26:34write a prompt and I've done something cool and man, it's
- 26:38really intimidating. Just like it always has been to
- 26:41go from that to like I'm going to download weights and learn
- 26:43tensorflow and tuna model and use the touch of low profile.
- 26:47Like I was in ml engineer for a whole bunch of years and I never
- 26:49use the profiler because like getting to that level is kind of
- 26:51scary still, you know? And I was like I think a decent
- 26:54one baby. It is still like, there's like
- 26:56that's of ml problems that he gets really complicated, really
- 26:59fast. And so, I think there's a lot of
- 27:02people Sort of on the sidelines once you get to that level of
- 27:05complexity because it's suddenly like, yeah.
- 27:08But we've told everybody you don't need to learn them L to do
- 27:11ML and then it's like they're my dearest.
- 27:14Go fine-tuned 13 billion parameter model, good luck and
- 27:17then think there's still a ton of work.
- 27:19We have to do to make that as accessible as a prompt.
- 27:22Maybe I'm Emmanuel, Mason machine learning engineer, a
- 27:28stripe and author of building, machine learning, powered
- 27:30applications. And if you don't, A machine
- 27:33learning models to explode, you should subscribe to this
- 27:37podcast. I was just going to double tap
- 27:52on that, like a bunch of the. We've talked to many thousands
- 27:58of generative, AI companies, write and Most of them are not
- 28:05the people building. These companies are not ml
- 28:07developers. They're not ml Engineers right
- 28:10there, they're not ml people. They are software Engineers that
- 28:13are trying to build really interesting software by kind of
- 28:17plugging in these incredible pieces of Technology, right?
- 28:21And they're playing in the tier 2 complexity over that you just
- 28:25explained right where by, okay, we're going to be on till one,
- 28:29which is kind of you my subscribers that kind of UI
- 28:31rapper style, like Demo like this is cool, I can build on
- 28:34this, but you actually building kind of semi agentic, chained
- 28:39systems right there. Get highly complex very quickly,
- 28:44but even jump into that third tier where it's kind of do
- 28:47yourself ml development. A thing is just a huge barrier,
- 28:51so I think we're going to see very large companies built in
- 28:56that tier 2 of complexity, right?
- 28:58So we saw like, Jasper. Enormous company, right?
- 29:03Built on that Tier 1 I think we're going to see a second wave
- 29:07of a huge number of companies that we're observing right now
- 29:10building that th you can pecs T. So we're rebuilding the tooling
- 29:15that enables people to actually manage that complexity such that
- 29:18they can build really interesting agentic systems and
- 29:21then potentially automated ones. And then I think of, who knows
- 29:25when we get to like tier 3, right?
- 29:27And like Anna's is done, very non-trivial.
- 29:30Work as a In ml, the relevant ml engineer, to get to that stage,
- 29:35I think in that to tear complexity, we're seeing a lot
- 29:38more highly capitalized, companies that are just building
- 29:42that Tia to our software application players.
- 29:45So that's why we're building. What we're building is to try to
- 29:47enable them but I think we're going to see a huge population
- 29:49of this time. So I'm going to try to
- 29:52completely oversimplify kind of like what three categories that
- 29:58we can talk about for ELA abs and production.
- 30:00When we talk about Entrust will talk about testing the results
- 30:05security privacy. Anything that's regarding kind
- 30:08of like, you know, the you know, the ability to use these.
- 30:11Let's talk about latency and I'm thinking latency a category,
- 30:15because I think it's completely under appreciated, how much
- 30:19latency matters building any sort of software, maybe to your
- 30:21point James about how all these software Engineers are actually
- 30:24working on these problems, it might be more present.
- 30:27But, you know, we'll talk about, you know, kind of lazy.
- 30:29And they will talk about cost. Right?
- 30:31And so I think those three things and I think in terms of
- 30:33in all of these three things, I think we can break it down into
- 30:37the engineering tools that are going to exist how we're
- 30:38actually going to apply that what people are doing.
- 30:40What research is coming in because I think new
- 30:42architectures are coming out and so what we can start on any one
- 30:46of them, right? So I'm going to Define, I'm
- 30:48going to Define cost as literally what it cost to run.
- 30:51And this isn't just about, you know, the API call, I do know,
- 30:56we're talking about what it takes to run to the hardware
- 30:58what it takes to you. Lift up that Hardware what?
- 31:01Takes to kind of like run not at scale, as well as potentially
- 31:05use the apis. Obviously I mention a little bit
- 31:08about that trust, right? So trust will talk about privacy
- 31:10security like the use cases there and then forgetting the
- 31:14other one was that latency latency, which is really the
- 31:17definition of the use cases, right?
- 31:18So maybe we'll start with like latency to begin with and you
- 31:25know, James I know this is near and dear to your heart.
- 31:27So yeah. First of all, Define to us like
- 31:31What latency is in these kind of like LM world use cases.
- 31:36How do we look how we should look at it?
- 31:38And more importantly maybe kind of like punching some of the
- 31:41problems. I think it's an unsolved Problem
- 31:42by the way so like I don't expect you to answer it for us
- 31:45but kind of like we can if you want to kind of like frame it
- 31:48for us. Yeah absolutely.
- 31:50So I think you can observe and think about latency at two
- 31:54levels. Right?
- 31:55One is that the kind of instance level like specific model and
- 31:59then one is it the the workflow level Right?
- 32:01From a more kind of user perspective.
- 32:03This is like you're trying to deliver ultimately some kind of
- 32:06user experience that adds value to someone such a, you can build
- 32:11an application potentially build a company Etc.
- 32:14So when you're cooling, let's say you're at that tier 2 of
- 32:17complexity that David described, right?
- 32:19You've got a chained kind of workflow of potentially multiple
- 32:23instances of models. Going to give you an idea here.
- 32:25I was talking to the founder yesterday and he got lost
- 32:29walking me through his own kind of Of workflow here and he's
- 32:33cooling seven different instances of models, right?
- 32:37Four of them. Fine-tuned Babbage.
- 32:40There are a couple of embeddings models in there, right?
- 32:43And each of those calls based on the AP, r-- any is bringing in
- 32:47some sort of latency Chained together at the workflow, kind
- 32:53of level, you have the ultimate agency that the user
- 32:56experiences. I think that's going to be king
- 32:59great, especially in the second level of complexity.
- 33:01It's like, I need to Bill especially for those who are
- 33:04building here thinking software, right?
- 33:05And to your point the OE. So like maybe they're thinking
- 33:08more about this than others, they absolutely are.
- 33:11So we have talked about when in our conversations with companies
- 33:15is a cost quality and latency triangle right?
- 33:19And Ending on your use case, you care about one of those more
- 33:22than the other two and like the best.
- 33:25The best example of this is copilot, right?
- 33:28Like get our copilot latency is everything you have to stay
- 33:33within a flow state for your user experience such that you
- 33:37know we could they can make those functionalities better but
- 33:42they don't want to because we want to maintain very, very low
- 33:44latency. That's how we think we need to
- 33:47start thinking about this is again there's a latency of Can
- 33:49one call to one model but then there's a latency of an
- 33:52end-to-end use route. Yeah.
- 33:54I love a pic. That example because I like I've
- 33:58many times use that example as the kind of like state of the
- 34:03art in terms of latency and it's pretty darn slow, right?
- 34:07Like in terms of like when I look at right now it's a
- 34:10suggestion but like I want autocomplete and jumping from
- 34:14suggestion to back to the computer using doing
- 34:16autocomplete will require fairly Significant engineering to be
- 34:21able to get that and actually like my gas.
- 34:23And I'm not the expert here, is that it will take kind of like
- 34:26re-architecting some of these models or you know, far from the
- 34:30ground up. So I don't know.
- 34:31How do we have a question here that people are asking about
- 34:33her? I'm going to quickly Define
- 34:34production and then I'm going to jump to you Rebecca because I
- 34:36saw you got excited about re architectures.
- 34:38So what we mean about production is actually like an actual
- 34:41application that's being used for users.
- 34:43As you know and I would argue kind of like eating a kind of
- 34:45like you do in a production matter.
- 34:47So a service that is being like Offered to other people that is
- 34:51running all the time. This is beyond the demo.
- 34:53This is beyond the, you know, kind of like coil weekend, you
- 34:58know, kind of thing. This is like you're actually
- 34:59using it as part of a business process, educational process,
- 35:02whatever you're using. Production is I usually like to
- 35:05Define it like people scream if it goes down.
- 35:09And so I think somebody was asking about like, does that
- 35:12count that open API service in Azure?
- 35:14Absolutely. If you're using it as part of a
- 35:16production application, like if you're just using it for your
- 35:19Cory a pat, you know, in on your computer then I wouldn't
- 35:22consider that production. So rewinding a little bit we'll
- 35:25go back to, you know, what is it going to take?
- 35:27We're still in the Pas subject of latency and you know,
- 35:31state-of-the-art right now is a couple milliseconds.
- 35:34I think actually like there was a paper that talked about
- 35:37state-of-the-art in kind of like what I call in a lab environment
- 35:39was a 29 Ms. In Frank's past which is like you know,
- 35:45discontinues a bunch of use cases that I've been
- 35:47traditionally worked on in a male which Our kind of like sub,
- 35:5015, Ms, use cases, but back to you Rebecca.
- 35:53What are we seeing that's going to be able to, like, hit this
- 35:55latency problem? Yeah, no, that's a great
- 35:57question, a lot of thoughts and less.
- 35:59Yeah, I think Hannah's the uptime maze optimizations, you
- 36:02mention with quantization and model distillation awesome.
- 36:06Yeah, there's a lot of great engineering work happening now.
- 36:10So I actually think that engineering especially in for
- 36:13engineering and foreknowledge is really relevant.
- 36:16So, yes, it's people need to learn, you know, pie.
- 36:19Church tensorflow, learn how to find you models, but I think
- 36:24actually more and more just required engineering skills are
- 36:28increasingly relevant MLP and was to the production, Isaac
- 36:32zation of a, I going forward. So see, I just really want to
- 36:35drive that point home as well. You need good engineer's in the
- 36:39space on D and for inside. So some of the inference being
- 36:43slow is indeed Diego. I think you hit the nail on the
- 36:46head here. It's the Transformers
- 36:48architecture. So Transformer and this is great
- 36:51for a long-range dependencies and capturing context at is
- 36:54actually faster in training because you have access to all
- 36:56of them fight but it's not good for fast and friends.
- 37:00And you know, this is something that is very inherent to the
- 37:04architecture and that's why we're talking about latency and
- 37:07like, imprints need so much because like, we are bottleneck
- 37:10just by the Transformers structure.
- 37:14And so, if you compare Transformers 2 models, for like
- 37:17recurring neural networks like iron, Nuns and Transformers are
- 37:20not naturally sequential. So are an empty coding is going
- 37:24to be a lot faster than Transformers.
- 37:26Which have your multi-headed attention Matrix computations?
- 37:30So you just have more competitions and added to that.
- 37:32We also you know we're talking about Allah.
- 37:34I'm so there's also just more parameters and these models so
- 37:37in every board costs you have a lot more layers, tensors the
- 37:42upper so it's just yeah I think just everything just compounds
- 37:46to being slow, all right. So yeah, I think some of this
- 37:51will require you if we really want to talk like just like
- 37:57we're moving this bottleneck entirely as opposed to like
- 38:00working around Transformers, which is what we've been doing.
- 38:03It will probably require an architecture change.
- 38:07That's going to be hard because we've seen Transformers have
- 38:09been so dominant since 2017 and it looks like it's becoming more
- 38:13and more dominant and not going the other way around.
- 38:16If people are interested and this is you know, still very
- 38:18much Such an academic research territory.
- 38:21But I think I've been excited about as its makeup state-space
- 38:24models, which is sequential. And so it that they
- 38:29underperformed a to like Transformers model so far.
- 38:34But there, I think you know that takes off.
- 38:38Watch out for that coming out of Stanford, then we can solve the
- 38:43local paper. I'll put the paper in the chat.
- 38:45The Hungry Hungry Hippos, chat. I just want to jump in there
- 38:48because the are you sending? Pausing.
- 38:49Right, it basically invalidates right now whole host of use
- 38:53cases like that late for that fundamental latency barrier.
- 38:57Like there are so many things that you can do in principle
- 39:00that currently you can't do in practice because of that
- 39:03fundamental latency. Very even if especially when
- 39:06you're at that tear do of complexity right at once.
- 39:09So the founder was talking about that.
- 39:10I was there's doing this company initial pass on that.
- 39:14Workflow was 15 seconds right now.
- 39:16That is a fundamental identity. When we use a See, they're just
- 39:19doesn't work. It's a non-starter like
- 39:21everyone's like giggling a little bit right now.
- 39:23He knows to get that down to like three and a half seconds
- 39:28through kind of fine-tuning. Babbage instance ears, rather
- 39:31than using large models Etc. Taking this tier 2 complexity
- 39:35perspective and it might be good enough.
- 39:38It like it there might be good enough to build a really
- 39:40interesting company on top of in that tier 2 complexity.
- 39:45But that won't cut it for other use cases, where there in a half
- 39:47seconds, just kind of lost you at the room rate, the others
- 39:51funny like orders of magnitude of like, for each person with
- 39:53their seven person or seven calls to an API, there's someone
- 39:56with 70 in lighter thinking of of 700 to do complicated things.
- 40:00And so like there, it's hard to describe how many orders of
- 40:03magnitude room there is for improvement.
- 40:05It's a lot. And I think like we are talking
- 40:09about atoms in production, right?
- 40:11Whichever more broadly about foundational models.
- 40:15He considered a kind of multimodal well that's coming
- 40:18down the pipeline, right? Which is just going to be
- 40:20fascinating. Maybe that's an unhelpful
- 40:22grenades were thrown into the room with kind of 15 minutes to
- 40:25go Omega Zell for grenade. He knows we'll find out, but I
- 40:29think one thing I wanted to get people's opinion on was like
- 40:33taking them moves lower approach of these large models, right?
- 40:37If we assume that some of these very large models, are going to
- 40:40go just get cheaper, and cheaper, and cheaper and get
- 40:43faster and faster. And faster, like what changes
- 40:47fundamentally over the next 12 months if okay we don't know why
- 40:52but like maybe it's a new fundamental architecture but in
- 40:5612 months opening II has a model that is just 10x faster and is
- 41:0110x cheaper again. Like how does the world change?
- 41:03I'd love to hear kind of instincts on that.
- 41:05The it when we part is we have like a Divergence right where
- 41:08you're actually don't get you know you don't get actually the
- 41:14you know what? Like larger model Mega model
- 41:16that it just gets smaller and cheaper.
- 41:18But we actually get to back to its highly specialized models.
- 41:22Or, you know, I think one of the I'd actually seen implemented
- 41:28recently and it's really interesting.
- 41:29These kind of like start with one of these very large language
- 41:33models and actually use them as a router like a task router into
- 41:37a much more specialized tasks. And I see how this is like, not
- 41:41even I'm guessing he's going that's what he's doing
- 41:42internally, which is Kind of starting from a more generalized
- 41:46task, right? Because you take advantage of
- 41:48the You take advantage of the kind of like, no need for the
- 41:52pre-training. Kind of like, you know, kind of
- 41:54like no, cold start problem. You can like go into a use case
- 41:58and then route from there into something a lot more.
- 42:00Specialized that cumulates latency though, right?
- 42:04And so, I think like going back to kind of like I because I
- 42:06wanted to close down the fought on the latency thing.
- 42:08Like I think you know, the most important part that I see here
- 42:11is, like, you really need to go down to the use case and say,
- 42:14okay, what is this? Use case requirement right for
- 42:17latency. Because, you know, if I'm
- 42:19looking at Near real-time use cases like the reality is that,
- 42:23at least today, right? I'm kind of out of luck, right?
- 42:28Like and so, you're not really going to be able to achieve
- 42:30those. You're going to have to look at
- 42:33different architectures smaller models, distill it down to like,
- 42:37very specialized to get anything even close to that.
- 42:40And if you start thinking about again, like, you know, you look
- 42:42at things like you've mentioned, like you're chaining, these
- 42:44things you're just accumulating latency, right?
- 42:47And you know across across those chains, So you get into any get
- 42:50in here. I have a big batch process.
- 42:52It doesn't really matter. But I think that's a, you know,
- 42:55that's that's really interesting because I think we, you know, I
- 42:58don't want to be like to deterministic here we live in a
- 43:00probabilistic world but like it sink right now truly real-time
- 43:04use cases are kind of out of the question in like point today and
- 43:09time at least from I know kind of like production perspective
- 43:12at least from what we've seen. Now that said I'm sure that the
- 43:15Facebook's and Google's and you know, kind of like Microsoft's
- 43:18are very much working on this problem but I think that's a
- 43:22reality, at least in the, in its current state Anybody disagree
- 43:26with that? Or is that kind of a?
- 43:28I am? Can we get a mop?
- 43:30I don't disagree, but I just think it's bold to be recorded
- 43:33making claims about where we are said point in time.
- 43:36I said point in time, you know, about two months and will be
- 43:40like, how'd you remember? Where latency was a problem?
- 43:42Yeah, I'm that but but I think latency is a function of like
- 43:48the business case the the way we deploy like with, for most of
- 43:52the applications were talking about, we don't need Need a
- 43:55general model like GT right leg. We can go through like a debates
- 43:58to silly application and what worked really well for us, just
- 44:00like sort of like the teacher-student approach.
- 44:03We're like we take a larger model and then break this down
- 44:06into something smaller, cut out layers and and then.
- 44:10So if I compare like the latency from our first birth deployment,
- 44:13a couple years ago to like what we have now, it's like magnitude
- 44:16sticker. It is late and we were able to
- 44:19get like reduced models, we would get the profilers, we get
- 44:22X, Ln, X La, we get almonds, Optimizations.
- 44:26And so we get now, we can even run those models on the CPU in a
- 44:31very condensed version and then the costs player play a role as
- 44:35well. I'd like to like you can throw
- 44:36money at it and somebody said in the chat like you can just use
- 44:39the GD, right? So if your business case pays
- 44:42for this, that's the option, but I think the there to make it
- 44:46very domain-specific, is the biggest latency saver.
- 44:50You can you can go after And there's there's there's come in
- 44:53on the chat, I think like, like let's talk about, I think we are
- 44:57rephrasing, we're talking about latency across the entire
- 45:00workflow, right? Which also includes like
- 45:02everything else, right? Like the system You're Building
- 45:04likely has over. Had the problem is that you're
- 45:06actually significantly adding a bunch of latency while usually
- 45:10in like any of these kind of like online systems your offline
- 45:13system, you know, the lane, see your systems.
- 45:16Adding everything from IO to database, poles to everything,
- 45:20like your now, adding African amount more as you kind of like
- 45:24chain through these to these models.
- 45:27So I love it. You gave me the perfect segue
- 45:29Hannah's. Here, they talk about and you
- 45:31may be able to kind of let put it on CPUs and anybody who's
- 45:35worked in this space knows that. That is the Holy Grail for your
- 45:40wallet. Given that running gpus is about
- 45:44Forex what you can do on CPUs. And so, I'll go back to our
- 45:48wedding. I'm definitely stealing this
- 45:50James. I love the triangle of the
- 45:51quality. Constantly and see.
- 45:54And so, you know, determining the the use case is right
- 45:58because when you look at in friends and influence on gpus
- 46:02and you look at that they are on average and I think it can be
- 46:05more on average. It's about 4X more expensive.
- 46:07That's what really you need to be like talking.
- 46:09So let's talk about cost and the use cases, you know around that
- 46:13and how to think about I'm going to pick on you David because
- 46:16you're probably looking at a bunch of companies and being
- 46:18like, yeah, this sounds great, but if they scale like they
- 46:21can't afford It that's actually like you know run this company
- 46:25you know, at any like cost like that makes sense even though you
- 46:29know, GPT 3.5 is now 10x cheaper or actually I'll just let you
- 46:33answer truthfully. I got I think this is an
- 46:37interesting question because it's really important and I've
- 46:40seen what happens at scale and it's almost like were thinning
- 46:44to Rebecca because like meta scale cost becomes pay for whole
- 46:48departments by making one percent improvements on like
- 46:51their ad. In for a ranking engine, right,
- 46:53I guess, it's insane. What happens at scale with
- 46:56inference for startups, at again, what are you doing
- 46:59started? I just like, I don't know, like
- 47:02money on fire, like beat people when, you know, and I just
- 47:05haven't seen to be a constraint early on it, certainly of do the
- 47:08math. So like it's really easy to back
- 47:10in the envelope. How much is one inference cost?
- 47:13How many infants is, what you do?
- 47:15What's your margin per inference?
- 47:17And you can configure all that about value.
- 47:19You can get there on the apis and particular price.
- 47:22Things all pretty easy to predict.
- 47:26That's why I always do that math.
- 47:27It's good to do that math. It's good to know where your
- 47:29margins at. But you know, I think part of
- 47:32how I think about it is you should thanks to folks like
- 47:36honest who have gone down the road before and show notes that
- 47:39you can build domain specific models.
- 47:41And there is room to optimize. Like, it's a question of
- 47:44figuring out, when, to optimize for cost, is for most of the
- 47:47people that I work with, and for most people, it's not, they 14
- 47:52meta, it's certainly true that you have to do it and it's
- 47:55worthless. During 100 Engineers to work on
- 47:57it baby or a lot, because it's so important.
- 48:01But it's just this thing that you have all with overtime
- 48:03monitor, I always recommend people be aware of but I haven't
- 48:07seen it blocked. A lot of these cases early on,
- 48:09that's what I know. A lot of people that were really
- 48:10happy when the new chat API came out was 10 times cheaper because
- 48:15yeah, this is like, for startups at least you're talking about
- 48:18Runway, like, how much money do you have in the bank to survive
- 48:22is changing and that's critical, but You can do it.
- 48:27Like I think you can hire an ml person.
- 48:30You can learn ml. You can find two models.
- 48:32You can like I think there are tools out there to avert cost,
- 48:36which is something you have to be thoughtful of coordinating.
- 48:39Is this an exercise Han? Is that you date up front?
- 48:41Like, did you think about even back-of-the-envelope?
- 48:44Like, okay, we're going to go to do x, y, z.
- 48:46This is what it's going to cost, like, you talk to people in your
- 48:49team that were beyond the MLT. Because I'm assuming this is
- 48:51like, at least involve product management or leadership of the
- 48:54company. In terms of like, yeah, we're
- 48:55going This route. Absolutely.
- 48:57We've been in the back of the envelope calculations.
- 49:00It's a little bit tricky with opening.
- 49:01I'd like how many tokens doesn't actually require.
- 49:03It's all this town's perfect, we get some back of level of
- 49:06estimations went to the CEOs. Like would you be?
- 49:08Okay is the stator goes to another Epi.
- 49:11This will obviously a proxy questions there and then there's
- 49:14obviously a Cost question in for the with the tasks we had
- 49:18invented. It was more beneficial to do
- 49:21this in-house. We just to give in like a little
- 49:25bit inside. On the scale though, we have to
- 49:27processed and close to 100 million transactions a day.
- 49:33That is not like something we could easily ship over to the
- 49:37needy. I and then we have to talk about
- 49:39like latency since our up and in that moment even the project of
- 49:43like investigating the model and figuring out, what could be cuts
- 49:47to sort. So we could actually run it on a
- 49:48CPU Festival was super beneficial so then we can we can
- 49:54talk about it. Like what happens if we brought
- 49:56we brought us this batch processor is streaming that
- 49:58Cerberus but yeah it costs is basically the first course in
- 50:01the media it's a little dark room.
- 50:04So we're going to go into the last subject of the morning
- 50:09here, I guess morning for us at evening for James, which is kind
- 50:13of trust and Trust in the systems.
- 50:14And so there's one term that I think it's worth defining, which
- 50:19is like, some people might have heard of it, that these models
- 50:22hallucinate and I'm pretty sure that's not because they're just
- 50:24trade on a bunch of people's Burning Man, pictures, maybe
- 50:27Rebecca you can actually kind of like help Define what a
- 50:29Hallucination is in this in the In this context and why, I know,
- 50:36kind of discuss why this needs to happen.
- 50:39I would say, who is the nation's?
- 50:42Yeah, just anything, that's not a factually accurate and just
- 50:45falls into the accuracy problem when you're thinking about
- 50:49evaluating language model outputs.
- 50:51You know sometimes it's open-ended like how engaging or
- 50:54interesting or these outputs sometimes it's like as a school
- 50:57and our grammatical mistakes, but what a lot of people are
- 51:00caring about when we're proud sizing, these As I don't want
- 51:04the model to say that, you know, Michelle Obama is the president.
- 51:08For example, that it's like a very steep of my brand and bears
- 51:12for how our company and this is a problem that has actually
- 51:16existed and language models for four years, but I think it's
- 51:21become a bigger problem because now people are actually using
- 51:23these islands for real-world test.
- 51:26So now, you know, it's not just like researchers writing papers
- 51:28about who this, the nation's kind of prove it.
- 51:31It's like actual Users of these all I'm saying my model just you
- 51:38know read this this text where this Downstream use case, like
- 51:41maybe like generating legal text, for example and it's just
- 51:44totally wrong and really embarrassing for a company.
- 51:48So yeah, I think that this is, you know, we talked a little bit
- 51:51about research directions. I think David may be or how does
- 51:57the mentioned, you know, having basically external knowledge
- 52:01sources looking in like retrieval, right?
- 52:04Out of the gates, a true. But like I think we're
- 52:06describing is like retrieval augmented duration.
- 52:10So yeah, a large language models currently as it stands, I'm a
- 52:14very poor sources of that. Some knowledge and this is
- 52:21because it's just not very proud or efficient to be learning
- 52:23facts. And so, I think the way forward
- 52:25really is having these knowledge bases and combining it maybe
- 52:30with like a retrieval and don't actually, I seem to chat bank
- 52:34and actually hit it really well with how I like to describe it.
- 52:36I mean, like, we're used to very deterministic, workflows and
- 52:40code, and we've been building deterministic systems for a
- 52:43really long time, but now we're applying kind of like a
- 52:47probabilistic. You know, kind of like
- 52:49implementation to some of those. So maybe some of the tips and
- 52:54tricks and I got made my tricks. Really be like how how have
- 52:57people been thinking about making these things feel more
- 53:00deterministic and there's been a lot of techniques that have been
- 53:03used by different teams, you know, to do it.
- 53:06But I'd love anybody. Jump in here.
- 53:08In terms of how to think about some introduction of some of the
- 53:11techniques you can use to make these workflows feel more
- 53:13deterministic. I think you talked about kind of
- 53:15like the teacher-student kind of model that There's a like kind
- 53:19of like, you know, human reinforcement like, you know,
- 53:21kind of model. There's a bunch of these
- 53:23different models that can be used not to confuse with the
- 53:26actual models. You know, I'm terms of how to do
- 53:29is open up the room to anybody who wants to kind of like clutch
- 53:31on that. Because I think this is so
- 53:32important for us to build trust in these systems, right?
- 53:36And and truly adopt them in in, you know, most people don't
- 53:39understand what a probabilistic workflow is by nature.
- 53:43Humans are bad at it. I think you go to study the use
- 53:46case. Again right, there are some use
- 53:47cases Right now that have like high affordability of something
- 53:53not quite being right, right. Such that I can I can generate
- 53:57an output and as affordance for my my users such that.
- 54:03Okay. If I if we get Society wrong or
- 54:05very wrong or whatever and that's fine, like I wasn't shown
- 54:09the user and the user weren't take a bad action on the back of
- 54:12it. There are obviously low
- 54:14affordance use cases that we just can't surf today, right?
- 54:17Like I don't want to To a medical diagnosis from an llm,
- 54:21right because that's very low of wouldn't be right if he gets it
- 54:25wrong like it's game over, right?
- 54:28So and I think I wonder how long it will take until we start to
- 54:35slide down that affordance scale.
- 54:37That's kind of as an aside to your question that I think is
- 54:40good context. Allah is have those really cool
- 54:42a professor like they're basically databases with the
- 54:44constant looker and so because we have to compute the weights.
- 54:49There's just a fixed number of Weights but as a downside is
- 54:52like we lose out the accuracy of their of the results being
- 54:56returned trained in. So, whatever would I found,
- 54:59really interesting was like, okay, this charity is like, this
- 55:03is some submission risk there. And then when I saw the
- 55:06infamous, Listen what what genius doing is basically, they
- 55:10used like generate me a query that Kriegers the database that
- 55:14gives you the top five results in, then it goes back into some
- 55:17reason. It summarization application.
- 55:20So in that inner, but in the benefit here is like it leaves
- 55:24out on the concert look up by the benefit is basically get
- 55:28them. All the references, whenever
- 55:30they'd State something and maybe in the meantime, we need to
- 55:33think about on a system level in such a way, they're like, okay,
- 55:36how can we trade? References, or things like this.
- 55:39And for the moment, give up the comments and look up concept and
- 55:43then work towards that there is maybe it's part of the model as
- 55:47well. Fantastic, we are at the hour
- 55:49here so I want to be respectful of everybody's time.
- 55:52First of all, want to thank all of you.
- 55:55David Hunt has changed record. This was awesome.
- 55:57This was really, really fun conversation.
- 56:01I think like told the Matrix we should make a conference out of
- 56:04this. This is a this is sounds like
- 56:06there's so much each to talk about such an exciting space.
- 56:09I totally agree with what James said, you know, probably eat
- 56:12crow. And anything I said today, in
- 56:14two months from now just based on you know like the speed at
- 56:16which is moving everything and that's the fun part.
- 56:20So I always reserve the right to be wrong constantly.
- 56:23So with that, I will pass this on to Demetrius.
- 56:27Thanks for having us. Yes, dude, this was so good.
- 56:30We're going to do a conference. I'm already planning it.
- 56:34The last thing, I'll say, if you haven't put your information,
- 56:37Nation into this survey. I'm going to release it to
- 56:39everyone, so I'm dropping it in the chat right now.
- 56:42Again, throw in, if you're using these large language models in
- 56:46production or if you're not, we want to hear why?
- 56:49And then I will reach out to you with the answers and all the
- 56:55data on this. I think there's already been
- 56:57some incredible answers that have come through.
- 57:01I'd love it. And I also will try and make
- 57:04some kind of like tldr port on it so that everybody can see
- 57:10what we're all doing and where we're all out with this.
- 57:12I thought this conversation was perfect.
- 57:14So thank you, everyone. And I may be given out of some
- 57:17of these bad things happen to good data shirts.
- 57:20For some people that fill out this this survey so bad things
- 57:26happen to good data, we know that and if you drop in your
- 57:30email, in the survey, you could win one of these shirts.
- 57:35All right, everybody. That's it for today.
- 57:37See y'all right job? Thanks everyone.
- 57:40Thank you.