Latest / Agentic Conversations (formally mlops.community) / Reinvent Yourself and Be Curious // Stefano Bosisio // #264
Transcript
- 0:00Stefano Bazizio working for Synthesia and I'm I'm Italian,
- 0:06so a strong homemade coffee with my own machine.
- 0:12We are back for another ML OPS Community podcast.
- 0:15I am your host as always Dimitrios.
- 0:17Today talking with Stefano, we got into some of his biggest
- 0:22failures as he has learn how to be an ML engineer and learn how
- 0:28to create ML platforms. He went from the world of pH DS
- 0:34in chemistry to building ML platforms at financial companies
- 0:39AKA banks, to starting from scratch and having to build out
- 0:46what he called a Ferrari of an ML platform only to realise that
- 0:52it got no internal adoption. Let's get into it with Stefano
- 0:56and hopefully you do not make the same mistakes as he did
- 1:00because you learned from what he talked about today.
- 1:05I will also call out that he recently released a course on
- 1:11the ML OPS Community Learning Platform.
- 1:14Highly encourage anyone who is looking to learn how to ask the
- 1:19right questions when you are building out your ML platform to
- 1:23go check out the course enrol. Stefano is a class act and in
- 1:29this course he specifically goes through the one O ones of
- 1:33building an ML platform with open source tools and then with
- 1:37a tool like Vertex AI. Let's get into it dude.
- 1:47We'll talk to me about moving from academia to the industry.
- 1:51I know you have a strong background in chemistry and then
- 1:55you've done a whole wide array of different things now since
- 1:59you've moved out of the academia industry, but what has that been
- 2:04like? Everything starts back like more
- 2:07than 10 years ago when I was a very little Italian engineer and
- 2:12with the green biomedical engineer.
- 2:15I was so deeply low over the time.
- 2:17At the time, AI, as everybody's saying, it wasn't a thing.
- 2:23But it was a thing though. Like if we see the conversation
- 2:25with guns and so on. It was a thing since 1991 and
- 2:29even before. But no one really applied very
- 2:32well. Like Tense of All was the first
- 2:34package. I think it was released.
- 2:37And but yeah, to make it short, I was, yeah.
- 2:40The passion of research was totally firing me up.
- 2:45I was on fire. I want to do research.
- 2:47I want to discover things. Yeah.
- 2:49Was in love with genetics and so on.
- 2:51So and physics and so say wonderful.
- 2:54I wanted APHD and that's how everything started.
- 2:57Unfortunately. Unfortunately.
- 2:59Maybe so. That's how I landed in in
- 3:02Edinburgh, Scotland, for a PhD in computational chemistry.
- 3:06It was 2014. If I know wrong.
- 3:12Amazing so something I always recommend to everybody and so if
- 3:16you feel yourself you're have the passion for research, want
- 3:20to discover something new, you want also to continue to study,
- 3:24give yourself a chance and try to maybe apply for a PhD.
- 3:29Who cares if you're not earning money?
- 3:33Still remember I was getting. Come later.
- 3:35Yeah, You know, I always get to like something about, I can tell
- 3:38you numbers, we have problems, £1000 a month.
- 3:41I was very, very stressed the situation because you got you
- 3:44got all the expenses. The British pound was very
- 3:48strong compared to the Euro, so coming from Italy wasn't helpful
- 3:51enough. But apart from that it was an
- 3:55amazing experience really. So I always be thankful to my
- 3:59supervisor because when you're trying to do the search, at some
- 4:06point you, you start coding up, maybe especially computational
- 4:10research coding up, which means maybe my level of coding was
- 4:15more or less zero. And then you start to get more
- 4:19around Python CC plus plus at the time as well and say, cool,
- 4:24I can do serious stuff from here.
- 4:27And well, we said the level of details you can get through.
- 4:31You can get very deep, deep inside, like multi processing or
- 4:36crazy stuff and statistics as well, because there was the
- 4:39theme of the PhD at the end that you got, you're going to acquire
- 4:45a lot, a lot of skills. The only problem is maybe that
- 4:50you're too attached to academia, so you're too attached to a way
- 4:53of thinking, so you think everyone knows what you're
- 4:57talking about. You really don't have a lot of
- 5:02soft skills. You don't know exactly how to
- 5:04interrupt with people. This might be a problem with
- 5:06many supervisors as well. Not mine, thankfully.
- 5:09He was a he's a great guy. But of course, of course, that's
- 5:13that's this part of the game. And and from there, what
- 5:18happened? Well, yeah, the PhD is finished.
- 5:22So that's ring me a bell saying it's time to find a job.
- 5:27A job went waterful. Well it was 2018 if I'm wrong.
- 5:31So it was the since 2016 there's been a huge hype for data
- 5:37scientists. So since I did a lot of coding,
- 5:41a lot of physics, a lot of maths and statistics, I said what the
- 5:45hell, I can do this thing, I can give it a try and then jump on a
- 5:50joint venture. So I say that was the very first
- 5:54contrast in my life, passing from academia to a real company.
- 5:58The 1st jump I've done was working as a data scientist for,
- 6:03let's say, a fintech company. So it was a bank.
- 6:07We were selling products like mortgages, loans, credit cards,
- 6:10whatever. Whatever a bank can sell, we
- 6:13were selling it. But it was a good time to join
- 6:17the company because they were trying to build out this new
- 6:20data science team. So what's data science?
- 6:23At that time, the question was, what is data science?
- 6:25What can we do? What are data scientists can do?
- 6:30But yeah, Dimitrious, it was an amazing opportunity.
- 6:34Good memories, but very harsh to understand what I had to do
- 6:40passing from APSD to a company. I remember many times these
- 6:45people were just talking about about acronyms or we are the
- 6:50financial staff and say what, what, what and I was trying to
- 6:55say guys, this is like simple stuff like introducing GitHub,
- 7:00this is GitHub, this is how it works.
- 7:02So you see, can you see, we can keep track of the code and so
- 7:05on. And but it was very hard to give
- 7:08people to deliver this message maybe to people as well as
- 7:12building models as well as the way we were building models
- 7:15because you know, I was used to run my stuff on a Ubuntu
- 7:20machine, thrilling to whatever I want, as many GPUs as I want,
- 7:24right? And while here we were very
- 7:28constrained on Windows laptop you can't install anything
- 7:32because of course there might be all, all the packages must pass
- 7:35through some security cheques and so on.
- 7:38So it was a really a heart attack for me.
- 7:42But it was a good opportunity, a very good opportunity.
- 7:45If I see now back in time, that gave me all the a lot of initial
- 7:51skills that many PhD students I can't acquire, unfortunately.
- 7:59You know, the PhD environment is very protected.
- 8:02And although I'm strongly a supporter for PhDs, sometimes I
- 8:06say yes, but please make sure you can get also some soft
- 8:09skills course or do think of these soft skills because
- 8:14they're not as useless as you might think initially.
- 8:18They're super useful and once you learn them, you'll open up a
- 8:23lot of those. So that's more or less how
- 8:26everything started and how I changed my fire for the search
- 8:32to a fire for data. Yeah, there's been, of course,
- 8:37many familiar thoughts. Like I would say many, many
- 8:42reasons why I didn't continue with academia, like not only the
- 8:46fact that you always have to look for grants and so on, but
- 8:51it's, it was merely because my wife and I loved Edinburgh and
- 8:56wanted to stay here a bit more. So say, OK, I can, I can have a
- 9:00stop, a break from academia and jump into this data science
- 9:04thing. But but it was super.
- 9:07It was super amazing, really. Well, you have since evolved,
- 9:13basically taken the evolution from academia to the industry,
- 9:18working with fintech, and then you started to recognise that
- 9:24just data science isn't enough, I imagine.
- 9:27And if you want people to have value from the work that you're
- 9:30doing as a data scientist, you need to learn a little bit more
- 9:34of the platform side of things. Can you talk about standing up
- 9:40different platforms and when that realisation hit you?
- 9:44Yes, yeah. So totally, you're other percent
- 9:47right. And also here there's a nice
- 9:49story. So.
- 9:50Oh yeah. So that's awesome.
- 9:52That was in this fintech and gosh, we were developing models.
- 9:58And now that I think I start laughing because we're
- 10:00developing models on a Python notebook.
- 10:03Of course, you know, there's this amazing theme of pushing
- 10:08Northwoods to production. Nothing against a solar, right,
- 10:13deploy whatever you want and totally fine if you manage to
- 10:16deploy by some point. Of course we were struggling the
- 10:22the level of going forward and like at that time, I think there
- 10:27wasn't a real understanding yet of the envelopes practises.
- 10:32So what happened is that we had DevOps team and that it was
- 10:38like, call it data OPS. We were developing model and
- 10:42they were trying to do something with this models bar something I
- 10:45didn't clear. Like I remember the time we had
- 10:49some weird EC2 instances. There weren't even EC2 instances
- 10:52on AWS kind of mixture. And these guys were taking the
- 10:57binary file, the model and trying to make it run by it
- 11:01couldn't even run on real time. It was a very a convoluted
- 11:05system to get to something and get a little bit of value out of
- 11:09what we were doing. So as, as you can imagine, the
- 11:12value itself was very hard to deliver.
- 11:15Because there's also something I'm telling everybody, if you
- 11:19can't exploit as much as you can the business value out of the
- 11:24your data, out of your work, then unfortunately there's a lot
- 11:28of things to do because we do need, we do need the business
- 11:31value. So my manager at the time had a
- 11:36good guy take me for a meeting, say Steph, there we go, this is
- 11:45AWS. Why don't you develop an ML
- 11:48platform? Say, I don't know anything, but
- 11:49I can try to see what you're talking about.
- 11:52So in those, I think 3 months, I had a huge team inertia into AWS
- 12:02trying to understand what was going on and try again to
- 12:07reinvent something for for my career.
- 12:09So I said initially I said, OK, I'll be a data scientist, I'll
- 12:12develop a nice models. And then I was starting to look
- 12:15at ML plasma, say these ML engineers know something that I
- 12:19don't know. And so initially there wasn't
- 12:24really I think also many resources because it was still
- 12:282019. It's true the I can't remember
- 12:32when the ML OPS community was founded. 2020, we weren't.
- 12:37We weren't around yet, Yeah. Where's the other thing?
- 12:39So I say, where do I find all these resources?
- 12:42There was there were all good, good, good books about AWS and
- 12:45how to maybe make things communicating.
- 12:49And so the first thing was a lot of philosophical discussion of
- 12:53what we really need to do, what we mean by deployment, how we
- 12:57can decompose all the problems we had.
- 12:59So it was really nice because it was reattaching myself to my
- 13:03engineering background, so giving a problem, try to split
- 13:07into sub problems and try to reconnect everything in this
- 13:10weird jigsaw. And so yeah, from there, like I
- 13:15started thinking, OK, we need something for data processing.
- 13:18And then I said, OK, we need something for model training.
- 13:21OK, how can how can we really train the model and what can we
- 13:23do with the binary files that we have or the model themselves?
- 13:29How we can really spin them up? So it was an amazing journey
- 13:32because allowed me to really start from simple to develop
- 13:36your ML platform with Lambda functions and step functions and
- 13:40try and then try to make up something more robust.
- 13:43So it has the kind of time for it was the time for glue, for
- 13:48data processing, using a proper database, create a data
- 13:53structure. Bad people starts to communicate
- 13:57better with people and make them understand what we need to do
- 14:00with data, what we need to do with the model, why we need all
- 14:03these weird, weird stuff. I remember it was very hard,
- 14:06very hard. I think nowadays it's super hard
- 14:08as well to talk to senior manager, very senior managers
- 14:11about these things. Like that was a lesson.
- 14:16Of course, they don't need to know all these nitty gritty
- 14:18details about what an ML platform is.
- 14:21They just want the business value and what I was trying to
- 14:24do was to give them the beast a smile and say watch this, this
- 14:27is amazing. But apart from that, it's.
- 14:29On the demo for an hour. Give them an hour demo and show
- 14:34them how amazing it is. It's what I tried to do, but it
- 14:37was very hard really. And, but apart from that, and it
- 14:41was an amazing, an amazing opportunity really to try to
- 14:45understand how an ML platform could be developed and try to
- 14:49think really of naive terms of what ML OPS could be.
- 14:53So trying to get more into the ML OPS perspective.
- 14:56So what we're trying, what we are trying to do, what we're
- 14:59trying to achieve. And, and especially if you think
- 15:03with very limited resources, because still I was working with
- 15:06my limited Windows laptop. So developing coding was the
- 15:09worst experience ever. And even pushing code to AWS was
- 15:13a real nightmare. We did needs also IT to, to be
- 15:18in the middle to say, OK, well, this, this data must be pushed
- 15:22over there. OK.
- 15:24But it has definitely moved a lot of conversation also in I
- 15:28think we were one of the first banks where we were trying to
- 15:31develop for real an ML platform. So really think of an entire ML
- 15:36journeys, really think how ML models should be created and
- 15:41constructed. So it was an amazing thing and
- 15:46really, and this time my partial for ML OPS start to find out
- 15:50what the hell I say whoa. And and it wasn't ML OPS, it was
- 15:55engineering. ML engineering in total, say,
- 15:57Oh, I could develop a model, but I could also push them to
- 16:00production. I think something similar.
- 16:02So that was the way. Maybe the kicker heads, it was
- 16:06really an as you know, maybe it's the fate, whatever that
- 16:12pushed me down this direction and trying to navigate a bit
- 16:15more into the MLOP sector and give me also the like.
- 16:20At some point I was fed up with all the financial things, good
- 16:25financials, but I'm not getting a bonus as I as the senior
- 16:28manager, so I'm leaving. And so I started to deeply focus
- 16:33really on MLOPS and that's also where I got to know the MLOPS
- 16:37community because I so did work really for an as an ML engineer
- 16:42for another company and browsing an interest spotted envelopes
- 16:46community, what are disguised doing and that's open up an
- 16:50entire series of greedy things. Dude, well channelling my inner
- 16:55Bezos. Because you're talking about AWS
- 16:56and you're talking about things that were hard back then and are
- 17:01still hard a la talking to senior management.
- 17:06I would love to know what you feel like over the years hasn't
- 17:10changed when working with MO OPS.
- 17:13Hasn't changed. Yeah, that hasn't changed.
- 17:16A lot has changed, right? But what hasn't?
- 17:19Hasn't changed stakeholders. So what the the first thing that
- 17:23popped into my mind OK, stakeholders.
- 17:24OK, two things dude hasn't changed stakeholders and selling
- 17:28products. What I mean is this what
- 17:31stakeholders is the major things, I think, and this is
- 17:33something again, it's very hard to grasp, especially I think if
- 17:36you're changing career, if you're moving from academia to
- 17:41companies and so on as the way you're communicating.
- 17:45So like every time, like as an engineer, it's very easy for us
- 17:51to create a new product, right? Do we want an experiment
- 17:53tracker? Boom, there we go.
- 17:55Do you want a super cluster with 13 nodes, 100 nodes, 1000 nodes,
- 18:01There we go. Do you want us to scaling?
- 18:03There we go. But what doesn't change is the
- 18:06way we're communicating. We're doing a magnificent job,
- 18:09right? But it's very hard to
- 18:12communicate and express this business value out of it to more
- 18:17senior managers, of course, or even our stakeholders.
- 18:21Like many times it happened to me, I, I was working for this
- 18:26company where we were really creating the very first ML
- 18:30platform for the entire company. And gosh, one day had the
- 18:34realisation, the epiphany that we made an amazing job.
- 18:38We had an automatic way to train models.
- 18:41All the models were register, all the models could have been
- 18:45trick keep track of all the experiments.
- 18:48It was everything very neat and pulling.
- 18:50Monitoring, you know. Yeah, even monitoring which is
- 18:54like it was the Holy Grail this time, you know, if your data are
- 18:57saying are a bit, are a bit shady, that's why we have
- 19:01monitoring place. We even had data pipelines for
- 19:03validating data. Thank gosh.
- 19:05People were not using it had like two weeks of depression or
- 19:09even a month. And I say why people are not
- 19:12using this thing because it's amazing.
- 19:14They say the people should jump in here and say oh, oh, this is
- 19:18an amazing product. Yeah, you were expecting an
- 19:21award. You were.
- 19:22How the hell? How, Or at least to go and give
- 19:25the talk? Yeah, yeah, yeah.
- 19:27I started like I was expecting fireworks because something like
- 19:30that, but nothing. It's we're really bouncing
- 19:34against the wall and that's the maybe a naive, but the
- 19:38sterilisation I had the same. I didn't communicate properly
- 19:42with my data science team like, which means it's not only having
- 19:46meetings where you're explaining what you're doing, it's not
- 19:48having stand ups where you're showing the Jita board.
- 19:51And so it's giving demo tutorials, taking time with
- 19:54them. And it's a huge effort.
- 19:57It's a huge amount of time, but you must dedicate this to these
- 20:02people, otherwise you're not going anywhere.
- 20:05And like I remember I started to record myself and giving
- 20:09tutorials. To, for example, show how to
- 20:12ship a new pipeline for training or how these things are
- 20:16automatic and how they can improve our way of doing right.
- 20:19At the same time, they were also deploying instantaneously if the
- 20:23model was behaving well and so on.
- 20:26So writing documentation as well was another thing.
- 20:29Like I spent hours on all our packages writing documentation.
- 20:34I say, OK, if you want to use this, you need this, this in
- 20:37this. If it doesn't work, of course we
- 20:39are here to help. So like being more like a 24/7
- 20:43support team, we are here to help making sure everyone knows
- 20:47that we are here to help so that people could say, oh, OK, so I
- 20:52want to create a new model. I can go to Stefano's team and
- 20:56ask what are the best practises and do because yeah, we were
- 21:01getting hiten by by everybody basically because no one knows
- 21:07what we were doing, why we were doing some stuff, what was the
- 21:10body we were giving to them. So I think the communication
- 21:14something that I had to spend a lot of time and as well as well.
- 21:20Wait, before you get into the next point, you basically had
- 21:24every founders worst nightmare, which was launching to crickets,
- 21:30right? And you should have told me
- 21:32because I would have given you an award for sure of best MO
- 21:36platform that's never been used or something along those lines.
- 21:39We would have in the ML OPS community yearly awards.
- 21:42We could have totally given you that.
- 21:43But the the thing that I am fascinated by is how you
- 21:50attribute the failure to your own lack of evangelising for the
- 21:56product that you're building. And so it was almost like you
- 22:00did not build enough in public, like internally in the company,
- 22:06you weren't showing people, like you said, you weren't doing
- 22:09demos, you weren't properly documenting or having
- 22:14potentially like pair programming sessions or just
- 22:16like learning sessions with the data scientists.
- 22:19Were the data scientists your only stakeholders, or were there
- 22:22other folks from different teams too?
- 22:24Yeah. Also product managers are, yeah,
- 22:28the user experience team, data, data analysts, a lot of data
- 22:32analysts as well, because we were actually, we were still
- 22:35giving tools to data analysts. So that's was amazing, like the
- 22:38ability to query real time data through simple SQL quiz.
- 22:43What the hell, Dimitris? We made an amazing job, but you
- 22:46also received correctly. But you're right.
- 22:48You know what? What a platform.
- 22:51What a platform. Oh my God, you all right?
- 22:54Well, I'm patting you on the back a few years too late.
- 22:56Like, I think back in time, it was an amazing job that we've
- 22:59done. And Mike, it was really a good
- 23:04case study to start to learn how to do ML OPS for real and write
- 23:10this stuff on the ML OPS community's Live Channels.
- 23:12Yeah. Yeah, you got a lot of questions
- 23:15answered in there. That's funny.
- 23:16That's. Awesome.
- 23:18But yeah, as you said, I think the you do need to reel into an
- 23:23effort to show yourself to the business.
- 23:28That's a bit like to show what you're really doing so that
- 23:32people can have an idea at least.
- 23:35And and that's not easy. Also, some people will hate
- 23:38this, unfortunately. But gosh, please try to put
- 23:43yourself into someone else's shoes.
- 23:47Try to speak up a little bit more because it's very
- 23:50important. Unfortunately, many people I've
- 23:52worked with are very are very shy, introvert and so on.
- 23:55So the doll like they love coding an amazing quarters, but
- 23:59I'm not the best quarter ever. Actually, I'm very I'm very bad,
- 24:04but these people are amazing. Like I say, OK, OK, OK, OK, but
- 24:07wait, wait, wait. Try to push a bit more on this
- 24:11thing. Also, one thing that is very
- 24:13important sometimes is the emotional intelligence.
- 24:15I think you do need to understand what are the feelings
- 24:19of other people while you're talking.
- 24:21So be empathic and so on. That's even another level of
- 24:24communication, but it's very important so that you can not
- 24:27shop by the right communication skills.
- 24:30And so for example, I know that we Tom, have to talk in this way
- 24:34with Frederick, I have to talk in this other way and so on.
- 24:38So being like how to say a space knife where you get all the
- 24:43tools that are heating properly where you want, because
- 24:46otherwise, unfortunately, if no one is using your platform might
- 24:49be like this shiny beast by, you know, no one will use it.
- 24:53Your company's actually spending money because the infrastructure
- 24:56is up. So the at any way flowing and at
- 24:58some point the CEO will say, oh, hey, honour this money.
- 25:01So that's a, that's a huge effort.
- 25:05Yeah, it's like you have a Ferrari and you're taking it to
- 25:07the supermarket. That's what I'm saying.
- 25:10Indeed, when I remember we had, I was used to organise for this
- 25:13company what's so-called ML clubs.
- 25:17So like I was inviting guests from externally from the company
- 25:22to show their data science cases and so on.
- 25:24And one day we tried to make something internal like inviting
- 25:27all the company and show what the data science department is
- 25:31doing. So data scientists will do
- 25:32these, data analysts will do that.
- 25:34ML OPS is doing this. And I think the best definition
- 25:37I had for ML OPS was we were trying to build up a Ferrari.
- 25:41Data scientists are the drivers and we are trying, we are the
- 25:45mechanics. So we're trying to make the
- 25:47Ferrari even better so they can go as quick as possible and win
- 25:51all the races. But that's, that's the that's
- 25:54the thing. And if you want bonus points,
- 25:56another thing that isn't changed.
- 25:57And it's like people selling you Adobe bespoke solutions, which
- 26:03are super expensive, but they don't work, but we can closely.
- 26:08Partner, it's a hot take. Wait, wait, wait.
- 26:09You can't just stop talking after that.
- 26:12Tell me. More so I remember many times we
- 26:15had chats with either external companies or cloud providers.
- 26:20I would not say which ones. That's I mean, at that time the
- 26:24MLS wasn't still quite a thing. So that's why that's why.
- 26:27But they were trying to say, you know, you could use the, they
- 26:31were just showing an infrastructural diagram like so
- 26:35nothing really complicated, something that you could do
- 26:38yourself. But of course they were creating
- 26:41this for you. And they were asking like more
- 26:43than £100,000 a year just for for it plus access to all your
- 26:49data. Same.
- 26:51OK, wait a SEC, wait a second. This this didn't change.
- 26:54I can still still nowadays I can see a lot of solutions which are
- 27:00OK, amazing effort. But I mean this can be
- 27:03replicated by a good engineering team.
- 27:06If you don't have money for an engineering team, then it's OK
- 27:08to go for these solutions. Otherwise just develop
- 27:12internally. That's my $0.02.
- 27:15So this is fascinating to think about because there's always
- 27:21that ROI trade off that you're going to be looking at.
- 27:25And is it best for your strong engineering team to go and build
- 27:29this themselves or to just buy it and then it unblocks them to
- 27:34go and build other cool stuff, Right.
- 27:36And so that's the that's the fun thing that the leadership I'm
- 27:42sure love to hear from you about and say like, wait, so what's
- 27:47this and why would we need it? Why?
- 27:49Why do you think it's important or whatever?
- 27:52Yeah. Well, you hit a good point,
- 27:54though. I think it depends.
- 27:55Like if you want to deliver immediately something you do
- 27:59need to why OK, Like many start-ups at the beginning of
- 28:04the on the race of the journey might decide to go for external
- 28:12products just because they're, you know, they're ready then
- 28:15they just cost some money. But you don't you can't afford
- 28:19an engineering team. But if you have your team, I
- 28:23think to give them a chance, try to try to understand their
- 28:29potential, what they can build, what they can do is also like
- 28:34very satisfactory from the human point of view, right?
- 28:38And sometimes it's just egregious what some like if you
- 28:42look at Sage Maker and the prices on the Sage Maker versus
- 28:46if you were to do it yourself, the endpoints are like 8X more
- 28:50expensive, right? Yeah, exactly, Exactly.
- 28:53Yeah, under a good point. So there are things where you
- 28:57can and that's why I'm a huge fan of of fin OPS and figuring
- 29:02out are there ways that we're doing things now that with just
- 29:06a little bit of tweaking, we can ideally save a lot of money.
- 29:12So is there low hanging fruit that we did when we were trying
- 29:17to go fast, but we now can go and almost like refractor our
- 29:26vendors and who we are supporting and make sure that
- 29:33we're just getting the best and the most out of every tool that
- 29:37we're using, otherwise we can cut it?
- 29:40100 percent, 100% agree. Yeah, absolutely.
- 29:43So then all right, you built a few platforms, you learned the
- 29:48value of that internal evangelism.
- 29:54You also had the experience of learning what exactly ML OPS was
- 30:00do you feel like? And this is a a question that I
- 30:03constantly am thinking about because you've had many
- 30:07different use cases. Are there pieces that you can
- 30:12generalise and say in general, I'm all, I'm almost always going
- 30:18to need these parts of the pipeline or of the platform.
- 30:26If you are doing something with computer vision, it might be
- 30:30totally different. And that's kind of why I wonder
- 30:33if you can generalise on this like you're still going to be
- 30:37having, you're dealing with data, right?
- 30:39But a computer computer vision problem is way different than a
- 30:45Fintech fraud detection problem. Yeah, yeah, you're right.
- 30:51Hundreds $1,000,000 question, but this is this is something
- 30:57like I'm bouncing on right now in my current job because we're
- 31:01dealing with a lot of computer vision problems like so now the
- 31:05our data are videos and not tab on our word and this is a
- 31:11drastic change. So like I would say that on the
- 31:16paper like you need to carefully subdivides all the all your
- 31:23problems. So like the the starting point
- 31:26is always the data, right? So how can we make sure we have
- 31:32a data platform? How we can make sure that state
- 31:36engineers know what we want and people can create their data
- 31:40easily? What does it mean querying a
- 31:43video? As you know, it might be
- 31:45querying like a path to a bucket where you have a video.
- 31:50I might be creating metadata of the video.
- 31:52So if you're seeing this way, it looks like the tabular problem
- 31:56and the computer vision problem might be similar.
- 31:58It's a query, you need metadata, you need to know where your
- 32:02video are. OK, this can be, this can be
- 32:06maybe generalised. So overall data pipelines are
- 32:09always there. And maybe for computer vision
- 32:12problem they yeah, also for computer vision problem, for
- 32:15example, thinking of general case, they could validate data.
- 32:18For example, you might have a video whose length is 0 seconds.
- 32:22You see what's a video, how old is 0 seconds?
- 32:26Or you can extract like audio information, right?
- 32:29And from there you can make up of some validation tools.
- 32:33What for example is not generally is the way of course
- 32:37you're treating the video. So you must be critic enough to
- 32:41understand what's the is this case you're investigating over?
- 32:45Do you need a yellow detect because you want to detect
- 32:48something or you want to, as you know, general description of
- 32:51videos and so on. So, but here we're going on to
- 32:54deeper level. So I think on the general point
- 32:56of view, maybe data side, we could say, OK, there's a
- 33:00database. The database may work
- 33:03differently. But overall, what are we going
- 33:05to use? I don't know, Athena, Postgres,
- 33:08Big Query, Bigtable, yes, these tools are always on the standard
- 33:14side of data OPS. And then you, you move forward
- 33:19and you start to think, OK, the next problem is how I can make
- 33:22people training a model. So I think personally for
- 33:26training models, we're getting more, we're converging to more
- 33:30best practises and standard ways.
- 33:33So like, OK, I know that you're lost by him.
- 33:36I'm a big fan of cube flow law for cube flow, but the matrix I
- 33:40had. Got nothing against Cube.
- 33:41Flow all the power of AI loss for cube flow.
- 33:45Look at that. This is AI for Mac.
- 33:49So like I think overall what you need is to create a training
- 33:55pipeline, right? A pipeline that is able to
- 33:58retrieve your data and then crunch this data and generate a
- 34:04model, whatever. Now let's not take into account
- 34:09the lens for just for a second. If we need to create a training
- 34:12pipeline, this problem can be easily generalised.
- 34:16Also also, yeah, in my opinion can be easily generalised
- 34:19because what's the difference between creating a random forest
- 34:23and creating a model that maybe is running a, a yellow algorithm
- 34:30or an object detection algorithm?
- 34:33At the end of the day, the pipeline will retrieve the data
- 34:37that you need. It will process the data that
- 34:39you need, it will train your model, right.
- 34:41So more or less, and This is why I'm a strong supporter of cube
- 34:45flow as because if you're also reducing the learning barrier to
- 34:49your stakeholders and cube flow is very easy to to be used
- 34:54because you just see it at component at pipeline.
- 34:57The engineers will create us SDK for you.
- 34:59So you can just ship whatever you want.
- 35:02OK, we're a step forward. So we're reaching a great level
- 35:07then different, different points for MLMS. LLMS of course are
- 35:13huge models. So the way we are training also
- 35:16these models is just slightly different.
- 35:19You need different infrastructures.
- 35:21I don't think cube flow may support any LLMS. I never heard
- 35:26of it but. Yeah, I haven't heard that
- 35:28either. In principle, but better not to.
- 35:32There are better methods to treat modestly.
- 35:36So OK if you go down the truth, but the matter is a question for
- 35:39you. How many companies are using in
- 35:41training elements? Yeah, very few.
- 35:44OK, like so 90% of the companies nowadays will still enjoy music.
- 35:49And sorry if I'm saying logistic regression, Randall Forest,
- 35:52super deep forest algorithms, right?
- 35:55So guys, think carefully about the cost you're injecting in
- 35:59your company because it's meaningless like spending
- 36:02$1,000,000 a month for training on NLMS from scratch when you
- 36:06can do a 95% accurate and amazing job with a random
- 36:13forest, whatever forest you want or whatever arguments you want,
- 36:18right? The last step is of course the
- 36:21deployment. So deployments, I think we are
- 36:23not converging yet. In my personal opinion, there
- 36:26are tonnes of way to deploy models and this is really
- 36:32depending on any company. So like there might be companies
- 36:36who would like to use a Vertex AI endpoints, OK, pay the money
- 36:42and we can deploy them. There are companies which say
- 36:45no, no, no, we have, we're going to hit an EC2 instance, we're
- 36:50going to have our own Kubernetes infrastructure.
- 36:53So we go to the endpoints we want.
- 36:56OK, computer vision. That's another terrible problem.
- 37:00You need machines which are of course able to do the video
- 37:04rendering as well. So here I think the navigation
- 37:09is a bit complicated but I hope we are converging to specific
- 37:15specific. That action, I think you know,
- 37:19Andy came on the podcast a few weeks ago and he was talking
- 37:24about how for him, the change to LLMS versus traditional machine
- 37:32learning and also deep learning or computer vision and all that
- 37:35fun stuff doesn't really change much about how he thinks about
- 37:39the platform. What it does change is how he
- 37:44builds or the tools that he needs to add to the platform,
- 37:49right? And so it's what he was saying
- 37:51and I really like this idea. I, I like most of Andy's ideas,
- 37:55but I, I thought his idea around creating an ecosystem, allowing
- 38:01your platform to be looked at as an ecosystem where if someone
- 38:06wants to use an LLM, they can. If someone wants to use that
- 38:08traditional ML, they can. If someone has a computer vision
- 38:12problem, they can. And obviously that is like
- 38:15maturity level 500 versus your maturity level like 1:00.
- 38:21And you're just trying to get a few models out and make sure
- 38:24that they are reliable and consistent.
- 38:27But for me, what became very clear is that LLMS are very much
- 38:35a part of the conversation and what people want when we talk
- 38:40about doing ML and AI these days.
- 38:43And so how can you set up the platform now to leverage the
- 38:49gigantic transformer models that are out there, whether it's an
- 38:53open source llama that you grab or it's you're hitting GPT 3 or
- 39:00GPT 4? Amazing question again.
- 39:04So I, I think I partially agree with what Andy said because this
- 39:09is the dream platform. So like it's something we're
- 39:13always trying to create, right? For any company like you, you
- 39:16got this metaverse where you can ping the service you want and
- 39:21this will do all the rest when it comes through the LLMS. Now
- 39:25the discussion is like as you said, we could actually using
- 39:29like Hugging Face for example, APIs or calling public APIs to
- 39:34use these LLMS. Nothing against, that's totally fine.
- 39:38And it's not so complicated to have them deployed because all
- 39:42you would need is just a simple micro service that spins out for
- 39:48your request. So your engineering team could
- 39:51even create a simple package where you're just importing all
- 39:55the models you need. And these models can be freely
- 39:59being from the the score from the Internet.
- 40:02The only cabin sometimes that I'm thinking of these solutions
- 40:05is what if there's downtime on the external services?
- 40:09So you're blocking your business.
- 40:11OK, the what's the name of the guarantee service?
- 40:19SLA's or SLA's or proxies that you?
- 40:22Can SLA the SLA's like 90% of usage of the year.
- 40:28OK, but you need to consider it. You don't want to block the
- 40:31business. And what's the cost for pinging
- 40:35these models and what's the number of customers that you're
- 40:39dealing with? Because now, like for Synthesia,
- 40:43when I'm working out, we using external models would be pretty
- 40:49hard for us because we are serving thousands, thousands,
- 40:53thousands of people and we do need GPUs, right.
- 40:56So what could be the cost that we should support an external
- 40:59provider will charge you a loss say, aha, you need GPUs.
- 41:02Yeah, don't worry, here's the bill.
- 41:05And of course you need to start thinking something that can be
- 41:10also money saving. So what if you can use spotties
- 41:15and says, what if you can use maybe sharing the same process
- 41:21across multiple GPUs? Sorry, different process across
- 41:25same GPUs and so on. So it really depends on your
- 41:29business. That's why I say you do need to
- 41:32put things into them and OPS perspective and start to
- 41:34understand really what's your business value?
- 41:36What's your what's your business want to do because the step from
- 41:40going from spending zero to spending $1,000,000 is very
- 41:44narrow nowadays, especially with this alliance because everyone
- 41:46was used all that Yeah, so but a little hard to say, yeah, I'm
- 41:51I'm actually a love and this idea It's definitely amazing.
- 41:55And it's also easy to to realise it's not something impossible.
- 41:59I think nowadays we can do it in a not seen a week, in a month we
- 42:05just some terraform in the middle and you also have
- 42:10everything as a code. Overall, it really depends on
- 42:13the business. So that's why it's very hard to
- 42:14give you a neat answer on this. It's funny, I've been trying to
- 42:20craft the perfect tweet around this idea of you want to know
- 42:25how to be really valuable at your job as a data engineer, ML
- 42:32engineer, data scientist, get really good at understanding
- 42:39auto scaling and make sure that you have that on point and you
- 42:45are going to be very loved in your job.
- 42:48I was just scaling and also let's go for some multi
- 42:51processing which is always useful.
- 42:53But auto scaling doesn't come for free, which means it's true.
- 42:58You need to understand it, but try to understand as deeply as
- 43:03you can. Like, because I think there's
- 43:06always a surprise when you're using auto scaling mechanisms.
- 43:10We, we spotted a lot of times when we were using our
- 43:14Kubernetes infrastructure that auto scaling was either going to
- 43:20skyrocket level or or wasn't working at all.
- 43:24Why? Because all the, all the
- 43:25settings were right, right? We set up everything correctly.
- 43:28We say don't use these. And you was using you say oh
- 43:30shit, so out of scaling is game mechanism.
- 43:35But as you said, started deeply. What what how to use it exactly
- 43:39Because they can also skyrocket your bill as well.
- 43:42Just go back on the bill discussion.
- 43:45So I think only if it's spinning up A1 hundreds under A-100
- 43:50instances are the same type. So yeah, but by your rights,
- 43:54you're right. This is something that nowadays
- 43:57it's getting more and more important.
- 44:00Well, that's why I was saying that you're super valuable if
- 44:03you can be the expert in the auto scaling, because it's so
- 44:07easy to lose money so quickly. Yeah, if you don't configure
- 44:11everything properly or you don't set up the alerts or the limits
- 44:14or whatever it may be, then I get the feeling that everyone's
- 44:19gone through that story that you just told where you're like,
- 44:22huh, I wonder why it's so expensive all of a sudden.
- 44:26Yeah, yeah, exactly. So bear in mind, but very good,
- 44:31very good advice really. Yeah, that's what I've heard
- 44:35some people put it, that when you have those mistakes, like
- 44:41the auto scaling mistake, and it is a little bit expensive, all
- 44:45you did there is you paid a dumb tax or a stupid tax, and that's
- 44:50the tax you have to pay for being stupid.
- 44:52Yeah, well. That's a different price, isn't
- 44:55it? Now firstly, we, we, but let,
- 44:58let's pass this message. We're not perfect.
- 45:01So, so to everybody, especially to managers.
- 45:05If engineers do mistakes, it's OK.
- 45:09We're human. So there's no way I, I made
- 45:12tonnes of mistakes. Actually, when I was delivering
- 45:14the shiny amazing ML platform for that week, our main models
- 45:19was model wasn't running correctly.
- 45:21Why? Because I forgot to add a flag
- 45:24to the model. A simple flag like just a a
- 45:28dash, dash something text to the model.
- 45:30I say, Oh dear, so so it's mistakes are there even in
- 45:36production cost some money, but what can we do?
- 45:42What are some other ways that you or some people that you've
- 45:46worked with have had to pay that tax?
- 45:50Many people, the people and they're working with this, I'm
- 45:53doing this and they're always, always huge problems in
- 45:59production. Like there's has people that's
- 46:03left some even simple Lambda functions running in the
- 46:08background for, for standard systems, right?
- 46:12And, and gosh, unfortunately they were spinning up God only
- 46:15knows what's because the setup was from and it's been like
- 46:19$50,000 in a weekend. Oops.
- 46:22Well. Yeah, you log out on Friday.
- 46:25My job's run here. It's not.
- 46:28Come on. But like, gosh, I have some
- 46:34stories, but I can tell you, but there are many stories of people
- 46:37like even the simplest how to scan you can think of, like data
- 46:41flow itself. That's also is is a problem that
- 46:45I like because allows you to create the easy data pipelines
- 46:49with Apache Beam. It has an auto scaling
- 46:51mechanism, right. But as you said very deeply how
- 46:56it works because just mess up with a number puts like 100
- 47:01nodes as a maximum whatever and auto scaler doesn't recognise
- 47:04this number and I do. It has happened that it's going
- 47:09to scale up to 1000 nodes. And of course you say why
- 47:11there's a spike in the cost there all idea and it's a stupid
- 47:15problem again. So these stories are I think
- 47:19they're always easy. I I actually remember OK, this
- 47:23is I don't know if I should say this by wheel.
- 47:25When I started my career as an ML OPS engineer, the very first
- 47:29thing I've done was to also transition from AWS to GCP.
- 47:34And I didn't know how exactly this company was working with
- 47:36GCP said OK, these are my keys in Jason.
- 47:40OK, as you know, maybe it was it was during the lockdown and so
- 47:44it wasn't certainly my right shape.
- 47:47I just you were. Watching videos on WhatsApp
- 47:50while you were deploying. I just do a git about
- 47:54everything. I even push my GCP keys publicly
- 47:58on git apps so anyone could have actually access to GCP.
- 48:02Our GCP environment, said warps. Thank God.
- 48:06Here it is a matter of now, what's Enelop's sacking for?
- 48:11Sex security, right? Immediately spotted to say oh oh
- 48:14oh oh, here there's a huge, huge stereo of black weight and so,
- 48:20well, I'm the first one to say we're human, things happen.
- 48:26Yeah, Yeah, that's fun, man. Well, another thing that I'm
- 48:29really excited about is the course that you just put
- 48:33together for the ML OPS Community Learning platform.
- 48:36And I think it's pretty special because you basically walk
- 48:41through the process of standing up a platform and it's soup to
- 48:46nuts. It's very thorough and you're
- 48:49using one of my favourite platforms.
- 48:50You show people how to use cube Flow, right?
- 48:54Yeah, exactly. And you know how to install Cube
- 48:57Flow locally, which is an iser, Yeah, so don't you said.
- 49:03It I'm glad you said it and I didn't because I.
- 49:06I've even said this in the course, but don't try this at
- 49:08home, Alex, you're following my course.
- 49:11And so yes, yeah, I so the, the idea of the course is just to be
- 49:18an interface to students or people who are interested in ML
- 49:22OPS. I want to give it a try and
- 49:24start to learn really. Hamel OPS And I think this
- 49:28refers to the discussion we were having about how we can
- 49:30standardise envelopes. And so if we can find common
- 49:33patterns for most of the tasks which we have to do.
- 49:36So it covers like data processing, model training and
- 49:40model experimenting or tracking, not model deployment.
- 49:43Because I said there are multiple solutions.
- 49:45It it wants to be a very first gentle course for everybody.
- 49:49The the idea is to just guide students and people throughout
- 49:56what the industry wants and what I've learned so far, which might
- 50:04be a very simple course to follow to have the right
- 50:08transition into the MLS perspective.
- 50:10So I'm spending a lot of minutes of the course explaining what's
- 50:14the ML OPS perspective, so how we should subdivide each problem
- 50:17into the MLS perspective. So data processing, what it
- 50:20means and why, what's the modern training from the data science
- 50:23point of view and from the ML OPS point of view and why we
- 50:27need to track experiments and so on.
- 50:30So it's like me guiding with my hands all throughout the course
- 50:33and showing said, hey, be careful here and giving a lot of
- 50:36cameras, but also a lot of freedom.
- 50:38Like I don't want people to get crazy with quiz or tests and
- 50:43say, oh, don't have time. I want people to enjoy and
- 50:46practically on their own. We're using the GCP platform
- 50:51which comes also for free if you want to start with initially and
- 50:58that's a good case for you to learn, have your hands dirty,
- 51:02which is my preferred approach and start really to make up.
- 51:05I also give bonus pipelines like a pipe and the Skype data from
- 51:09Google or and gives you clouds of words.
- 51:16So there are many little things, but it wants to be really what
- 51:20is missing, like a gentle introduction to this ML OPS.
- 51:22Word. Well, the cool thing about the
- 51:27ideas that you propose there where you're saying there's the
- 51:31tech part, which is great, but inevitably that's going to
- 51:36change. That's going to constantly be
- 51:38changing as time moves on. There's going to be better ways
- 51:42to do it. But the mindset and the way that
- 51:47you approach these problems and understanding what the motives
- 51:51are behind the data scientists, the data engineers, the ML
- 51:55platform engineers, what each job and responsibility and how
- 52:00these folks think about it is going to be invaluable as you
- 52:03progress in your career. Exactly.
- 52:06So what? What's a sorry?
- 52:11What? Also, to give to people is a
- 52:15conceptual or critical way of thinking, right?
- 52:18So the technology stack is that one.
- 52:24We can maybe make it sound or whatever, but the cool thing is
- 52:28be critical about the tools that you're going to use.
- 52:30And this is the first also to all of our conversation.
- 52:32So what I'm showing as well is by Apache Beam, why we should
- 52:36use it, why we should not use it, What are the pain points of
- 52:40using it, pros and cons and so on.
- 52:42For all the packages, for all the products that we have a good
- 52:46engineer as maybe a structured way of thinking saying, OK, my
- 52:52business has this problem. I can see on Internet that we
- 52:56have these tools to solve it. Why should I use tool A rather
- 53:01than tool B and so on. So then this refers also to all
- 53:06the soft skills I was speaking about before.
- 53:10And it's all part of a big soup that's it has a huge value.
- 53:16Well, and just thinking about the questions that you should be
- 53:19asking, what, how should I examine this issue that's in
- 53:24front of me? I'm it's funny you mention that
- 53:27because I'm literally reading this book right now called
- 53:29Bulletproof Problem solving. It's by a few ex McKenzie
- 53:34consultants bigwigs, but it talks about breaking down very
- 53:39complex questions or problems into decision trees and, and
- 53:45understanding them and being able to tell where you need to
- 53:49do research and what kind of outcomes you're looking for and
- 53:53defining the problems. I'm really loving it.
- 53:56I've I've heard that some people are like, ah, but it takes the
- 53:59creativity out of things. I don't know so far.
- 54:03I think that might just be the the way that you approach it and
- 54:07creative people are going to be creative in general, but the the
- 54:13idea is sound like how do I approach a problem?
- 54:16How do I know which questions to ask and when?
- 54:21I'm looking at AML platform and I'm thinking about different
- 54:25tools that I want to add in here.
- 54:28What kind of questions should I be looking at?
- 54:31I think that's one of the reasons that so many people like
- 54:33Jeresa's book, because in each section of the data engineering
- 54:40life cycle that he maps out, right, he has what you should be
- 54:45thinking about. What question should you be
- 54:47asking in this life cycle piece, right?
- 54:51And so if it's ingestion or if it's transformation and by how
- 54:56you answer that, it gives you a few constraints and then it
- 55:00helps you make your decisions a lot easier.
- 55:03Yeah. Because if you're just going off
- 55:05of, oh, well, it's new, it's got a lot of attention around it.
- 55:09I've heard, I've heard good things from people about XYZ
- 55:12tool. That's not going to be the most
- 55:15adequate way of doing it. And so, yeah, man, I appreciate
- 55:19you creating the course. Hopefully a bunch of people out
- 55:22there go and they check it out and they learn a tonne from you.
- 55:27This has been really fun. Oh, it's really nice.
- 55:30That was really nice. I hope people will like it.
- 55:34And also they can write a comment and say, Stephanie,
- 55:36you're being too serious. Please add some fun to the
- 55:39course step. Maybe some point.
- 55:41I was very serious where when it comes to explain cube flow, how
- 55:44to install it, you need to embrace yourself.
- 55:48But. So this if this is the one O 1
- 55:51course, what's going to be the two O 2 course?
- 55:53What's the next? Edition because all he knows,
- 55:55but definitely something about OK, everyone is trying to do
- 55:59something about LLMS. So it might be training LLMS dealing
- 56:02with LLMS so we can explore that path.
- 56:06It might be even something either LMS or something very,
- 56:09very, very technical like infrastructure as code.
- 56:12Nice case, Terraform. First a play guys.
- 56:16Terraform. We do need it.
- 56:19We do need it. Having our.
- 56:20ML platform being screwed up so the majors we can talk about it.
- 56:27I love it and if anybody has any other ideas on courses, just hit
- 56:32us up in the comments. And because we're building out
- 56:35the ML OPS community learning platform, and I think it is a
- 56:39great excuse to get some of the incredible people like yourself
- 56:44in the community to create courses for the platform and
- 56:48disseminate the knowledge amongst the other community
- 56:51members. Two kinds.
- 56:53It's a way to give back to the community because there's some
- 56:57mutual benefits to learn. Also from the Slack channel.
- 57:01Boom, there we go.