Latest / Agentic Conversations (formally mlops.community) / We Cut LLM Latency by 70% in Production
Transcript
- 0:00Tensor RTLLM was so helpful for us to cut our latency by like up
- 0:04to 70%. How can you run the least number
- 0:08of GPUs needed to serve the traffic you have?
- 0:11How did you deal with the cold? Start time a few things.
- 0:14So first of all, we start using I'm not an AI person initially,
- 0:24right? Like 6 years ago, I had no idea
- 0:26what, what is all of this about? And then, you know, I was
- 0:30leading engineering teams and I got my scope going bigger and
- 0:32bigger. And then I was like, you know, I
- 0:34need to be an AI, need to be in machine learning.
- 0:36I need to get there. So I start, you know, picking up
- 0:40and managing teams. I joined a company that is an AI
- 0:42company doing machine learning, traditional reinforcement
- 0:44learning. And I Start learning from my
- 0:46team. I was like, hey, junior machine
- 0:49learning engineer, how does this work?
- 0:52And again, it's, it's a little bit of, you know, being humble,
- 0:55but also being hungry to learn. And then from there, it's like
- 0:58it turns into a passion of, of learning and growing and what
- 1:02Gen. AI became like just the perfect
- 1:05timing of and I really see the future as like all these senior
- 1:09VPSCTOS, the classical traditional, you know, CT OS now
- 1:14getting into AI. So that is shifting like if you
- 1:17just did everything else except AI and now is not the time to be
- 1:21competitive in the market. So I was, you know, not only
- 1:25following my passion, but also, you know, adapting with the
- 1:28market because I think that's it's going to be a big shift in
- 1:31how we lead engineering teams. I couldn't just stay on the on
- 1:35the sideline, watch it. What the AI is, is what's
- 1:38happening in AII. Had to build AI, had to lead AI
- 1:41and I had to learn. First of all, I had to learn AI
- 1:44alongside my team. So I came up with this framework
- 1:48of like learning instead of being very directive and like
- 1:51being the boss and hey guys, we need to build an MCP server, We
- 1:54need to do this, we need to do RAG, we need to even learn the
- 1:57basics. I go and Start learning and ask
- 2:01them to learn with me. Because again, one of the
- 2:04problems we have seen since Gen. AI is that like you don't have
- 2:08all the resources, you don't have all the AI engineers
- 2:11available. Like some of these engineering
- 2:14leaders like myself, we are in positions where we're asked to
- 2:17do AI without the AI resources available and with no previous
- 2:22team or experience building AI. So learning was #1 and then how
- 2:27would you be successful at building AI and enterprise
- 2:30production? So how do you take all of these
- 2:33great proof of concepts and all the hype around like, oh, I can
- 2:36do this, you can do that. Or look, a build a chat bot.
- 2:39You can do everything in the in the platform, just an MCP and a
- 2:42chat bot. And but how do you take that to
- 2:46to scale? Another topic that could be very
- 2:48interesting is and you might know this is building AI in
- 2:51house hosting, self hosting, self managing AI, not not, you
- 2:55know, leaning on all of these third party available API based
- 2:58AI. Now you need to manage your own
- 3:00GPU, choose a GPU, choose the architecture to choose the open
- 3:04source models optimize, you know, fine tune a distill.
- 3:10I mean optimize late. I mean this is what I was more
- 3:13talking about recently is how you manage what I ended up
- 3:15calling the AI iceberg of like AI is great and you can do all
- 3:19of this, but behind it if you want to build it internally and
- 3:22I don't know if you manage it that scale, all of these
- 3:26invisible things that you know, performance, latency,
- 3:30throughput, accuracy, quality of the responses and cost.
- 3:34I mean, one of the other thing that was taken so much time for
- 3:37me recently is like how a manage cost of AI so I can prove to
- 3:42leadership, to the board, to the investors and to the market that
- 3:45you can build AI at the, you know, a positive AOI.
- 3:49And how can you retain your customers and gain more by just
- 3:51building AI that doesn't break the your wallet?
- 3:55So yeah, this, this kind of pyramid of cost, performance,
- 3:58latency and the throughput was my focus.
- 4:01And where can you move needles? You can never have all of them
- 4:05optimized. So what is the, what I find out
- 4:10being called like an AI Nexus? Where is that spot?
- 4:12What it works really well for your use case might not work for
- 4:17other use cases, but for our use case being an HR tag, you know,
- 4:20focus on privacy, responsible AI performance and latency are
- 4:25needed but not not the top, top priority, but you know,
- 4:28efficiency and accuracy of the results and also cost.
- 4:31So finding that white spot and build AI towards that.
- 4:34There's a really interesting thread to pull there with cost,
- 4:38because you have the cost of AI for your company, but then
- 4:45there's the cost of AI using AI coding agents and yeah, for the
- 4:51engineers. So there, it's almost like how
- 4:53we're implementing AI with the company, whether it's internally
- 4:57facing or externally facing, you're trying to optimize that
- 5:01and then also prove to leadership that there's ROI and
- 5:04then there's like this whole other vector of AI that's going
- 5:09and being very expensive in its own right of agentic engineering
- 5:15and the coding agents paradigm and.
- 5:18So and the premium tokens, and I mean, we, we introduced a few
- 5:24solutions and then they worked for some time.
- 5:27And then Gitot Copilot as an example, like you have a bunch
- 5:30of models available, but then you can you start see more and
- 5:33more premium models and then some of them, their tokens would
- 5:36be 10 times more expensive than regular tokens.
- 5:39So at some point, yeah, within engineering, we had the, we had
- 5:43the finance kind of role within engineering that was taken care
- 5:47of. He's like ensuring everything
- 5:48goes within the, you know, you know, allowed budget because
- 5:53otherwise if you open the door to everything, it's just going
- 5:56to blow up the consumptions and tokens and premium, you know
- 6:00stuff. So I had to keep that in control
- 6:02with, with the AWS bills and all the AI, you know, GPU's because
- 6:06we are deploying models on the GPU's.
- 6:09And so I had to work on scaling as an example.
- 6:12So how can you run the least number of GPU's needed to serve
- 6:17the traffic you have? So understanding the pattern of
- 6:20traffics, like as an example, you know, we are an HR tech
- 6:23solution, so people don't use it at night and weekends most of
- 6:26the time. So why do I have like that many
- 6:29GPUs running at that time? So we had to.
- 6:32Yeah. So we had to create first a
- 6:35scheduled scaling for our solutions based on the pattern
- 6:39we see on the usage. And then we had to also
- 6:41introduce dynamic scaling where if you have a, you know, at the
- 6:44end of the year or at the end of the quarter or even at the end
- 6:47of the week, sometimes people go and try to push as many, you
- 6:50know, HR data like feedbacks and conversations that recognitions.
- 6:54So you had to take that into account as well.
- 6:56So you had to dynamically adapt and spin up GPU's fast.
- 7:00If you use open the eye, you don't have to worry about any of
- 7:03this. But then for me, I was like, OK,
- 7:05well, we need to spin up things and they are containerized and
- 7:08we need the images. But the but the when you spin up
- 7:11a new container, you don't to download the model put in there.
- 7:14And I was like, takes forever, yeah, I had to talk to AWS.
- 7:17How can we make this faster? Should I go with Sage Maker or
- 7:20solutions like that that is managed?
- 7:23Or just hit bedrock. Or, or hit bedrock, which is
- 7:26again, many layers. I mean, I thought if you
- 7:28remember this, I had like AI came up with these layers.
- 7:32I mean, they are known like model as a service, software as
- 7:34a service, umm, you know, AI as a service.
- 7:37And then at the bottom there was nothing as a service.
- 7:39And honestly, that's that's what we're doing.
- 7:42We're like we're trying to do. Everything and.
- 7:44When I had the conversation with AWS Sage Maker experts from AWS,
- 7:48they were like you guys doing exactly what we do for Sage
- 7:51Maker behind the scenes. So yeah, you can hop on Sage
- 7:54Maker, you lose control some of the configurations, but you will
- 7:57have the this given for you. And because our again scale and
- 8:01usage is is limited, we were able to do some of that in house
- 8:04without having to rely on a on a managed service.
- 8:08So yeah, dynamic scaling, scheduled scaling and can for a
- 8:12proactive scaling sometimes. How did you deal with the cold
- 8:15start time? If you think so, first of all we
- 8:19start using faster IO operation storage from AWS which is FSX.
- 8:26This is kind of new to me too. I was like, give me the fastest
- 8:30way to download the file from your systems and I would I
- 8:33learned about this usually. I mean, historically we used to
- 8:35get this from S3. So that's one downloading
- 8:39faster. Then the second thing was
- 8:41instead of spinning up them the the image, the container image
- 8:44and then downloading the model, we created an image with the
- 8:47model embedded in it or. Ready.
- 8:49You baked it in. Yeah.
- 8:50So when you spin up a new Kubernetes node, it's going to
- 8:54come with the image. So yeah, we saved so many, I
- 8:58mean in the minutes, not just in seconds.
- 9:00So we we saved minutes off the the cold start to just spin up
- 9:04new new. But the GPU itself takes a
- 9:07while, right? Yeah, the GPUI mean that time we
- 9:10cannot do much about it, but the downloading part was the was the
- 9:13triggering. Yeah.
- 9:14But I'm just thinking like because there's certain
- 9:17providers, GPU providers that go hard on, hey, we can spin up in
- 9:22seconds type thing. I'm thinking like modal or or
- 9:26others that. Was another one, yeah.
- 9:28Yeah, there's another one I can't remember now.
- 9:32It's not. Crock Yeah, they need to do
- 9:34more. They need to do better marketing
- 9:36so that there's. One that is like known to be the
- 9:39fastest kind of cold start. It's like you want, you want the
- 9:42new GPU, the here you go. I wish I was able to get like
- 9:46really breakdown of the of the of the latency, how much time it
- 9:50takes and understand, OK, this is for every step we focus on
- 9:53the ones they used to take the most and definitely downloading
- 9:56the models running, you know, spinning up and you know, was
- 9:58taking the most. So that's where you saw the
- 10:00biggest. Gain, yeah, another thing we
- 10:02did, I mean, this is maybe not necessarily related to that cold
- 10:05start, but yeah, optimizing using NVIDIA tools solution like
- 10:09Tensor RT LLM was so helpful for us to cut our latency by like up
- 10:13to 70% on the same. Yeah, Yeah, because I mean,
- 10:17you're familiar with Tensor RT. So what Tensor or TLM does is
- 10:22it's going to rewire your, your model in terms of like the
- 10:26neural network to to be adapt to the to the architecture of the
- 10:30hardware. So you define you, you tell it,
- 10:33OK, I'm going to use NVIDIA, you know, whatever.
- 10:35H100H100 whatever. So it knows the architecture, it
- 10:39takes whatever model like LAMA three, LAMA 4, whatever and it's
- 10:42kind of tweak it to just fit for that architecture, optimize it.
- 10:47We saved at least 50% latency. That was like a again, that's
- 10:52why I told you about the throughput, latency, cost and
- 10:56performance and accuracy. Like we, we have been saving
- 11:00cost and saving on latency and saving on cold starts.
- 11:05And also when you use Tensor or TLLM and we use specific models
- 11:09from models and GPU's, you get more batching capabilities.
- 11:13Now. I mean, the first time I start,
- 11:14I mean why my learning has been evolving so much is the first
- 11:18time I was learning about how you deploy a model into the GPU.
- 11:21I was like, OK, we use like let's say an 8 gig 8B model.
- 11:26You need a 16 giga to to have it there.
- 11:29OK, so why do I need to have like a 24 or why it's taken so
- 11:34much kind of gig? Sorry it no, sorry if it if you
- 11:38take a sick an 8B quantized to kind of four bits it takes for 4
- 11:45gig of memory. So when when we were thinking to
- 11:48of picking which NVIDIA model or any GPU would work best for us,
- 11:52I was trying to get the smaller one where I can fit that kind of
- 11:554 gig or 8 big 8 gig. Yeah, you fit it nice and tight.
- 11:58Yeah, you fit. It there and it's all good and
- 12:00that's all but. That didn't work.
- 12:01But then I was, you know, as as my learning was evolving, I was
- 12:05like and, and, and I was even thinking of fitting 2 models in
- 12:09the same GPU to try to create throughput.
- 12:12So if I have two models running on the same GPUI can maybe send
- 12:16twice more requests. But then what I ended up
- 12:18learning is like the way the KV cache work and all of these
- 12:21things. It's like you said, you get your
- 12:24your model deployed and then use the rest for your KV cache.
- 12:29And with the KV cache you can do batching and with tensor RTLM as
- 12:32an example, you can do in flight batching.
- 12:34So meaning if you when you create your batch of like say 16
- 12:38requests, you know 14 are processing 2 are done.
- 12:42You don't need to wait for these 14 to be done to create a new
- 12:44batch. You can have two more added to
- 12:46that same batch so it keeps going forever.
- 12:49Again, this is where when I talked about the learning aspect
- 12:52of this and like all the tools available and not be overwhelmed
- 12:55and focus on optimizing 1 area at a time.
- 12:59I was like, yeah, instead of trying to do two or three models
- 13:01and one GPU, I'm going to do 11 model on the same GPU and use
- 13:08everything else for KB cache and I'm going to have a huge
- 13:11throughput. While again, with optimizing the
- 13:13sensor RTLLM you would have, you will also reduce latency.
- 13:16So I was like, wow, OK, I don't need to go crazy on trying to
- 13:20fit as much as I can within the GPU.
- 13:23Just use the memory. It's it's kind of
- 13:26counterintuitive to how would you think about regular CPU and
- 13:29memory you try to fit. OK, if my system will only use
- 13:33this much, I will I can have, I can do more virtual systems
- 13:37running on the same hardware for, for for GPU and AI.
- 13:40I was like, no, no, no, no. Everything I have left, if I
- 13:43can't change the number of you know how big is my batch and I
- 13:47use all the remaining memory left on the video memory.
- 13:52Well, we can have a lot of throughput so and with influx
- 13:54going to even be better and faster.
- 13:57And did you figure out any ideas around the amount of money
- 14:07you're spending? Because if you get more
- 14:09throughput it, it enables you to get a bigger machine.
- 14:13Yeah, right. And yeah.
- 14:14So increase the GPU. So obviously we went from
- 14:17smaller ones to bigger ones. I don't have the exact names by
- 14:22going to bigger GP us and you know, having one model,
- 14:25increasing the KV cash, improving throughput, I didn't
- 14:28need to run more of these machines.
- 14:30So this is this is again another counterintuitive approach.
- 14:34So I have my DevOps infra team coming to me and saying, OK, we
- 14:38need, I mean, it's better for us to go and get reserved instances
- 14:41from AWS to pay 30 percent, 40% less.
- 14:44But reserved instances you need to commit to a certain number of
- 14:47years. And then on in terms of the GPU,
- 14:50we were trying to get the smaller GPU that gets there and
- 14:53serve us the best. But then every time you pick a
- 14:57GPU, there's a better GPU, right?
- 14:59Faster, better, more memory, but more expensive.
- 15:04And my thinking was if I can achieve a higher latency,
- 15:07obviously everything will get done and leave the GPU so I have
- 15:11time to get more things done. And if I increase my throughput
- 15:14so the number of lanes I can get AI to be running well, I would
- 15:19be able to serve more customers faster.
- 15:22So I don't need that many GPUs. So what happened is I did some
- 15:25math of if I'm going to go from this GPU to the next GPU, it's
- 15:29going to be 30% more expensive, but I'm going to use 50% less of
- 15:33the time. So it's going to be like 30%
- 15:36cheaper. So we were upgrading on a
- 15:39frequent basis, upgrading GPUs while saving money.
- 15:43So talking about the scheduled scaling I had, I'm going to take
- 15:49some random numbers. Let's say when we start the AI,
- 15:51we were running again, 10 GPU's for the whole day.
- 15:56And then we looked at this and we said in the morning and
- 15:58night, nights and weekends, we don't have that.
- 16:00So let's do 5 on these times 10 throughout the work day, like
- 16:04from 8:00 in the morning to like 6:00 PM, we'll have 10 machines.
- 16:08So I was just by doing that and I was doing the math how many,
- 16:11you know, GPU is I'm saving what's the cost per hour and
- 16:14then I was always reporting on these numbers.
- 16:17This is how much I'm saving on a daily and weekly and monthly
- 16:20basis. And then and then now from
- 16:23instead of having 5 and 10 because they have better GPU's,
- 16:27faster high throughput with the optimization using tensor TLM, I
- 16:32don't need to have five in the weekend. 2 are good enough to
- 16:34serve and the food throughout the day and only 10, six are
- 16:38good enough. And add to that like multi
- 16:41region. So we also have Europe regions
- 16:43and stuff and and these kind of the same, same strategies work
- 16:48but for different numbers because of the traffic and the
- 16:50load you have. So over time, this is again,
- 16:53this is what when reflecting on it now, I feel like I was never
- 16:58able to do this. I was able to save money.
- 17:01I was able to improve performance, latency and
- 17:05throughput and even quality because I was using bigger
- 17:08models on bigger GPU's. I was kind of optimizing all the
- 17:12what I was describing in the pyramid, all the edges of the
- 17:16pyramid every time with with by learning and exploring all these
- 17:22techniques and technologies. And again, I don't have like an
- 17:25infinite budget to hire the best people who know about all of
- 17:28this and bring them. I was doing this iteratively
- 17:31with my team, getting into, you know, talking to AWS, talking to
- 17:35NVIDIA, understanding, you know, what tools, what, what tools we
- 17:38have available to go and optimize one of each at a time.
- 17:43Yeah. But it's, it's been working and
- 17:45it's been magic. I don't think I've ever done
- 17:47this for any sort of like cloud distributed systems before where
- 17:50you can optimize all of this. There's a trade off like you
- 17:52want more power or sorry, it's going to be more expensive.
- 17:56You want to something else you want, you're going to trade off
- 17:59something in AI. And I understand it's still like
- 18:01there's a lot of trade-offs to do, but if you do them while
- 18:05focus on your use case and what you need, there was a way to
- 18:08optimize on many levels. Yeah, you're walking a
- 18:13tightrope. Yeah.
- 18:15And you recognize that if XYZ remains true, then that allows
- 18:21us to get a beefier machine to have things get done faster.
- 18:25And especially when we have higher demand, we're going to
- 18:30really take advantage of it. And then we can scale down and
- 18:33take advantage of like the lower demand.
- 18:36So we don't need these machines. And because you're saving money,
- 18:40that probably gives you more expendable cash to test bigger
- 18:45machines. And see does this scaling law
- 18:48your own little world scaling? It was again, that that is
- 18:51exactly what was going on when I was talking to my team and my
- 18:55team, I think we all experienced this maybe for the first time.
- 18:59But my DevOps infra SRE team were like, hey, like if you go
- 19:05bigger machines, you're going to pay more.
- 19:07They are like 3040% more expensive.
- 19:10And when I was thinking about this, I was like, yes, yeah, I
- 19:13want the more expensive thing because I'm going to run it less
- 19:16number of hours. My unit is not locked into how
- 19:20much is the cost of the machine per hour.
- 19:23It's how much I'm going to run these machines overall and we
- 19:26pay per the minute or maybe even by the 2nd.
- 19:30So as long as you spin up and spin, you know, spin them up and
- 19:33turn them off as soon as you're done and you have this dynamic
- 19:36scaling that really minimized. And you have also the scheduled
- 19:401, you can run the fewest number of hours using higher GP us to
- 19:48serve more customers over time and you're saving time and
- 19:51you're improving latency. All of this also the other thing
- 19:55we can talk about these the models themselves.
- 19:57So we have been also able to upgrade our models from to
- 20:00bigger models, better ones. And I'm not even talking about
- 20:03our explorations on using different models now, because
- 20:07for the different use case, I have use cases where it's more
- 20:09about rephrasing, polishing text, you know, I'm trying to
- 20:12give you feedback, work together in HR tech.
- 20:15You know, I'm going to give you feedback and there is an agent
- 20:17that will help you rephrase and Polish this to be, you know,
- 20:20fit, polite and nice and actionable.
- 20:23I mean, actionable and insightful.
- 20:25That's what we say. So that is we're going deep into
- 20:29the weeds here and this is just experimentation.
- 20:33But if it's based on just rephrasing your, your input and
- 20:38output are small or about the same size, right?
- 20:44So understanding that and understanding how prefilling and
- 20:46decoding work, you can think about like maybe I can use a
- 20:49smaller GPU to just do this and do it faster because it's kind
- 20:55of the same input and output size.
- 20:58But there are other features where you you go and generate
- 21:00the whole program plan and that for that it's maybe short
- 21:04instruction, but the output is big.
- 21:06So teams like the prefilling phase is very quick, very small,
- 21:11but it's all about decoding, it's all about generating new
- 21:13tokens to just, you know, the new data.
- 21:15So maybe there's a different architecture, different models,
- 21:19different GPU's. If you do also load balancing
- 21:23that is based on this information, you can go to the
- 21:26GPU's that are that are that did the prefill phase the same.
- 21:31Because of this, at the end of the day, most of the prompt or
- 21:33the instructions are the same. Go and generate for me a plan
- 21:37for a manager that is this XYZ. It's the main difference is in
- 21:41the decoding part. So some of these GPU's might
- 21:44have if you design properly might be capable of saving a lot
- 21:49on the prefilling phase and go straight into like the first
- 21:51token start generating immediately.
- 21:54Again, these are these are next level things that I'm looking
- 21:58into and there I can go into again for some use case, I can
- 22:01go to smaller GPU's, smaller models and other, other use case
- 22:06I can go bigger ones. So now I think the next phase is
- 22:09that kind of layer of routing and proxy gateway.
- 22:14Yeah, we build something we call the DLM proxy, which is like an
- 22:17AI gateway, decide where to go, which GPU, but that require us
- 22:22to really have load balancing. And you know, that is informed
- 22:27on AI data, not just on memory, CPU and VRAM usage.
- 22:32It's more about like who has more prefilling for, for this
- 22:35request, I'm going to take it to that GPU because you're going
- 22:38to, if you go to that GPU, just go and decode.
- 22:40If you go to the other GPU, you need to prefill and then decode.
- 22:43So it's getting interesting. But the good thing is like once
- 22:48you build a good foundation and you really get into
- 22:51understanding these, and as you said earlier, you lock a few
- 22:55parameters and you focus on optimizing one of them, like
- 22:57costs or latency or throughput. You can alternatively go and
- 23:00improve if you want to get them all improved at the same time,
- 23:04that's when you get overwhelmed. That's where you get like, Oh my
- 23:06God, the sick. Yeah, there's like a new model,
- 23:08a new system, new framework. Can you umm cloud AI GPU
- 23:13provider that does all of this go new?
- 23:15Way to quantize a new way to yeah, yeah, yeah.
- 23:19And fine tune, I mean, at some point also fine tuning, we were
- 23:22really actively thinking about it at the beginning to try to
- 23:25adapt our use cases to, to HR tech.
- 23:28But then we felt like it's, it's, it's going fine.
- 23:31He like kind of foundational model are good enough to just do
- 23:36it without fine tuning. So quantizing was big good to
- 23:39just scale it down, but nothing more.
- 23:42And then one of the other challenges though, is becoming
- 23:44more and more serious is translations is, is supporting
- 23:49different languages. We are in a space where our
- 23:51customers are not just English speakers.
- 23:53We have 30 ish language with that and we need support.
- 23:57So which models do this the best?
- 23:59How do you do that? How can you manage this and how
- 24:02can you even evaluate accuracy and quality of these responses?
- 24:06Yeah, and you need a bigger model, bigger machines for
- 24:10models that can handle more of these more.
- 24:13Languages, yeah. And talk to me a little bit more
- 24:15about how you're championing for the ROI of AI, because all of
- 24:21this is well and dandy. But then if you can't prove that
- 24:27these AI generated summaries or polishing or any of that
- 24:31actually provides value to the customer, then it's like, cool,
- 24:36you just did a lot of engineering work to make this
- 24:38incredible for an engineer. But the.
- 24:42City for the NTS. Yeah, the leadership is sitting
- 24:44there going like, So what? Yeah.
- 24:46Again, this is part of things I get exposed to a lot.
- 24:50I'm not that kind of typical practition, you know, an AI
- 24:54that's just focus with the terminals and like CLI and all
- 24:58of that. I do that, but also I'm very
- 25:00business oriented and I'm part of like council internally at,
- 25:04at the company I work for, where we put together vision and we,
- 25:08we try to assess where AI will have an impact.
- 25:10So before, when we started, you know, building AI, we, we came
- 25:14up with this framework. I ended up calling the flywheel
- 25:17framework to be able to plan for what where AI will will help in
- 25:22terms of the product and then with engineering and technical
- 25:26capabilities, go and build the first iterations of that.
- 25:30The the third step is to run it really run it and look at the
- 25:33you know what, how it's going. And then the 4th one that will
- 25:37connect you back to the planning is optimizing, which I was
- 25:39talking a lot about like a go and optimize, Go and improve
- 25:42latency, accuracy, add support to other languages and.
- 25:45Stuff. That's the end of the whole
- 25:48flywheel. First you have to.
- 25:49Yeah, understand if it's. Exactly.
- 25:51Worth doing and. Yeah.
- 25:53So in the planning phase is where we meet across different
- 25:56departments. It's not just product and
- 25:58engineering deciding what we do, right.
- 26:00Like we work with our customer success, we work with our, you
- 26:03know, legal and ethical teams. We we work with our sales.
- 26:07We really try to assess where AI can help us push the business
- 26:12forward. And when it comes to me and my
- 26:15contribution to the conversation is like, what is the easiest AI
- 26:20that we can build that can have the highest impact?
- 26:23I don't want to go and build like a six months, nine months
- 26:26projects and then find out that maybe, yeah, it's it was a big
- 26:29investment for a small ry. I want to build the easiest
- 26:33thing that will really change the experience.
- 26:34So by collecting this information, work across these
- 26:37and we have also customer councils.
- 26:40So we really work with our champions at our, you know,
- 26:43because we are B to B. So we collect these information
- 26:46from our customers. And if we understand where do
- 26:49they think AI will help their, their end users, their
- 26:52employees? It's so funny because at the
- 26:55early ages of building AI, I mean now we're talking about
- 26:58ages, but the early days of building AI, we had a lot of
- 27:02pushback on, on the adoption. You know, there were a lot of
- 27:05concerns, lack of trust, You know, even the image of some of
- 27:09these AI vendors were not great because they were big customers,
- 27:13enterprise customers globally. We're concerned about using
- 27:16their private data to train models.
- 27:18So they didn't really trust the systems early on.
- 27:21So they were. Has that changed?
- 27:24A completely changed service they.
- 27:26Don't care, they say train all my whatever exactly if it's a
- 27:29better. A lot of customers used to say,
- 27:31you know what, we don't want any data to go to any, any vendor.
- 27:36We don't want the AI to be involved here because we don't
- 27:38trust these vendors. So that's our first push into
- 27:41building AI internally, self host, self manage.
- 27:45Our first early proof of concepts where through API based
- 27:48AI like open AIGPT. So we had to self host, self
- 27:53manage everything. So we can go back to these
- 27:55customers say, hey, your data is private, is in the boundaries of
- 27:58our systems on the cloud. It's the same thing as, you
- 28:01know, saving your data into a relational database.
- 28:04Our AI will run within the ecosystem.
- 28:07But then what it changed like a year, a year later, is that the
- 28:11the same customers or most customers are asking for our AR
- 28:14road map. They want to see where, where
- 28:17are we adding AI, they want to even contribute and push that
- 28:20road map towards what fits them best and what works for them.
- 28:25At some point we had customers asking if they can bring their
- 28:28own AI, like they have their own agents or they have their own AI
- 28:32or they have their own enterprise accounts within these
- 28:36vendors and they want to connect that.
- 28:38Oh yeah. Which is very interesting.
- 28:40And obviously something we're we're, I mean, I'm open to
- 28:44consider. It's just, you know, how can you
- 28:45make that system work where you don't control the model?
- 28:49You don't control, you know, the everything about it is just, you
- 28:53know, you throw the data and you wish it's going to work and you
- 28:56optimize. How would you optimize for that?
- 28:58You know, you know, prompt engineering and all the work you
- 29:00do on a frequent basis, it's based on the idea that you know,
- 29:03and control the models. If you don't anymore, that's
- 29:06going to be tricky. So who is where does the
- 29:10liability goes when it comes to the ownership and the issues of
- 29:14the problems with it? So yeah, it shifted completely
- 29:17from being very, I would say skeptical with AI and concerned
- 29:22about the responsible AI and privacy to completely the
- 29:25opposite, Like we want more AI and show us AI and we want AI to
- 29:30be here and here and here because it's going to save time.
- 29:32So all this leads back to that kind of planning phase where on
- 29:36on a 2D kind of graph, you need to know what is the lowest kind
- 29:40of effort techno, technically speaking, to build the AI
- 29:43features or capabilities that will have the highest impact.
- 29:46Start there and keep it small in terms of scope and execution.
- 29:50So you don't want to spin up these huge projects and and lose
- 29:53control in the middle and so. You're mapping out on that 2D
- 29:57graph all the possible ways you can plug in AI.
- 30:01You've heard from customers, oh, we want this feature, blah,
- 30:04blah, blah. And then you're just kind of
- 30:08throwing story points at how. Kind of voting, yeah, kind of
- 30:11voting from, because at the end of the day, you and your team,
- 30:15from an engineering perspective, an AI team will have to go and
- 30:17build it, right? So you have to vote on, you
- 30:21know, how much you think this is feasible.
- 30:24There's a lot of research that is involved, the experimentation
- 30:27that is involved. Again, this space is moving so
- 30:29fast. So from an idea to turn that
- 30:31idea into really an execution plan, it's going to it's going
- 30:34to require you to vote and chime into, you know, evaluating these
- 30:40requests. So, yeah, when you end up with a
- 30:42view where you can have like a top right corner where you see
- 30:45what is high impact, low effort, that's where you kind of go and,
- 30:49and work and collaborate with the other teams on building.
- 30:53And, and also sometimes you think about the the features of
- 30:56capabilities that will enable more capabilities later in the
- 30:58future. So this is where even my own
- 31:01thinking about building AI has been shifting over time when I
- 31:04was trying to do more vertical AI.
- 31:06I'm going to do this AI capability for this domain.
- 31:10Think about like goal settings. As an individual who's working
- 31:13on a company, you want to build your own goals.
- 31:15You know, your, your OK Rs, your whatever KP is you have to track
- 31:20on a quarterly or yearly basis, but you don't want to build that
- 31:23on a silo for you, just yourself.
- 31:25You want to match this with your manager, your team, your
- 31:29department, the OR the top company goals.
- 31:31So building AI in any of this is, is for me, a vertical AI
- 31:35because we're just taking goals as a domain and it kind of
- 31:39empowering with, with AI. Think about doing this and other
- 31:43domains like giving feedback, like doing conversations with
- 31:46between managers or 360 reviews. And now you have AI running on
- 31:50all of these systems. Now if you have the right
- 31:54foundation and if you build AI as a platform instead of a
- 31:57product, now you can build a horizontal AI which can go and
- 32:01use all of these AI you build to build bigger, more complex, even
- 32:05multi step AI like building programs.
- 32:08You are you are someone who was promoted into a manager role.
- 32:12How would you manage your team at the thirty 6090 days?
- 32:16What meetings you need to set up what, what data you need to
- 32:19collect about your the people who are reporting to you.
- 32:22Now, if you had to do all of this without AI on your own,
- 32:26it's going to take forever. It's going to take a long time.
- 32:28But now with AI capabilities available in every one of these,
- 32:31it's going to bring to the surface a lot of good insights
- 32:34that another AI layer can really use to build the program for you
- 32:38across all of these. And now go and maybe suggest,
- 32:42OK, well, you need to set up goals this way for you and for
- 32:44your team. I recommend like you have a
- 32:47one-on-one on a biweekly and maybe you need to start
- 32:50conversations with individuals. They report to you on 60 instead
- 32:54of 30. And maybe you need to kind of
- 32:58start to think about how would you develop skills for this team
- 33:03based on what we know about your team, You have gaps and certain
- 33:06things based on the goals you say.
- 33:07Like again, I think of me of like managing a new team and
- 33:10saying, trying to say, hey, like 6 months from now, we need to be
- 33:13able to have more advanced agentic workflows and, and the
- 33:18platform. But you know, AI would be
- 33:21looking at all of the feedback data or all of the skills that
- 33:24are in my team and figure out that I have gaps.
- 33:26So it's going to ask me to either develop gaps or find
- 33:29resources maybe from other teams to bring to this team so we can
- 33:32achieve that goal. And this is like a deep research
- 33:35report on the team type of thing.
- 33:38So it's a, it's more about pulling using all of these AI
- 33:42capabilities within these vertical stability AI.
- 33:45So you can call deep research, but it's, it's not built that
- 33:49way. It's more about, I would say,
- 33:51workflow where you're pulling data from all of these systems
- 33:54and then trying to summarize this and then create insights
- 33:58and then go back to create actions within these domains.
- 34:01And all of these verticalized ones you're trying to create in
- 34:06a way that can be generalized. So you're using the same models,
- 34:09it's just that the product itself is vertical.
- 34:13Yeah, exactly. It's all using again, we're
- 34:15still in the Mono model. Again, I think the future will
- 34:19hold this capabilities of really tweaking every domain to the
- 34:25right size model, the right size architecture behind, because not
- 34:29every domain or feature require the same capabilities.
- 34:31I talked about this earlier. Generating content like goals is
- 34:35different from just polishing feedback or, you know, giving
- 34:39you a draft where a conversation.
- 34:41But all these verticalized pieces are then just bubbling up
- 34:47the most important parts to the prompt, that is that horizontal
- 34:50layer. Exactly, Yeah.
- 34:52And you know what, another thing we have been also doing recently
- 34:55which can lead to more tweaks and and explorations in the
- 35:00infrastructure aspects or the ML OPS aspect is preprocessing
- 35:04these verticals before you come and ask for a horizontal
- 35:07feature. Oh nice.
- 35:09Yeah. So, so if you if you can already
- 35:12generate the summary of employees kind of goals or the
- 35:17feedback they received over the last year or so, So when the
- 35:20horizontal request come to build a plan or build the whole
- 35:24program, this data is available. So you don't need to on runtime
- 35:29run AI and try to summarize and do all of that.
- 35:31You can have that data preprocessed where this works
- 35:34really well with the ML OPS aspect.
- 35:36These how can you do these batched work at A at a time
- 35:40where your AI is not requested the most.
- 35:43Going back to what I was talking about, the scheduled, you know,
- 35:47kind of scaling, if you can figure out these times where
- 35:50it's really low in usage and you have enough machines, you can
- 35:53run these batch job at night or a time where it's cheap.
- 35:56Yeah, it's like consolidate learnings and then boom, you're
- 35:59on that job, you kick it off. Exactly.
- 36:01Yeah. And you have some sort of a
- 36:02queue of request, you know pre processing data.
- 36:05But there's no, I mean it has a lower level of priority or
- 36:08urgency. So it can be done whenever there
- 36:10is a bandwidth to do. This now gives you that
- 36:14framework. You hit on how you choose the
- 36:17different pieces. Then you had that flywheel.
- 36:20There was the next step of going and building it.
- 36:23Building. Yeah, building is when you
- 36:25decide what is the best model, where is the best architecture.
- 36:28You know, the architect, the architecture on the on the
- 36:31cloud, the cost and all of that. You play some bets, yeah, and
- 36:34then you go and you optimize. That was the next.
- 36:35And then you go and run it. So that's when you deploy it,
- 36:39obviously you have different stages before it goes to
- 36:41production, full exposure, you have it rolled out into
- 36:45different stages and confirm that it's exactly what you want.
- 36:49And then you go and optimize. Once it's again deployed to
- 36:52production, you go and optimize and make sure, OK, well, this is
- 36:54good. But there's nothing we built in
- 36:57the last three years that was that we never went back in, in
- 37:01optimized. So that's the beauty of this
- 37:03kind of mindset of there is always opportunity again,
- 37:07because in the last three years or two years, just the last
- 37:09three years, so many things changed, so many new models came
- 37:14up, so many new techniques to optimize the models came.
- 37:17So every once in a while you go and and change and optimize.
- 37:20And also internally, we had so many new requests to add to
- 37:23these, again, support new languages, do it faster, do it
- 37:26better, add more guardrails to safeguards, ensure that it
- 37:30doesn't do this, it doesn't do that.
- 37:32How would you also offline build an evaluation framework that
- 37:35would go and ensure whatever changes you do to the prompts or
- 37:38changing the models or the infrastructure performance and
- 37:42accuracy and quality of these responses still meeting certain
- 37:45level that you have set up. So optimizing, I mean if I had
- 37:50to draw this flywheel like all the the first 3 would be small
- 37:55parts of the circle. Optimization is at least half of
- 37:58it. How do you know it's working?
- 38:00How do you know that the customer is finding value in it?
- 38:04Is it usage metrics? Is it?
- 38:06Yeah, well, I mean it's usage metric, it's obviously another,
- 38:11you know, we can also have reported data from the customer,
- 38:14self reported data about their, you know, think about an MPs,
- 38:17the score, right, Like their how they think of this feature is
- 38:21changing the way they interact with the platform or even with
- 38:24specific domains. You have also ways because when
- 38:29we built all of this, we were focused on building responsible
- 38:31AI before it, before anything, because we are an HR tech space,
- 38:35very highly compliant, regulated, face sensitive data
- 38:39all the time. Like I, I always get these
- 38:41questions about like data classification.
- 38:43I say everything is, is very sensitive.
- 38:45So there is no, it's one class. So when you're trying to build
- 38:50the responsible AI, some of these, the pillars of
- 38:53responsible AI is transparency and explain ability.
- 38:57So you need to be transparent about why AI did this, where
- 39:02this summary come from, what are the sources of data that are
- 39:06used to say that this person has this skill as an example and
- 39:10then explain abilities. Sometimes when you do some of
- 39:13the AI changes or generation, you explain why AI thought that
- 39:19this is the best thing to do. So the think the way we think
- 39:24about AI is not just a tool where you can put your brain on
- 39:27the side and just use it. It's also something that will
- 39:31train your your brain to do better next time to to grow as
- 39:36an individual or as an employee and to develop skills as well.
- 39:39So it's a very good way to learn.
- 39:42So there's that. I mean, there's the reported
- 39:43data. We have ways to explain to the
- 39:45user how it works. We have also thumbs up, thumbs
- 39:48down. Tell us if this doesn't meet
- 39:50your, your needs or doesn't look good.
- 39:53And then we also collect a lot of metrics and data that we have
- 39:56internally to see how much the introduction of AI has changed
- 40:02the way we people interact with the features and the, and the,
- 40:05and the product. So understanding that is our.
- 40:09Kind of promotional material is to go and tell current customers
- 40:13and future customers, hey, using AI today, people are able to
- 40:18like we are able to achieve 50% more goal, you know, metrics or
- 40:24people are creating more, more conversations or given more
- 40:28feedback because AI is helping a lot with that.
- 40:30You have the author's block like you'd AI can build for you a
- 40:34draft without you to have to think so much about how do you
- 40:37even start when you're trying to build goals?
- 40:41It's so hard for you to set two goals for the next quarter, the
- 40:44next year on your own. AI can really create drafts of
- 40:48goals for you that really, you know, based on the history of
- 40:51all the goals you had, but also looking at your manager, your
- 40:54team, your department and the vision of the company.
- 40:57So again, if I had to do this on my own, it might take a few
- 41:00days. Like we all been there and we
- 41:02had we had, we were asked to kind of put together some
- 41:07objectives and OK, Rs and then find out like, where should I
- 41:10start? And you go and browse and look
- 41:12at everyone else to just make some decisions.
- 41:14Now AI gives you 8 gets you 80% there.
- 41:17And all you need to do is like review, align, make sure you add
- 41:21anything that was missing and creates this kind of hierarchy
- 41:25of goals and objectives that before was really hard to
- 41:30achieve. Are there any features that you
- 41:32put into production and you thought they were going to be
- 41:35successful? You were convinced that this is
- 41:38going to add so much value to the end user's life.
- 41:44We need to have it out there and for some reason or other it just
- 41:48didn't work or it didn't work as you wanted.
- 41:50Yeah, there's no, no direct path to success here.
- 41:54You had to go through iterations and, and I think the most
- 41:57successful leaders and businesses just are the ones who
- 42:01had fewer, you know, scenarios like this.
- 42:04So one feature I recall is when you help users rephrase feedback
- 42:11they want to give to another person.
- 42:14And as a user, you will go and type your feedback the way you
- 42:17used to do it and use AI to just find any gaps in it, Polish it
- 42:20and prove it. You might also go and give it
- 42:23bullet points instead of really develop your own feedback
- 42:25structure. And then AI would take that and
- 42:27improve it for you. Umm, and this is early on when
- 42:31you start building these kind of Polish, umm, writing assist
- 42:35capabilities. The challenge with these is the
- 42:39amount of things you need, the nuances and the language you use
- 42:43across different languages. That's even another problem, but
- 42:46the different nuances of how would you rephrase these and how
- 42:49AI will take that and and change it where you know, if you don't
- 42:54have the right setup for this, AI can take what you wrote and
- 42:57completely write a different version that will change it
- 43:00completely. Maybe we'll have the same
- 43:01meaning, but completely in a different.
- 43:03And then users. Way that doesn't look like you,
- 43:06it's not your tone, it's not your language.
- 43:09So another thing that can do again, hallucination is a big
- 43:12thing. It can start going into, you
- 43:14know, different directions. It can start, you know, if you,
- 43:19if that message is a little bit long, it can start to lose some,
- 43:22some facts and the conversation and you have to bring it back to
- 43:25by by tweaking it again and again.
- 43:27So I think this feature when we first initially started, got the
- 43:32most feedback from the customers where it's, it's different.
- 43:35It's not exactly what I what I need and I use it.
- 43:39I try it and it gives me something that I'm not really
- 43:42interested in using, so I drop it.
- 43:45So usages may be high, by adoption is maybe low.
- 43:49Yeah, value isn't there. Yeah.
- 43:50So because because we never go and push anything that AI writes
- 43:54on your behalf, you're still in control.
- 43:56AI is going to give you suggestion that you need to
- 43:58review and approve. So human in the loop is 100%
- 44:01guaranteed here. So what we have been doing since
- 44:04and that kind of optimizing is everything around guardrails and
- 44:08safeguards and everything around adversarial testing.
- 44:12Go go crazy and give it, you know, wrong feedbacks and see
- 44:16how AI, because if you are, I mean, again, the whole idea here
- 44:19is to help you as an individual give the best feedback possible
- 44:23that is actionable and insightful.
- 44:25But if you are an upset employee and you're trying to give a
- 44:28feedback that is bad to someone else, AI should not empower that
- 44:32and give you longer versions of that, make it even worse.
- 44:36Yeah. So the guardrails what to have
- 44:39had to have be set up in a way that is is like very dynamic.
- 44:46It has to learn over time. We had to learn from this
- 44:48feature, from the feedback to keep improving it.
- 44:51So first time when you build this, you think, Oh my God, I'm
- 44:54going to help so many users write great feedbacks, but then
- 44:58the feedback is like, Oh well, every time I use it, it doesn't
- 45:01look like a language I used or it got into talking about things
- 45:04I didn't mean to say. So going back into that and
- 45:08again, going going back to the basics for me every time we talk
- 45:11about these is how you turn that into an AI platform, not just
- 45:15tweaks to that feature or to that product.
- 45:18How would do you put safeguards and guardrails as part of the
- 45:21whole ecosystem where you can tune it for this feature but can
- 45:25use it for other features as well and became part of the
- 45:27whole ecosystem? Yeah.
- 45:29So you correct it once and you don't have to go and correct it
- 45:33again. Yeah, every time it comes.
- 45:34Up and you have a structure to leverage this more and more in
- 45:38your next product. So so that's again they're going
- 45:41back to the flywheel when you go and plan maybe the next feature
- 45:45after optimizing this one, you already use all the knowledge
- 45:47you had and all the infrastructure you had.
- 45:50So that's one of the pitfalls I see.
- 45:51You know, when people build AI is you build these products in
- 45:55silos and then you have to rebuild everything you have been
- 45:58doing. So one of the learnings I've had
- 46:00is how can we Anything we do is a platform is abstracted from
- 46:05these specific use cases, but more used as an architecture
- 46:08that can be spinned up for for any other thing.
- 46:12So let's shift from talking about AI products that you're
- 46:17creating for your company and your product to using AI
- 46:25internally, primarily on the engineering team.
- 46:29So agentic coding agents, agentic engineering, whatever
- 46:35the term du jour is, how are you guys doing that?
- 46:38How are you looking at the costs incurred there?
- 46:41Because that can be chaos. I was just at an agent boot camp
- 46:46a few weeks ago and folks were saying how they've created an
- 46:51internal dashboard on who's using what coding tools and how
- 46:56much they're spending. Not because they want to tell
- 46:59someone don't spend, but they want to see like if somebody is
- 47:03spending a lot of money, they should probably talk to them and
- 47:06see what they're doing, how they're leveraging it so that
- 47:10those people can then go and disseminate that information
- 47:14across the organization and showcase like how they're a
- 47:17power user. So the first thing I I
- 47:21recognized is how many options are out there and how fast these
- 47:26things are moving. And there's also a cultural
- 47:29shift or maybe even a perception change.
- 47:32Software engineers, when they first learned about Devon as an
- 47:34example, the first AI engineer, we were all like, what?
- 47:38No, no way. This is like a joke.
- 47:40That's not going to work. I'm not saying it work, but what
- 47:44I'm saying is like the perception early on was like I'm
- 47:47not interested. This is not this is not for us.
- 47:51They did over promise and under deliver.
- 47:53Yeah, back in those days. Too, yeah, but the perception
- 47:55from software engineers and technical people were like, OK,
- 47:58this is not, there is no future where this will work.
- 48:02And then over time again with cursor, with windsurf and with
- 48:06all of these capabilities and IDE's and AI and then most
- 48:10recently like more focused on coding agents and stuff like
- 48:13that. Perception has been changing.
- 48:16And for me, what I have been seeing is 22 curves, 1 is the
- 48:20adoption growing for sure, like adoption of software engineers,
- 48:24adopting AI technologies, growing to certain degrees where
- 48:27today, I mean, I don't have exact data, but in internally in
- 48:32my team, I think we're close to 100% if not 100%.
- 48:35I don't, I don't, I don't think we have any engineer who's not
- 48:37using AI. So I'm not going to assume it's
- 48:39100%, but it's very high percentage.
- 48:42And then the other thing is how that perception is changing.
- 48:45And even in that curve of perception, there were 222 sub
- 48:49lines I would say. And it depends on the seniority
- 48:53level. So junior engineers or early
- 48:56stage engineers have been more excited about AI.
- 49:00Why? Because they can do more with
- 49:01it. They can do things that used to
- 49:03take years for them to learn and a lot of training and mentoring
- 49:07to get there and exposure to bigger projects to do.
- 49:11So now junior engineers capable of spinning up an
- 49:14infrastructure, a full stack thing and, and, and look at all
- 49:18of this and manage all of this without the proper training and
- 49:21exposure for it. And on the other hand, the most
- 49:25senior engineers, the architect level, they were very skeptical
- 49:28to how AI will help them. They, they are good, they are
- 49:32capable, they can do many things that others cannot do.
- 49:35So thinking about the AI, they not only thought at the
- 49:39beginning, AI will not change much in the way they work, but
- 49:43also they were concerned about other people, especially the
- 49:47less senior people, how they will use it.
- 49:51And that created the gap between, again, the output of AI
- 49:55versus, you know, the perception and, and how we deal with it.
- 49:58So early on when we started really exploring AI, I created
- 50:03an what I ended up calling the AI engineering lab.
- 50:06So it's a space or it's a system where we can go all and explore
- 50:11AI and with certain, you know, limits to budget, obviously.
- 50:17And I mean, with the open source and alone, you have a lot of
- 50:20exposure to a lot of good things.
- 50:22But internally we adopted, you know, a few tools that we start
- 50:25to, you know, offering seats to my team and, and go and explore.
- 50:30So with these things, we, I mean with the AI engineering club, I
- 50:34wanted everyone to go and explore AI without that kind of
- 50:38predefined perception. I didn't want to dictate, I
- 50:40didn't want to say anything. I don't want the to the senior
- 50:43to influence the junior or vice versa.
- 50:45I want everyone to go and explore and use it in very
- 50:48limited scope to just ensure this is good.
- 50:51We start with some projects that were not very top priority and
- 50:56we had people create code, the news AI and go figure out these
- 51:00tools and you know, bring GitHub Copilot with mixed with the
- 51:04memory bank and is a very specific agents.
- 51:07And then I had my senior engineers who were not like the
- 51:12most active in using AI on a daily basis to kind of take a
- 51:16look and review this code. And I intentionally wanted them
- 51:20to give like a very honest feedback that is, that doesn't
- 51:25know necessarily if this is done by AI or helped with the help of
- 51:28the AI or not. And then definitely immediately
- 51:31they start seeing the patterns, they start to see that the
- 51:34quality is not great, the design patterns are not.
- 51:37Respected. It has a smell to it it.
- 51:38Has a smell and I start having feedback that hey, now that we
- 51:42opened explorations to AI, yes, it's off projects, you know, all
- 51:46the side projects, not something that is critical path.
- 51:50But we are seeing a pattern of people using AI just to do more
- 51:55without taking that time saving to review and and fix things and
- 52:00remove, you know anything that is not in our best practices.
- 52:05Sometimes AI would come up with its own design pattern.
- 52:07While we have our own we have components components that we
- 52:11use that AI is not respecting and building its own component
- 52:14for UI or even for a back end. So that that is where the senior
- 52:18engineers got more and more involved into the process
- 52:21saying, OK, OK, definitely we have this problem.
- 52:24So I want the other people to take more time to review.
- 52:27So if AI is saving you 80% time or 70, use twenty, 3040% of that
- 52:32time to review. So defining the the new SDLC has
- 52:39been a process that we all contributed to.
- 52:42It was not dictated. It was not based on a research.
- 52:45It was more like a a collaboration within the
- 52:47engineering team where we ended up fine tuning overtime what
- 52:50should be done. And the way we ended up adopting
- 52:53is like you use AI, like we all agree now AI is all over the
- 52:57place, but anytime you any time saving, you do use that to
- 53:02review AI. The output of your work with AI
- 53:06should be exactly the same as the output of your work without
- 53:09AI, meaning you need to own the code, you need to understand the
- 53:12code, you need to really make sure it's adapted to our design
- 53:16patterns and our components. Otherwise you're you're saving
- 53:20time but also creating a lot of problems that will either blow
- 53:24up now or later. And did you take certain things
- 53:27from the senior engineers and immortalize them in like rules
- 53:33or ways that you can make the coding agents respect the
- 53:39components or the design patterns that are common
- 53:42practices within the org? Yeah.
- 53:44So that's where again, I, I, this AI engineering lab started
- 53:48the whole conversation where, and this is where I told you
- 53:51about the graphs, the lines earlier where I think it started
- 53:54more with, with the mid level engineers pushing, pushing to
- 54:00the adoption of AI while the most senior engineers were like,
- 54:04OK, well, let's take our time. Let's be careful here.
- 54:06This can create a lot of trash. Chaos in the data.
- 54:09Yes and chaos. So now they have everyone's
- 54:12attention. I was like OK, well tell me more
- 54:14about this. And I had more time from the
- 54:16most senior engineers to go and review to go get themselves
- 54:19also, you know, spin up all of these tools and figure out the
- 54:23best. And what we ended up adopting is
- 54:27again, is leveraging a lot of memory aspects, a lot of like
- 54:30instruction skills based where these agents, we go and build
- 54:34something that we all agree on, we vote on.
- 54:36It's like building code. Now, again, building these
- 54:38skills and these instructions, it's like writing your code.
- 54:42So you define what is best, you point the AI to the right kind
- 54:45of design patterns, to the right structures that needs to follow.
- 54:50And then over time, the output of AI has been significantly
- 54:53changing, impacting the performance and velocity of
- 54:56everyone in the team, but especially the mid level to, I
- 54:59mean, junior to mid level. So that's, that's phase one of
- 55:03AI engineering club. Phase two now is exploration
- 55:07beyond what we kind of started with, because I, as I told you,
- 55:10we started with junior, mid level, pushing more AI code and
- 55:13then senior like, OK, well, let me, let me give you my attention
- 55:17here for a second. Let's improve this.
- 55:18Now everyone is using that that level we got to, but now the
- 55:23push is coming from more from the senior, the most architect,
- 55:26you know, kind of level people where they're going, exploring
- 55:29everything under the sun, you know, cloud code and all of
- 55:32these things and mostly say allies where it's changing the
- 55:37way they work. It's really a whole new way of
- 55:42writing code by managing all of these agents.
- 55:45It's not just one or two. It's like so many agents today
- 55:49saving a lot of time for the most senior engineers, which
- 55:52again, at the beginning they were very skeptical to the
- 55:54impact of this. And the same people that early
- 55:57on said, I'm not sure I'm concerned are now like, Oh my
- 56:01God, I'm like a, I'm like a God. They're running eight different
- 56:05agents in parallel. Yeah, they spend, I mean,
- 56:07they're using A at some point they, they are outpacing our
- 56:12standards and our mechanics because again, we are, we are,
- 56:15we are, we have controls in, in, in the system.
- 56:18So they're spinning up their own personal machines, their own
- 56:21personal subscriptions to new systems because they think it's,
- 56:25it's going to take time for us to go and review security and
- 56:28legal. And sure, like this is good.
- 56:30Like they are just experimenting outside of the regular kind of
- 56:34work because they are so excited about this.
- 56:37So at the end of the day, again, this AI engineering lab started
- 56:41started to just open the conversation and then kind of a
- 56:44took off from there. They caught the bug.
- 56:46Another thing we did is, you know, when we spin up this whole
- 56:50thing, we did this survey to just have people report on AI
- 56:54impact on engineering. Because I don't want to trust, I
- 56:57don't want to introduce any DX tools like a like tracking, you
- 57:01know, Big Brother way of like, are you using AI?
- 57:05How much you're spending all of that?
- 57:06I mean, I have the spending anything that is under the
- 57:08enterprise accounts. We, I have this, this spending
- 57:10and we are keeping that under control.
- 57:12But the usage, the way you use it, I don't want to control any
- 57:16of that yet. And I wanted the people to just
- 57:19go on and report on the, on the data.
- 57:22So their own thinking about how AI is helping them.
- 57:26Do you think AI is helping you get better software engineer or
- 57:29get more as a software engineer? Because there's a difference
- 57:32here. If you are a mid level engineer
- 57:35using AI, is that going to get you to senior earlier or it's
- 57:39going to delay that? Because you don't have to think
- 57:41about the problems. AI is thinking about the
- 57:43problems you're just delivering. So there's a difference between
- 57:47using AI to grow and be better or using AI to just do more.
- 57:51Another thing I talked about earlier is like, is AI helping
- 57:54you to be a better engineer on your own or a better engineer
- 57:58within a team? And is it making your team
- 58:00better? Is it making my whole
- 58:02engineering team better? So that's these because there's
- 58:05difference there and we'd, if we didn't do this in A and
- 58:09distributed way where everyone was contributing and then
- 58:12feedback came in and then we, we started like with so many
- 58:16options. And then we, we, we got to place
- 58:18where we have very few option that a lot of people agree on.
- 58:22If we didn't do that, the risk could have been off creating all
- 58:25of these silos of AI development where everyone is using their
- 58:30own tool, everyone is spinning up something, or we could have
- 58:33ended up with something that is dictated go news XYZ at IDE.
- 58:38With these models, your subscription is limited to this
- 58:43and that's it. And you don't give freedom to
- 58:45the software engineers and they would be just locked into that
- 58:48system. With the AI inside of your
- 58:52product, you took a very opinionated approach and you're
- 58:56optimizing to the Max and you're self hosting.
- 59:00You're doing all these things that are very hard engineering
- 59:04wise with the AI being used on the engineering team.
- 59:09You're not really doing any of that.
- 59:10Yeah. And so do you foresee a world
- 59:13where eventually you're going to get to running your own Quinn or
- 59:17Kimi models for the teams, you know, these coding agents that
- 59:21are self hosted and you can completely rely on because of
- 59:26it's cheaper and it's better in that regard?
- 59:30Well, that's that conversation is happening today.
- 59:33I've had people reaching out saying, hey, can we, now that we
- 59:36are deep into AI development and you know, AAI coding agents, can
- 59:41we spin up versions of our AI platform to support these
- 59:46efforts? Yeah, because you were just
- 59:47talking about how you want to create a platform.
- 59:50So you've already got the primitives there, right?
- 59:53Yeah. Well, well, that's the
- 59:56conversation we're having as of now.
- 59:58The challenge is how to adapt that platform to be a
- 1:00:02development platform. So again, you need to go and
- 1:00:05pick the right models. You need to go and spin up the
- 1:00:08right way to support more and more agentic capabilities.
- 1:00:13We have been exploring many things like MCP as an example,
- 1:00:17to just spin up not only the product but also development.
- 1:00:20So there is a place where these two things will overlap a little
- 1:00:24bit. But that's where I need to go
- 1:00:26back to the flywheel and go and plan for it, go and build it and
- 1:00:30run it and then optimize. But definitely that's, that's
- 1:00:33the direction. And I as of today, I have
- 1:00:35conversations happening about leveraging our own platform to
- 1:00:38do our own AI coding. And how are you looking at the
- 1:00:41cost for the AI coding? Yeah.
- 1:00:45What cost is so far under control, which is which is
- 1:00:49surprising. We, we spin up these, I mean we
- 1:00:53use different tools that the good thing about them is you
- 1:00:56have visibility into the cost and you can set up quotas.
- 1:01:00And we were for a long time in this kind of experimentation
- 1:01:03stage where we use different models.
- 1:01:07And then even if these models were out of quota, we go to the
- 1:01:09next one and we try and we keep iterating.
- 1:01:12Now we are getting a little bit locked in into what works the
- 1:01:14best and this is where we are investing into enterprise
- 1:01:18relationship with these vendors and solutions and just adopt
- 1:01:22them at the bigger scale. But you know, for a long time I
- 1:01:26had my team exposed to different options, either, you know, led
- 1:01:31by by the collaboration I have with our financial team just to
- 1:01:35get the number of seats I need enterprise accounts or just by
- 1:01:39exploring open source as well. I think there is a lot of
- 1:01:42opportunities with open source. And that's where the
- 1:01:44conversation was leading to this kind of leveraging our AI,
- 1:01:48because if we have the infrastructure, you can spin it
- 1:01:50in a different environment, but now you have less control on the
- 1:01:55the sensitivity of the data in terms of like HR tag the
- 1:01:59specific models. One of the examples I have here
- 1:02:01is as an example in our platform we cannot use Chinese originated
- 1:02:07models as an example like when and DeepSeek, but for
- 1:02:10development maybe we can. So that can create different
- 1:02:13different options for us less controls because we're not
- 1:02:16serving HR tech anymore, we're serving software engineering.
- 1:02:19And for that different requirements, different, you
- 1:02:21know, aspects that we can leverage our platform for.
- 1:02:25And yeah, that's going to impact significantly cost if, if, if we
- 1:02:30do follow that. Path and you can't use Chinese
- 1:02:32models because it's the stance that your company took or it's a
- 1:02:36compliance thing. It's, it's, it's a compli.
- 1:02:40It's a, it's a customer's request, yeah.
- 1:02:43We were a few people say that. Yeah.
- 1:02:45So we, I mean, if we work, if you work with a like a global
- 1:02:49enterprise, customers cross globe.
- 1:02:53Again, this takes you back to the initial concerns we had with
- 1:02:56even open AI in, in Anthropic early on because of how they,
- 1:03:02you know, customers don't know how, what's the process to, to
- 1:03:05train the data. So that same thing is happening
- 1:03:08today with the Chinese based models where we don't know how
- 1:03:11the data is being trained. We don't as customers.
- 1:03:14For me personally, I mean, I know how much these keep these
- 1:03:18models are capable, right? I know what they're capable of,
- 1:03:21but that the missing piece and and AI sometimes is that, and I
- 1:03:26talk about this a lot where it's all about, you know, the data at
- 1:03:30the end of the day, the data that which which we forget to
- 1:03:34mention talk about the most is the data that was used to train
- 1:03:37the foundation model. Like we talked about the data
- 1:03:40for fine tuning, we talked about the data for the prompts and in
- 1:03:43context learning, but we missed that these models were trained
- 1:03:46with a certain corpus of data. So what is that data?
- 1:03:49What biases in this data? So that kind of unknown, he's a
- 1:03:53no go for customers. Yeah.
- 1:03:55And that's, that's a loan. He's a he's a reason we have
- 1:03:57that same no go for open AI. So I can really imagine this
- 1:04:00were Chinese, but I think perception will change over time
- 1:04:03similar to that one and there will be more competition, you
- 1:04:06know, regardless of the source. Yeah, there.
- 1:04:10Well I know what is that company reflection.
- 1:04:14They got paid a bunch of money by NVIDIA just to create an open
- 1:04:17source lab in the US to rival the deep sea models because
- 1:04:23people are asking for it. So customers are fine with the
- 1:04:29same capabilities model to DeepSeek to coin if it's trained
- 1:04:32in the US, if it has certain visibility into the training
- 1:04:35data. So again, it's it's a more like
- 1:04:37a politics and legal aspects to things, but it's not I won't say
- 1:04:41it stands from the company. It's more about the space we're
- 1:04:44in that is very highly regulated compliancy and you know, the
- 1:04:49concerns about training and and bias in general.
- 1:04:52And there is a lot of also conversations to have with
- 1:04:54customers to explain how things work and how AI work and the
- 1:04:58difference between using an open source model hosted self hosted
- 1:05:02versus using their model through an API.
- 1:05:05So sending them the data, yeah, explaining that, but the concern
- 1:05:08is more about the bias that is already in the models.