Latest / Agentic Conversations (formally mlops.community) / LLM on K8s Panel // LLMs in Conference in Production Conference Part II
Transcript
- 0:00And now that is a perfect segue into because it feels like that
- 0:05was just like the warm up that was a little bit of the sound
- 0:09check before we bring on our next guest.
- 0:14What's up, Shree? Doing well, Demetrius.
- 0:17This looks like a great event. Yeah, man.
- 0:19So I've got a shirt that I want to show you all, but I'm going
- 0:22to get everyone on stage. We've got Raul with his new
- 0:25microphone. And how you sounding, man?
- 0:30Can you, can you get the ASMR field?
- 0:32Yeah, maybe not that we've also got Manoj, I think it is very
- 0:40late where you are. So but it looks light out.
- 0:43Is it already tomorrow? Fortunately, I'm travelling to,
- 0:46so I'm in Seattle right now. So it's it's the same time zone.
- 0:50All right, cool. So that is awesome.
- 0:53And then where is my man Patrick?
- 0:57Where there he is. Alright, I why am I in big?
- 1:00I'm not the star of this show. I'm going to as I make myself
- 1:05even bigger. No, Patrick, what's up, dude?
- 1:08I love the Martin guitar in the back.
- 1:10That is awesome. I love seeing you all.
- 1:13And three, I'm gonna leave it off to you.
- 1:15This is kind of a what we would call a mix between a panel and a
- 1:19fireside chat. We've got so many incredible
- 1:22Kubernetes people in the same virtual space.
- 1:25And while you kick it off, I'm going to get this shirt that is
- 1:30so good. It is not that I hallucinate
- 1:33more than chat GP T-shirt, it is the I got it just for everyone
- 1:38here. I don't know if you can see this
- 1:40that says Kubernetes is a gateway drug and that is what we
- 1:44are talking about running LM's on Kubernetes.
- 1:46I'm going to get off the stage now and I'll drop a link in case
- 1:51anyone wants to buy that shirt and support the community.
- 1:54Three. It's all yours, my man.
- 1:56Thank you so much. Thank you so much Dimitrius.
- 1:58Hey, hello and welcome everyone. Thank you so much for joining
- 2:01this, this panel, panel discussion, Fireside chat about
- 2:05large language models and Kubernetes.
- 2:07You know one of the more well known instances of communities
- 2:11and LMS coming together is Open AI and documenting a lot of how
- 2:14they've trained their models and actually other models on
- 2:16Kubernetes. So I asked that GPT to write
- 2:19like a small humorous description about this session,
- 2:22and this is what it came up with.
- 2:24In a world full of errors, may your code be bug free, may your
- 2:28containers be slim and efficient, and may they always
- 2:32save smoothly like a rubber ducky in a giant data leak.
- 2:36Is this even possible or am I hallucinating?
- 2:39Well, on that, maybe not so funny, no.
- 2:42It's safe to say that there is a lot of work to do, you know,
- 2:45especially when it comes to ellens and humour, and maybe
- 2:48Kubernetes has a role to play in that.
- 2:50And that's just the perfect segue for us to kind of get deep
- 2:53into these conversations about how.
- 2:55LMS and communities coexist. What do they, how do they work?
- 2:58And so on. So before we get into the
- 3:00details like, it might be a good time to just have quick
- 3:02introductions. Hey, I'm Manjot.
- 3:04I'm part of Lightspeed right now and investing in a lot of these
- 3:08new age MLM companies. Excited about that.
- 3:11But before that life actually started as as an infrastructure
- 3:15engineer where I was building internal infrastructure
- 3:17libraries at Google and from there I became a product manager
- 3:23in the Kubernetes team. This was, you know, far, far
- 3:25into. The Covenant is 1 not all ages
- 3:28when we were actually thinking about Mesosphere and other such
- 3:30things. So it was working primarily on
- 3:33networking and security and eventually you wanted to build
- 3:36something of my own. So left and started up in
- 3:39machine learning infrastructure and was lastly at Stripe.
- 3:43That's fantastic. That's fantastic.
- 3:45Welcome, Rahul. Yeah, hello everybody.
- 3:49I'm Rahul. I'm the founder of.
- 3:53For me, Kubernetes is not just a great gateway drug, it is a way
- 3:57to just stay high all the time, right?
- 3:58So I I actively think about how do you deploy the LM OPS stack,
- 4:06Apologies and to to use that phrase because it's not.
- 4:09Cool yet, but what exactly does training your own foundational
- 4:15models on Kubernetes look like? What does fine tuning large
- 4:18language model on Kubernetes look like?
- 4:20Or even deploying applications like the Q&A or search based
- 4:24applications, agent applications on Kubernetes and how that can
- 4:28help the increase the velocity of what your company delivers or
- 4:33deploys is is what I what I like to work on, excited to talk to.
- 4:38Everybody. Awesome, awesome.
- 4:39Thank you. Patrick, what about you?
- 4:42Hey, yeah, I'm I'm working as an architect for a startup.
- 4:46Right now. We're focused on LM planning,
- 4:49which has been super fun to do. Historically, I've worked a lot
- 4:53in Kubernetes. I worked for John Craig at a
- 4:55couple called Heptio. We got acquired by VMware.
- 4:58I did a lot of stuff that put some features in the Kubernetes
- 5:01and whatnot and over the last several years got to, you know,
- 5:04traditional kind of machine learning 1.0.
- 5:07And then last, you know year we've been focused on generative
- 5:09AI and now really kind of heavily focused on.
- 5:13Ohh planning. Awesome.
- 5:14Thank you so much. And just for for completeness,
- 5:17hi everyone, my name is Shree. I am currently an engineer at
- 5:20Outer Bounds and Outer Bounds. We are building a large scale
- 5:23machine learning platform for handling fully managed platform
- 5:26for handling data science and machine learning workloads.
- 5:29So yeah, welcome everyone. And maybe we can start off just
- 5:33a little bit about what are your impressions of first impressions
- 5:36of large language models on Kubernetes, especially maybe
- 5:40with respect to training. Where does communities come in?
- 5:42What does it offer? What is good?
- 5:44Sure, maybe I can kick it off. So when culinary is was, I mean,
- 5:49as you all might already be aware, Kubernetes is basically
- 5:52inspired by an internal Google product called Borg and it
- 5:57basically tried to achieve the same objective, which is how do
- 6:00you make sure workloads you know are scalable are reliable, you
- 6:04have containers and how do you have an orchestrator so that you
- 6:06don't have to manage that infrastructure.
- 6:08And that's what Kubernetes was promising to do.
- 6:12You probably noticed in that last sentence, I never seen
- 6:15anything related to machine learning.
- 6:17So so this historical perspective here, Kubernetes
- 6:21today grow up without keeping MLML, Core ML in mind and it was
- 6:26more about general workloads that traditional workloads that
- 6:28you might be running your APIs, your micro services et cetera.
- 6:31So it was very micro service heavy and focusing on that
- 6:35architecture. But for sure, there are lots of
- 6:38in the past couple of years. This is even before LMAO became
- 6:42super popular. In the last couple of years,
- 6:45we've been seeing a lot of these products, libraries, everything
- 6:49come up that help you basically run your machine learning
- 6:52workloads on top of Kubernetes because the principles remain
- 6:55the same. What are the principles?
- 6:57The principles are Kubernetes gives you an abstraction layer
- 7:01and orchestration layer on top of your containers that abstract
- 7:05away hardware, right? So effectively giving you more
- 7:07reliability, scalability and efficiency out-of-the-box.
- 7:12Sounds great. Yeah.
- 7:14What do you think, Rahul, you had?
- 7:15Something to say, Yeah, yeah. And maybe I'll take a different
- 7:18perspective on this one. So.
- 7:21A few like maybe a month ago we were talking in in this
- 7:26community called Tribeca that I'm part of super intelligent
- 7:28people and and one of the recurring topics that came up
- 7:32was enterprises are looking to deploy and train the models in
- 7:37house because they really don't want data to leave their VPC,
- 7:41right? And I think that is a business
- 7:44problem for which Kubernetes provides a good solution.
- 7:47Obviously you have vendors on the cloud service providers or
- 7:51even. Startups who have Kubernetes
- 7:54native solutions for you to deploy and train your machine
- 7:58learning models, but this is what you know.
- 8:02Hopefully what Kubernetes allows you to do is have a cloud
- 8:06agnostic platform for you to train and deploy your machine
- 8:10learning or large language models.
- 8:12Interesting. One of the one of the questions
- 8:14that maybe Patrick would love to hear your thoughts on this, one
- 8:17of the perspectives that gets talked about specifically with
- 8:19Kubernetes is that yes it has. Options to run a lot of
- 8:24workloads in the machine learning domain land up being
- 8:26batch workloads. And there is.
- 8:29Yes, Kubernetes offers big support for running batch
- 8:32workloads, but oftentimes it seems like it's a little bit of
- 8:36an overlooked area, or at least something that hasn't yet gotten
- 8:39the attention. It was always about
- 8:40microservices, orchestration of services that are long running
- 8:44services running servers, whether it is web servers,
- 8:46database servers, whatnot. But if you are talking about
- 8:48running bad jobs, yes there is a communities job, go do something
- 8:52about it. The community has come up with
- 8:53other. These things like Argo that have
- 8:56actually enabled some of this but still not sort of being the
- 9:00first class citizens for batch workloads.
- 9:02What's your take on kind of like given that a lot of machine
- 9:05learning workloads are batch and Kubernetes offers some support
- 9:09but not a lot. Is that is there an impedance
- 9:12mismatch there somewhere? Is there something better that
- 9:14can happen? I mean, I'd say a lot of machine
- 9:16learning 1.0 workloads for batch, and I would say more than
- 9:202.0 like generative AI. There's thoughts actually
- 9:23streaming. I see far, I mean there still is
- 9:25some bad use cases, but I think we're moving away from Dags
- 9:29primarily into kind of like chains and whatnot.
- 9:32I think that's changed significantly.
- 9:34I would say what Kubernetes is built for which is micro
- 9:37services, you can almost think of LM's you know as they grow as
- 9:40micro services where you have you know these different parts
- 9:43of the models, these partitions that need to talk to each other.
- 9:46So you need to schedule containers and network them
- 9:49together, right. It's, it's really the same
- 9:51principles, it's just kind of being thought of a different
- 9:53way. So I think Kubernetes actually
- 9:54fits that. These kids?
- 9:55Really. Interesting, interesting.
- 9:57That's that's good. That's a good point.
- 10:00What about things like as we go deeper into kind of GLMS and one
- 10:05of the backbones almost, so to speak of LLM has been use of
- 10:09GPUs, pretty much every LLM that at least things that have
- 10:15generally been talked about always talk about how they've
- 10:17been trained on LLM or sorry, on GPUs and then all these other
- 10:21conversations about GPU shortages and whatnot Does do
- 10:24you think Kubernetes? Helps there.
- 10:26Are there things that are better because of Kubernetes for using
- 10:30GPUs and being able to kind of train models?
- 10:32There are there are lots of other companies nowadays which
- 10:35don't run on Kubernetes but still provide you with GPU
- 10:39access. What does that happen?
- 10:40What do you guys think? Yeah, I mean I think the biggest
- 10:44thing is cost, right. So I've worked a lot with
- 10:46startups, you know, who are trying to build generative AI
- 10:48applications and you know some of them don't want to use Open
- 10:52AI for, you know, the privacy reasons or whatnot.
- 10:54I yeah, the constitute views is is horrible.
- 10:57The start of times for long rides it's like you shut it off,
- 11:00you could have you know several minutes to try and booted it
- 11:03back up and load the model weights into the GPU like they
- 11:06could, they could all take a significant amount of time.
- 11:09So this helps with us where you know, obviously we can, you
- 11:12know, scale. Hands up and down, you know,
- 11:14trying to make that start up time as as fast as possible.
- 11:18But I think there's a lot more work that can be done here.
- 11:21Right now I'm kind of looking at, you know, can we like hot
- 11:24swap Lauras or Q Lauras in the models?
- 11:28Right. So could we instead of like
- 11:30having to wait to pull up a whole nerd, we just run these
- 11:32baseballs and then hot swap Laura Zendaya for special like
- 11:36fine tuning capabilities? Yeah, just adding on top of it,
- 11:40Patrick said. Right.
- 11:41Spot on about cost being one of the bigger.
- 11:44Constraints and problems that needs to be solved with GPU
- 11:47access, right. So I think in the first sort of
- 11:51wave, in the first set of set of changes and and and these
- 11:54changes are all, you know, weeks apart, but still just support
- 11:57for GPU was added. So you can run, you can enable
- 12:02GPU node pools instead of your CPU node pools which enables at
- 12:06least some GPUs to be used. But obviously that's not enough.
- 12:09Then you know you have these newer things like spot instances
- 12:12being available in in the various.
- 12:14Can really help with, you know, making your infrastructure and
- 12:17cheaper. But even that's not enough
- 12:19because just like with everything in infrastructure,
- 12:21the devil is in the details. So if you look at the components
- 12:24of Kubernetes and this is where going back to what I said
- 12:26previously, right, it was designed for traditional
- 12:28workloads, not necessarily machine learning workloads.
- 12:31So going back, details of how Kubernetes work something like
- 12:34scheduler, which I think Patrick briefly touched upon how
- 12:38Kubernetes actually decided to schedule and provision nodes,
- 12:41pause and everything else. There can be a lot of
- 12:43optimization over there. Because obviously there's cost
- 12:46and there's also things like, you know, networking, how how
- 12:49much data is being transferred between different nodes and
- 12:51different calls and and where they are actually located.
- 12:53So secondly, if you look at auto scaler again, in fact even
- 12:57funnily enough with traditional workloads as we used to say,
- 13:00auto Scaler is you know, easiest way where you can shoot yourself
- 13:03in the foot. I think it's even harder to make
- 13:06all the scanners work with machine learning and LLM
- 13:09workloads. So I think there's a lot of work
- 13:12where templates can be, provided you know defaults can be
- 13:14configured well. And the right sort of parameters
- 13:17can be optimised when auto scaling and LM based workload.
- 13:20Yeah, just carrying that thread of auto scaling, a couple of
- 13:26weeks ago we participated in a hackathon where we trained or
- 13:29fine-tuned a large language model on top of Kubernetes with
- 13:33RLF using the DSP library, right.
- 13:35And originally our our aim was like, hey, we're going to do
- 13:37this auto scaling thing and make sure that that works.
- 13:40The real challenge right now is GPUs are super rare to get hands
- 13:45on so. Even if you want to or you're
- 13:48not going to get it, a smart way to think about this is negotiate
- 13:52with your cloud provider to get to reserve those nodes that you
- 13:56need in advance so that your workloads at least are
- 14:00deploying. I think the other side where the
- 14:04costing issue that Patrick mentioned and we we talked
- 14:06about, I think and this is speculative on my part.
- 14:09So we'll know in a couple of months whether this is true or
- 14:12not. So as you know that age 1
- 14:14hundreds are going to be released and generally available
- 14:16or. Starting to get adopted and
- 14:18we're going to see the hoard of people start migrating to that
- 14:22and guess what that means A1 hundreds are going to be more
- 14:25available, cheaper and so on right.
- 14:27And so maybe the market will self correct with availability
- 14:31but remains to be seen. I think for now either you can
- 14:35wait and watch for two months or you know plan out a strategy
- 14:38where you reserve your instances and instead of thinking about
- 14:41like over optimising on auto scaling, try to get a
- 14:45repeatable. Platform in play which in place
- 14:49on which you can rapidly deploy and iterate on.
- 14:53I think the iteration part of your model is where should you
- 14:57should be focused and not on the iterative like the how correct
- 15:01or how awesome your Kubernetes platform looks like.
- 15:04Interesting. So thinking about large language
- 15:07models, so Rahul brought up this point a little earlier that if
- 15:11you think about large language models, you kind of sort of
- 15:13there are two or three kind of big domains of work, one is.
- 15:17Companies or teams starting to train or doing training a large
- 15:21language model completely from the ground up, like literally
- 15:23everything from the data to train the whole thing.
- 15:26It can sometimes take months. Open AI for example has
- 15:28documented how it took I think what 3 1/2 months or something
- 15:31for them to get it completely right.
- 15:34And there is fine tuning of the models and then there is also
- 15:36prompt engineering. So two or three different
- 15:38domains of work. So Rahul, how does Kubernetes
- 15:41play a role in this? Does it make it better?
- 15:43Does it? Is anyone type of work better
- 15:45suited for Kubernetes versus the other?
- 15:47Does that make a difference? And maybe even with GPUs.
- 15:50And and I think as as architects and people who are designing
- 15:55these platform level solutions, there's no one right answer.
- 15:59There's always tradeoffs. I'm Emmanuel Mason, Machine
- 16:04Learning engineer at Stripe and author of Building Machine
- 16:07Learning Powered Applications and IF.
- 16:09You don't want your. Machine learning models to
- 16:11explode Well, you should subscribe to this podcast.
- 16:27So the trade off here here, you know Kubernetes is is a great
- 16:30platform for you to be vendor agnostic, move fast and and and
- 16:34and you know be able to automate a lot of your workloads.
- 16:38But it's not. It comes with its own kind of
- 16:40challenges, right #1 being if you are a Foundational Model
- 16:44company, your data is in the petabytes if you are.
- 16:47If you are trying to fine tune your models, you know, obviously
- 16:51you can use PFD and Laura to kind of, you know, fine tune
- 16:57only a small part. But then you still have to have
- 16:59the whole model in memory. Guess what, these models are
- 17:02really large. The containers that these would
- 17:05run on go in the 10s of gigabytes and big data bigger
- 17:09models and everything on Kubernetes just becomes a, you
- 17:13know, a heavy lifting kind of effort and it it comes with its
- 17:17own problems just yesterday. I had to like SSH into the node
- 17:21to look at the journal cattle to see what's going on.
- 17:24Like hey, why is this part not pulling fast enough?
- 17:27Because some nodes it is 550, like 15 seconds, some nodes it's
- 17:31like taking a minute and a half. And so, you know these kind of,
- 17:34especially when you're talking about like 15 GB container
- 17:37sizes, things start getting really, really hard.
- 17:40And kind of sort of everything then you know follows that
- 17:43larger containers can mean bigger startup times.
- 17:47They also mean that it is potentially.
- 17:49Possible that you know parts may not come up because that much
- 17:51disc space is not available and then you know many many things
- 17:55and the cost can go up because you're pulling down, especially
- 17:57if you're every part that starts is pulling down 15 GB of data
- 18:00for every time. Can you maybe quickly talk a
- 18:02little bit about what do you think is a good dentist
- 18:05experience? If they have to use Kubernetes,
- 18:07like what would be a good? I'm I'm I'm guessing data
- 18:11scientists are probably not very very enthusiastic about wanting
- 18:15to deal with you know deployments and demon sets and
- 18:19DNS resolution and poor DNS and whatnot.
- 18:22I. Think I can maybe answer it in
- 18:24in one sentence on the best experience for data scientists
- 18:27to deal with Kubernetes is not dealing with Kubernetes.
- 18:30So and even organizationally, right, if you look at this and
- 18:33Rahul and Patrick Simon here, I think organizationally what I've
- 18:36seen typically is there's a different deployment team
- 18:39versus. Data science team that actually
- 18:41deploys these models and deals with all these complexities.
- 18:44In fact, funny enough some some organisations were telling me
- 18:46that in the past, at least with traditional machine learning
- 18:48workloads, they would write their models in Python, there
- 18:51would be a team converting that into like C code and then
- 18:55finally deploy like this. Just sounds you know 100 steps
- 18:58for me that are not optimised. Your thoughts?
- 19:02Yeah. I, you know, I think obviously
- 19:04traditionally it was used Python, right from Jupiter and
- 19:07trying to make that work as good as possible.
- 19:09I think what's interesting is generative AI is we're seeing it
- 19:11really stretch like you don't really need data scientists as
- 19:14much anymore, right? It's like these models are so
- 19:16smart that now just regular old engineers could pick them up and
- 19:19start building AI apps, right. So I think there's this like
- 19:22shift to where, you know, I think Python's like deal, but I
- 19:26think a lot of times it's going to be more actually like taking
- 19:28those models and like meeting engineers wherever they are.
- 19:33And one good point I think about all of this is that, you know
- 19:36this is almost kind of the other side of it, which is on the one
- 19:39side there is complexity, but the other side of that
- 19:41Kubernetes gives you is, is composability.
- 19:44Like there are so many different tools and services that we
- 19:47talked about literally in these what 8 minutes that we've had
- 19:50this conversation about different libraries, different
- 19:53tools and the amount of innovation happening in there,
- 19:56deep speed, Laura, theft, so many of them coming up.
- 20:02It's it's easier to get these up and running.
- 20:05It's easier to containerize this and kind of sort of deal with
- 20:07them in within containers because with the isolation
- 20:10boundaries compared to let's say saying that here is 1 GPU
- 20:13instance 4 of you go and SSH to that box and run whatever you
- 20:16want. I'm sure everyone will step on
- 20:18each other's toes saying I want Python 3.9, someone else wants
- 20:22deep seated version 4.7 and then it's just like it will be chaos.
- 20:25So there are benefits of Kubernetes.
- 20:28There is also the complexity of it, but the composability and
- 20:31the extensibility that you get with it to some extent, maybe
- 20:34even isolation that can be that is very that's very appealing,
- 20:38but it probably comes a little later.
- 20:40Do you think we are there yet? Do you think there are teams who
- 20:43actually can benefit from all this?
- 20:45You know, large scale platforms that can be built on Kubernetes?
- 20:50Yeah, platforms. Yeah, so, so one quick point
- 20:53that I think it's obviously a staging into nodes kind of makes
- 20:57makes sense in, in, in ways. But if you look at the non
- 21:02foundational model and we've talked about most of these
- 21:05foundational models and fine tuning kind of approaches here
- 21:07so far. The others, which I think
- 21:09Patrick was alluding to, was like, let's say you wanted to
- 21:12spin up a Q and a bot that you've created with some vector
- 21:16DB and some. Store you know data going in
- 21:19there answers maybe users assures opening I bot or
- 21:24anthropics new stock to compliant but like.
- 21:29Creating these services that can help support these kind of
- 21:32applications can also also work with Kubernetes, right.
- 21:36I think that's that's like the flexibility at the end of the
- 21:39day Kubernetes is not the silver bullet like like we we you know
- 21:43everybody here agrees it's it's not but you know there are these
- 21:46challenges that if you were doing this challenge on a
- 21:51regular node that you have set up, the community support is
- 21:54just not there. You try to Google search, you
- 21:56try to ask Chad GPD to help you out.
- 21:57It's not there I think Kubernetes.
- 21:59Just way more adoption and you know the support that can allow
- 22:04you to debug and I think that is part of the developer experience
- 22:07as well and not just having a dev box and messaging, but also
- 22:10if you get stuck how do you unblock yourself I think.
- 22:13It's still best in the business of, you know, having multiple
- 22:16services and like Royal Rahul just said, you know, you might
- 22:19be running a vector database, you might have a web app, you
- 22:21know, then you might have your own lab and you need those all
- 22:24to coordinate to build your applications.
- 22:26So there's still nothing as good as Kubernetes like run those all
- 22:29in one place. Orchestrate them together and
- 22:31have like 1 coherent API. Just adding, I think you
- 22:35mentioned these 3-4 areas as well right in the in the
- 22:38previous question on prompt engineering versus fine tuning
- 22:43versus training and then these service oriented architectures.
- 22:47I think the last bucket I'll add there is inferencing right out
- 22:51of all these sort of workloads for sure.
- 22:55Kubernetes right now is far more scale battle tested.
- 23:00I would say for the training and the fine tuning parts versus the
- 23:04inferencing part, but coming down to the inferencing part as
- 23:06well. When you have and and I think at
- 23:09least the applications I've seen ourselves sort of figuring out
- 23:12exactly what that architecture would look like on having an
- 23:14external vector app, not just for training but also for actual
- 23:18inferencing. That sort of also fits into the
- 23:21service or Indian architecture for which Kubernetes was
- 23:24basically developed. So having said all of this, I
- 23:28think like you know is there, I'm sure there are lots of
- 23:30people who are maybe starting out or who have always kind of
- 23:33sort of felt like, yes, we've been able to train models either
- 23:36locally or using some service, but we want to kind of
- 23:38standardise on something and Kubernetes seems like an
- 23:42industry standard almost. What's a good place to start?
- 23:45Like what would be your recommendation for where to
- 23:47begin and how would they how would they go about doing this?
- 23:54I'm I'm almost hesitant to say this, but you know a lot of
- 23:58companies have come up with simpler, you know, one line kind
- 24:01of commands that data scientists can run to get started if they
- 24:05don't have a team that can help you set up the platform right.
- 24:09So you just write your Python code, pytorch code or whatever
- 24:13you want for your training the large language model and then
- 24:15just have a one line command. They will take care of
- 24:18containerizing that code and deploying it on on on their
- 24:22Kubernetes. Thing, right.
- 24:23And so they are kind of taking care of the orchestration for
- 24:25you. I think that's a good place to
- 24:27start if you if you really want to get started and you don't
- 24:30have a team supporting you. But I would almost be hesitant
- 24:34to say that that's the best way in which you do a repeatable
- 24:38kind of interactive. So once you deploy like Majora's
- 24:40good point about inferences, right, once, once that large
- 24:42language model is an inference, then you have this human
- 24:45feedback loop that you need to think about, right.
- 24:47So people are supporting or downloading the replies that the
- 24:51agent is giving. OK, what do we need to?
- 24:53Iteratively improve on and now suddenly your data is again
- 24:55leaving your VPC to go into some other cloud.
- 24:59How do you connect all of that? Eventually you're going to have
- 25:02to have a robust platform on top of Kubernetes to support all
- 25:06that. And maybe it's not a bad idea to
- 25:08just have some help from from somebody who's helping deploy
- 25:13this on top of your Kubernetes platform or or or you know,
- 25:17learn it yourself. I think there's enough resources
- 25:19available in upcoming that that that would be super helpful.
- 25:22So it's a fair point. I think what you're saying is
- 25:24there is there is a layer that can be built on top that to some
- 25:28extent hides some of these complexities that people are
- 25:30talking about and it can provide that experience that people
- 25:33directly. You know, you write your code
- 25:35and run it with some special command or decorators or whatnot
- 25:39and it eventually goes to the back end and runs it on
- 25:41Kubernetes. As time goes by you might want
- 25:44to be interested in what is actually happening behind the
- 25:46scenes and that will be a good introduction to kind of start
- 25:49with something basic and then do this.
- 25:52Given that we like Demetrius is going to tell us that in a few
- 25:55minutes. I also want to touch up a little
- 25:57bit on a little bit of these non-technical aspects especially
- 26:00Manjot like your experience. I'm sure there are many people
- 26:03who have been thinking about you know building companies and
- 26:05products that kind of sort of aid and assist data science and
- 26:09ML applications. Like what do you see on the
- 26:11non-technical side like Kubernetes or LMS. Does that
- 26:15seem like things that have that where products can be built that
- 26:19can be good viable businesses going forward?
- 26:21Yeah. So there's no real answer right
- 26:23now. I think this space is moving so
- 26:25fast and everything is so recent that people are still figuring
- 26:29out, OK, what are the best tech stacks for hosting an
- 26:32application in production? What is the best way to use
- 26:35Kubernetes or not? Like, what are the alternatives?
- 26:37Right. So, so every day you see like
- 26:40new things coming up, like there's COVID, the hosted model,
- 26:43there's Replicate, which is like completely like you don't have
- 26:45to care about anything, which Rahul touched upon, right.
- 26:47There's so much happening. And to answer your question on
- 26:51are there you know. Business is possible, I think
- 26:55for sure there is, if there were ever a white space to create
- 26:58like you know, a cloud offering from scratch, this is a, this is
- 27:02a very interesting white space. There's such a dose of GPUs
- 27:06right now. There is also lack of knowledge
- 27:09on what is the best way to host, manage and serve your
- 27:14applications, right. So there is a real white space
- 27:17right now in terms of a being the thought leader that hey, you
- 27:20know what like you care about. What are the big problems like?
- 27:23Serving in an application like hallucinations, right?
- 27:26That's one of the biggest core challenges for enterprises.
- 27:28Second big problem is cost which Patrick also mentioned.
- 27:31And last can be just reliability and latency.
- 27:35So when someone thinks about creating the next, you know,
- 27:39infrastructure platform to serve LLM applications, these are the
- 27:43broad 3-4 problems that they have to tackle.
- 27:46And there is a good chance that the answer under the hood will
- 27:49be Kubernetes. But the I think the idea is to
- 27:52abstract these things away. Horses display all the moving
- 27:55parts. Interesting.
- 27:58What do you think about the case?
- 28:00Go ahead. Go ahead, Patrick, go ahead.
- 28:02Get LM will probably be the abstraction on top right, which
- 28:05already kind of starting to see we're probably yeah.
- 28:07I'd also say it really depends on the size of the organisation
- 28:10right. Startups are going to really
- 28:12wrestle with the conservatives and the costumes is already
- 28:14really high And if you have Kubernetes on top of that you
- 28:17could even higher you know if you compare that to running
- 28:19something like Cloud Flare worker using Open AI API that
- 28:23gets a lot cheaper, right. So I think you have to kind of
- 28:26weigh like the size of your organisation and you know the
- 28:28capital they have available. Uh, I'll take one question from
- 28:32the audience here. There is a question about can
- 28:34you describe the pros and cons of Kubernetes for element
- 28:38training versus the pros and cons for using Kubernetes for
- 28:43LLM inferencing? So, Kubernetes for training
- 28:46versus Kubernetes for LLM inferencing, What are the
- 28:48tradeoffs? I think, Rahul, you've done both
- 28:51of these to some extent, yeah. And this is this is a long
- 28:54question but long answer which I'll try to keep short.
- 28:57I think when I'm I'm advising my clients I'm I'm telling them
- 29:01about like I'm I'm optimising for velocity and you know having
- 29:07a platform that is easily like making that's helping you deploy
- 29:11models faster and I think that is one thing that I think
- 29:14Kubernetes is great on for training.
- 29:17For the inference side, I I defer to majority.
- 29:20If you had raised that point. Yeah, no, I think the infant
- 29:23side, right, I we've already discussed some of the challenges
- 29:26present in managing a model as well as challenges in Kubernetes
- 29:30specific components on how they are designed today versus how
- 29:33they're supposed to work. I think one more challenge I'll
- 29:36mention is a lot of these. You know, a lot of the LLM
- 29:40workloads might be using these. You know, specific libraries and
- 29:44drivers that work with accelerators, some specific
- 29:47hardware component, right? And the whole point of
- 29:49Kubernetes. And containers issue abstract
- 29:52all of that away. So I think the world is still
- 29:54sort of also struggling right now finding that sweet spot of
- 29:58OK, I need to abstract away hardware, but like this world is
- 30:01not quite abstracted away 100% so influencing.
- 30:05I think there's a lot of work to be done.
- 30:07If someone were to start building an application today,
- 30:11you are better off picking up some of these open source
- 30:14solutions present that at least abstract some of that complexity
- 30:17away. But I think we still see a lot
- 30:19of development. Eventually new products and
- 30:22services being built here and there is also a little bit of
- 30:25this inferencing at times can be real time online inferences
- 30:32versus training being kind of bad jobs.
- 30:34So it goes back to one of the original earlier questions we
- 30:37talked about that at least for bad jobs is of course it's
- 30:41there, it's useful versus Kubernetes for inferencing can
- 30:44be like you know server based processes and whatnot.
- 30:46So there will be some of that that comes out.
- 30:49You mentioned about the abstractions like one of the
- 30:51abstractions that that's available today is multiple open
- 30:55source projects out there. One of them that at least I'm
- 30:57involved in called meta flow. So that you can check that out
- 30:59in case people are interested in learning about abstractions that
- 31:02can deal with Kubernetes or hide the complexity of Kubernetes.
- 31:06But but yeah, I think this was, this was great and you know we
- 31:11write on queue. We have someone, we have a
- 31:13person with a Red Hat here. I have a pirate Demetrius.
- 31:19Yeah, I've. Rated the ship and I have come
- 31:22to steal the show back. That was absolutely incredible.
- 31:27Thank you all and I will remind everyone.
- 31:30Well Rahul, I may need to make new shirts now like Kubernetes
- 31:34is a gateway drug or I guess Kubernetes is the way to stay
- 31:37high, that is you can't really see it because of the lighting
- 31:41there. Maybe you might be able to see
- 31:43it all through. You know, I I, I wanted to make
- 31:46a joke about sort of wearing your heart on your sleeve your
- 31:50you know Kubernetes is a gateway drug Trump's me there.
- 31:53Yeah, it's. Hard to follow that one.
- 31:54Man, that is so true. I know I did a little bit of a I
- 31:58did a a wardrobe change and I busted out the I hallucinate
- 32:03more than chat GP T-shirt that you can get here in case anyone
- 32:07wants to grab a copy of that. We've got it here folks on the
- 32:13panel I must say awesome. And Raul, I'm going to give you
- 32:17a shout out right now because you are running the after party
- 32:20in San Francisco. You got like a bus or what have
- 32:22you got? That's right.
- 32:24So if you're in San Francisco, you'd probably know Mission Bay
- 32:27has this awesome outdoor space called Spark Social.
- 32:31There's Sun outside. It's a nice day for us to, you
- 32:33know, mingle. We have a bus, double Decker bus
- 32:37that we'll be meeting up. There's 120 people already
- 32:40signed up. So I I, I think we can get a
- 32:43couple of dozen more. So just join us.
- 32:46Spark Social is a big place. This has been an awesome panel.
- 32:49Thank you everybody for your valuable thoughts.
- 32:52Yes. Yes.
- 32:53Thank you so much everyone. This was a lot of fun and a lot
- 32:57of interesting conversations. Over to you, Demetrius.
- 32:59Yeah. And any more questions for these
- 33:01Kubernete experts? The cats as they like to call.
- 33:04I think that's where the cool kids call it.
- 33:06So I'm gonna pick that up, go ahead and throw it in the chat,
- 33:10throw it into Slack, wherever it may be.
- 33:13I'll see you all later. Hi, this is Michael Eric.
- 33:18I'm the founder of Pametan Data Innovation and Confetti AI and
- 33:22this is a quick public service announcement.
- 33:24If you're tired of having nightmares about the machine
- 33:26learning models you have in production, then I encourage you
- 33:29to subscribe to the ML OPS Community Podcast.
- 33:32It's where all the cool ML OPS kids hang out and learn how to
- 33:35tame their ML models.