Latest / Agentic Conversations (formally mlops.community) / Setting up an ML Platform on GCP: Lessons Learned // Mefta Sadat // MLOps Coffee Sessions #71
Transcript
- 0:16Hey everybody, welcome to another episode of ml opt
- 0:20Community Coffee sessions. I am bishnu and I'm here with
- 0:23Demetrius. I do in Demetrius, what's going
- 0:27on? I am pretty stoked to talk to
- 0:29meth Today because there is a whole line of grocery stores in
- 0:34Canada that I had no idea existed and apparently, they are
- 0:38pretty popular. Yeah.
- 0:41I mean I'm not an expert on grocery stores, but I'm
- 0:45definitely interested in hearing more about this particular chain
- 0:49and how they are leveraging, ml in production Loblaws.
- 0:54Apparently, which is omnipresent in Canada today, we have nefta
- 0:58Sadat, a senior mln, Engineer at Loblaws here to join us.
- 1:02To tell us all about how this multibillion-dollar business
- 1:05uses ML and production, leverages different tooling, and
- 1:08share his experience and perspective on where I'm a lab
- 1:11stooling is going to go in the future.
- 1:13Thank you so much for joining us Matha.
- 1:15Yeah, thanks for having me. Looking forward to the station.
- 1:20So it's a pleasure to have you here.
- 1:23And I want to start off by asking you first.
- 1:25Tell us about yourself and what you do at Loblaws and what
- 1:29Loblaw Is yeah. So by now you probably know how
- 1:34big lava is that Canada. We have.
- 1:36We are one of the largest grocery store chains.
- 1:39There is literally within 10 minutes or every Canadian.
- 1:42There is our one of our store. So yeah, we have read we have a
- 1:46big presence here and we didn't la blah.
- 1:49Enterprise am I my company's lot of the digital which is like a
- 1:52smaller take part of a la blah. And our main focus is to build
- 1:57our digital experiences. We have different kind of
- 2:02experiences, like we have our online grocery business, very
- 2:05sell groceries online. You could order your groceries
- 2:08from your app or website and go to our store.
- 2:12Just stay in your car and they will deliver to your car, all
- 2:16your groceries, and we also do deliveries, we could order and
- 2:20get your deliveries deliver to your at your home.
- 2:23And there are other other side of the business.
- 2:26We have Pharmacy. We have Joe Fresh.
- 2:29We also have a It's a program called is the optimum which is
- 2:33one of the largest loyalty programs as well in Canada.
- 2:37So yeah, so my my team is within love literature.
- 2:40Our group is there are signs and my king is the ML and data
- 2:43platform team. So we basically build our ml
- 2:47that from for our data, scientists to use and deploy
- 2:50their older machine learning models or their experiments and
- 2:54also take care of all our data ingestion, their engineering of
- 2:57those kind of things. Yeah.
- 3:01Awesome. And how did you get into ml
- 3:04engineering? Yeah.
- 3:06So I was, I was doing my masters at Ryerson here in Toronto and
- 3:12my, my study was mainly focused around solving computer science
- 3:17and software engineering problem using machine learning.
- 3:19And I really liked how this field was evolving.
- 3:23So right after I graduated, I started at a start-up hearing
- 3:28Toronto and the product was great.
- 3:30Like they were building television experience, electric
- 3:34trees, like in there. Looks like experience for
- 3:36television content. So, they're building an app
- 3:38where we are regular TV content to go and you could see like a
- 3:42Netflix, right? So so your TV providers,
- 3:46basically give you this experience and my job was to
- 3:50build out a recommendation and personal educational experience
- 3:54for our users and I got to do it from scratch.
- 3:58So it was pretty cool. We are a small team but we have
- 4:02some good content and we ended up building.
- 4:05At application and I will be available for all the consumers.
- 4:08So that's kind of where I started my journey.
- 4:10And after that I just moved to La Fleur where I'm here for over
- 4:15three years now. Yeah.
- 4:18Got it pretty, pretty classic journey in terms of arriving to
- 4:22the machine learning world. I feel like a lot of our
- 4:24listeners will empathize with starting off from master's
- 4:27program getting Hands-On with the particular application and
- 4:33the rest being history. I want to start by understanding
- 4:38what some of the sort of use cases for machine learning are
- 4:42at Loblaws. It sounds like Loblaws is a
- 4:45traditional, pretty traditional grocery chain, which I think is
- 4:48one of the most interesting businesses in the world.
- 4:50When you think about all the different kinds of products that
- 4:52grocery stores have to have the intent to supply chain and the
- 4:55Really the diverse consumer base.
- 4:57So can you tell us a little bit about how ml is applied and what
- 5:01kinds of things Allah wants to apply an 02?
- 5:04Yeah. It's a very question.
- 5:06So there's so many use cases you can think of when you're dealing
- 5:09with a grocery business. Starting from, let's say, our
- 5:14e-commerce experience that you have your typical search, your
- 5:17typical recommended to use case where you want to show your
- 5:20users, the best products they want to buy your the next items
- 5:23they want to buy. You also going to give them some
- 5:25personalized experience, right? Like you want to predict what
- 5:29they're going to buy. Next time.
- 5:30They go to the store, right? Or list and the order online and
- 5:34there is also A whole lot of other use cases at the store
- 5:38level where we want to optimize how our orders are getting
- 5:42picked up, how we better pick our orders starting increasing
- 5:46efficiency. Also, their use cases, where we
- 5:49have to be regular. We have to predict inventory.
- 5:52Think about when you go to grocery stores to takes a
- 5:55product from the aisle is actually until you check out at
- 6:00the cashier. That product is not in your
- 6:02inventory, but we don't really know, right?
- 6:04Like if These minor directors from our actual inventory
- 6:08number. So we have to predict all these
- 6:10things in real time. And yeah, so there are so many
- 6:13things going on yet, love them. That is fascinating, especially
- 6:19that part about protecting inventory.
- 6:20I hadn't thought about it, but in an age of instacart and so
- 6:24many other different kinds of Shoppers and your own delivery
- 6:27service, it's more important than ever to know what's
- 6:29actually on the shelves and in stock, not to mention all the
- 6:32other things that you mentioned are where I'm now.
- 6:34Systems are applied. And so you have this like super
- 6:38diverse set of use cases that you want to use across your
- 6:42business. And I'm sure that your company
- 6:44has a lot of data scientists and machine learning professionals
- 6:46that are Applying for casting or analytics to help solve these
- 6:50business problems. How does your ML and data
- 6:53platform team? Work with those data scientists
- 6:58and to empower those data scientist, I'd love to learn
- 7:00more about how your team operates.
- 7:03Yeah. So the goal of my team is to is
- 7:08to make that it will be a mix of the data science lifecycle
- 7:12Quakers. So think about starting from
- 7:15exploratory data analysis with in your model, validating your
- 7:19model to go all the way to production.
- 7:21This is a very complicated process, right?
- 7:23And we want to make this process as smooth and as easy as
- 7:26possible and as fast as possible as always.
- 7:29So we build a lot of different tooling we build a lot of
- 7:34example, projects for data scientists, we collaborating
- 7:37data scientists on. On individual projects, they
- 7:40will pair up with them, go over kind of doing system design with
- 7:44them and kayak. Kind of highlighting all the
- 7:48best practices, or like different tools that they could
- 7:51use to solve a given problem. Yeah.
- 7:53Got it. How many people are on your team
- 7:56and how many people are users of your platform?
- 7:59Yeah. So we have, we have another six
- 8:03to ten people in my team. We have, we have Engineers, we
- 8:08have our team lead, and then we have project manager.
- 8:10And some some folks from a sorry who will just like maintain
- 8:16production Stains in production and we also have a lot of data
- 8:20science. Things working with us.
- 8:22We have more than 60 people in Regional group so they're quite
- 8:26a few data size change that we have to internet on a day-to-day
- 8:29basis. They're like, what data science,
- 8:31teams are divided, across different business functions.
- 8:34For example, a forecasting or let's say, surge or
- 8:38personalization. So there are different different
- 8:40group within the data science Division, and all of us kind of
- 8:44work together. And, you know, platfrom, We host
- 8:47a different Services built by. These teams got interested in
- 8:54that and how you go about deciding what you're going to
- 9:00work on. And this comes up because I was
- 9:04just reading a pretty awesome article from Eugenia and about
- 9:09technical design docs, I think in and then I put it in the MLS
- 9:14community, and Laszlo commented and It said, oh yeah.
- 9:18Well these are just like prds and I was thinking about it and
- 9:23I was wondering if people have specific things that they do for
- 9:29prds when it is ml related. And if there's anything that
- 9:35when you're trying to figure out what you're going to work on
- 9:39next. Do you specifically call out or
- 9:43do you have processes that are different than say a normal?
- 9:47Devops or software engineering process.
- 9:52Yeah, so I think we have to kind of prep purchase one approach.
- 9:57We have instead up, a lot of example, designs or projects,
- 10:01like with the whole life cycle. So you could start with them.
- 10:06So we use a lot of template projects.
- 10:09For example, a template project is something you could just
- 10:13thrown into a repo and then you have the whole pipeline starting
- 10:18from building training, testing your pipeline running low.
- 10:22If and deploying your pipeline so that kind of have a it has a
- 10:27specific design and deployment architecture.
- 10:31So you could start with that. The other one is we kind of get
- 10:36together and collaborate work on different aspects of the design
- 10:40and normally data scientists did sometimes take input from
- 10:44software Engineers because without email platform team is
- 10:47mostly built with software Engineers, animal Engineers.
- 10:50So we kind of collaborate And give some of our insights on.
- 10:54How let's say we design go. If there is anything that we can
- 10:59do better, we just give our thoughts on that.
- 11:01Yeah, got it. So I noticed that you mention
- 11:05that your team is not just the animal platform team but ML and
- 11:09data platform team. Can you talk to me about what
- 11:12constitutes the data platform and what differentiates it from
- 11:14El platform. Yeah.
- 11:16So so we started building our data that from first and they
- 11:21don't go in there. Thumb, because as, you know, we
- 11:24don't data, we cannot really do Emma, but it's so we out data
- 11:28platform comprises of the crucial things like we have, we
- 11:33have been input data. Coming through all screaming,
- 11:35Kafka pipelines, we have, for example, like data coming from
- 11:40point of sale devices of data, coming from our inventory.
- 11:44Those data are coming into our internal injury streaming
- 11:47systems. We also have some data coming as
- 11:49feeds, so all these data, they Go into our data warehouse.
- 11:53We have the query as our data warehouse where, which is kind
- 11:56of the unified place, where all our data leaves, right?
- 11:58So it was a very powerful tool for like analytics or electron
- 12:03you favor an aquarium. We could, you know how fast it
- 12:06is to run your queries there. So yeah, so all of these data
- 12:11pipelines we kind of orchestrate using different tools.
- 12:15Like, for example, I get a chair flow was wrong of the tools we
- 12:18use and we have Sobeys, Kafka pops up.
- 12:22Really to build on this platform.
- 12:23So, so we have, we have data warehouse.
- 12:27We also have some skimming topics that we expose for other
- 12:31constituents using toxic about Kafka and yeah.
- 12:34So basically once we have the data or use cases to mainly just
- 12:39need to use this data from more getaway house and build stuff.
- 12:42Yeah. Fascinating this is it's
- 12:45interesting to see the sort of overlap between the data
- 12:51professional. Sort of traditional data
- 12:52professional and you and then your team and the sort of ml
- 12:55professional. Because I think a lot of times
- 12:57what happens in a lot of organizations is you have one or
- 13:00the other, you know, where, you know, you'll have an
- 13:03organization that gets excited about, you know, machine
- 13:06learning and maybe hires like a data scientist or machine.
- 13:08Learning fresh bones, okay? Go do machine learning or you
- 13:11have a very traditional analytics stack or analytics
- 13:14focused or reorganization then over time, maybe starts to say,
- 13:18let's let's add machine learning but the group is in in Sort of
- 13:22analytical Focus, right? And it's driven by that.
- 13:25I'm curious from your standpoint.
- 13:27How did this all evolve, you know, at Loblaws in terms of
- 13:32what was the timeline for starting to really leverage
- 13:35machine, learning in your products and in your business?
- 13:39Yeah, so when I started, we were a very small team compared to
- 13:44what where we are now we are at now that that time our Focus was
- 13:49just to build out our data platforms first and start with
- 13:52very simple set of Emily's cases.
- 13:55So we already had a legacy recommendation system.
- 13:58We had some Legacy other little project, so we kind of take
- 14:03those projects and modernized than using Cloud.
- 14:06So they were running in our in our Hadoop cluster in our data
- 14:10center at the beginning. But we, once we started to move
- 14:14to Cloud, we first met make effort to build a data warehouse
- 14:19and then kind of take these for this Legacy projects.
- 14:22Build out our first Cloud able projects and once we get to gain
- 14:27more experience on that. And we kind of showed the
- 14:30business that we could deliver in ml products and impact.
- 14:34We can create really very good impact on our business.
- 14:38Then they started to buy in, right?
- 14:41And once, once we iterate over this design over and over when
- 14:44we gain the capability to shape, in a modest, much faster, and
- 14:48much quicker before you could take, like, six months to put a
- 14:51little System into production. But now we could be like two to
- 14:54three months just because we have everything in place.
- 14:57So yeah so you put like one example I could give you is like
- 15:01this a simple lever forecasting models could give you a lot of
- 15:04efficiency. Right?
- 15:05C-could. You couldn't still see the
- 15:07Matrix, the numbers and you will see how much money you could
- 15:10say, were, how much time you could stay.
- 15:13Right? So, those, those impacts were
- 15:15very important for us. Yeah, I want to know.
- 15:20What did it look like when you made that transition from these
- 15:24Legacy systems to the cloud and what are some top or key things
- 15:32that you would like to let everyone else know who may or
- 15:37may not have to go through that? What are some gotcha moments
- 15:40that you might have had or anything along those lines?
- 15:43Yeah, I mean, one of the things I can tell you is with the, with
- 15:49the Legacy, Legacy data center approach.
- 15:52We haven't a huge spark cluster and the people who were working
- 15:56at that time, we're given all the resources all the time but
- 16:00it's because the cluster was appalled that time.
- 16:02So so when they were writing applications, they were not
- 16:05thinking about efficiency efficiency in terms of cost or
- 16:09resource allocation, right? But with Cloud, you could create
- 16:12resources on demand. Like, you could spin up our
- 16:15kubernetes cluster, we could speed up our data, proc spark
- 16:18cluster, and shutting down. Once you are Done.
- 16:20So you could scale up for like, 30 minutes to your things
- 16:25quickly, and shut it down. So, when you think about scale
- 16:30and on-demand resource allocation, those kind of things
- 16:33you have to, you have to use. If the Clinton clouds, Plumbing,
- 16:37teased out, very efficiently. So that's one thing to think
- 16:40about, think about how you are going to be transitioning, like
- 16:45used tools that are easily adaptable to Cloud.
- 16:47For example, you are using each base and Googled out into this
- 16:51big table. So we do there is a very easy
- 16:54transition, right? So for that first part, it was
- 16:58just two data Prague so those are very different Visions.
- 17:02Yeah. I really want to dive deep into
- 17:04this whole you use case here because the recommendation
- 17:08systems use case, it's I've never really worked on
- 17:12recommendation systems but it seems like it's well it is the
- 17:16field in which I think there has been the most sort of production
- 17:19ml work. Look, that's a that's happened,
- 17:21right? Even more so than I think deep
- 17:24learning systems like recommendation systems are
- 17:25everywhere, right? It's the most profitable
- 17:28business model in the world than Google.
- 17:30So you leveraged Cloud tooling. As you mention right?
- 17:37The shift from going from sort of an on-prem Legacy stack to
- 17:41using an on-premise oracle Cloud stack for your recommendation
- 17:46system, can you talk to me in a little bit more detail about
- 17:50What the actual use case was that you were architecting, this
- 17:54recommendation system around? What tools you're using for now
- 17:58and sort of what the impact has been on the business.
- 18:02Yeah, definitely. So, so, this recommendation
- 18:07system was about showing you. The users can most purchased
- 18:13items are the next next basket, kind of use case.
- 18:17So so this latest style is that Was using mapreduce, it was the
- 18:22village base and it was everything was based on our data
- 18:27center, really moves to Cloud. There are several things we
- 18:31wanted to do better. One of them was performance of
- 18:35this system. So this Legacy system was taking
- 18:38a long time, just running mapreduce algorithm and loading,
- 18:44the data. Like it was a batch production
- 18:46system so you don't need to run the algorithm.
- 18:48We took page, recommendation, and then load.
- 18:50All the data to each base. But when you move to Cloud, we
- 18:54wanted to improve the performance of the system.
- 18:56So let's say you're sticking one second to get an eternity of
- 18:59recommendation. We wanted to bring it down to
- 19:01less than 100 milliseconds which was which was a very big drop
- 19:05and great improvement in our customers experience.
- 19:08So what we did was we use big table and we also deployed this
- 19:14system into kubernetes. So we we have our other back in
- 19:19teams. They're running in kubernetes as
- 19:22a micro service architecture. So once we have, we have our own
- 19:27recommendation micro service. They could easily easily call
- 19:30them micro service. Instead of just getting the
- 19:33recommendation from the database directly.
- 19:36So that will, it took a couple of things so more and more teens
- 19:38could use recommendations because now we offer a
- 19:40recommendation as a service. So that shift to the
- 19:44architecture, was was really great.
- 19:46And then then also the performance.
- 19:48So now that we are using Cloud Big Data, Which is because nosql
- 19:52guy kind of database offering and it has very high performance
- 19:56and throughput. So so just by using big table as
- 20:00a as a offline storage for a recommendation.
- 20:04Sorry, I'm not like straight for an oak recommendation could
- 20:06could improve our free moral agency by great deal so that
- 20:11kind of being down our Target to less than 100 millisecond.
- 20:16And we are also using Cloud composure which is which is the
- 20:19orchestration. The cloud.
- 20:21And without composure, we are able to run this Pipeline on a
- 20:26schedule C, when it fails, we had, we can, we could retry our
- 20:30pipelines. We could have alerting of set up
- 20:32on the pipeline, that's the one time it fails, it will just
- 20:34directly, there are so your pipeline phase so this overall
- 20:37kind of observability gives mix our pipeline more resilient.
- 20:41So so that was another another upgrade and we also have
- 20:47different type of monitoring setup.
- 20:50We had, we are monitoring our or micro service to a 3-2 collab
- 20:56Dynamics. So that would also give us real
- 20:59time monitoring Matrix like the latency throughput.
- 21:03And we also have a lurking, right?
- 21:05So so those kind of instability tooling made our services, much
- 21:10more resilient. We knew when stuff was going
- 21:13wrong, could break, you get proactive and succeed.
- 21:16So, yeah, that's really is really interesting actually
- 21:19because this is This is a large scale, Enterprise sort of
- 21:22offering of ml, right? Internally, of course, but I can
- 21:27imagine now that you've exposed this microservice, as you said,
- 21:30a lot more people can consume it.
- 21:32It's much more performant, it is, you know, it's a better
- 21:35engineered system. But along the way, is I have to
- 21:39imagine that there are a lot of bumps and that there are a lot
- 21:42of growing pains as you staffed up to add more expertise
- 21:46experience to your team as you figure it out, you know?
- 21:49The As with different tools because I know that, you know,
- 21:52as cool as bigtable and Cloud composer and stuff are that, you
- 21:55know, sometimes if they're a lot of different quirks and pain
- 21:58points in the process of adopting new tools and getting
- 22:00them right for you, use case, can you talk to me about how
- 22:04long this whole project took? And what some of the biggest
- 22:06challenges you faced were Yeah, so this is this was one of the
- 22:11earliest projects that we need and we invest a lot of problems
- 22:14in terms of permission like how we will set different type of
- 22:19identity for your wrap, you need to Grant permissions in Cloud
- 22:22for different things. So there are kind of toil around
- 22:26that so you want a specific app to have specific permission for
- 22:30you to like read access to your database or were cloud storage
- 22:34or something. So there are still a lot of
- 22:36color on that there is a steep learning curve.
- 22:38Our data site is for air flow and blood composure because as
- 22:42you know, it's not very user-friendly to some extent,
- 22:46they're like some issues, you often see, and any long-term
- 22:51users of a particular flow, they will tell you, there are some
- 22:54some, some bleeding around the figure on the tombstone.
- 22:57So there was a steep learning curve around that and overall
- 23:01like Cloud tooling the general. There are some learning curve as
- 23:04well for data scientists. So with, with all this Things.
- 23:08We kind of started to folks started to shift our Focus
- 23:14towards building, a reusable that from.
- 23:16So so now we have, we have use all these tools.
- 23:20We have deployed a service, but how can you do better?
- 23:23So we use here with a few new tools and we incorporated them
- 23:29into our platform. For example, one of these tools
- 23:31are seldom co-worker. So cell doesn't Accord is our
- 23:34models are being told that very thing right now.
- 23:37So previously I think I'm really getting our custom microservice
- 23:41as an architecture that we're eating certain as a mortal
- 23:44serving architectures. So so sale done.
- 23:46I'm afraid of being enslaved. Unlike pay anything, you build,
- 23:49you have to build now, it's all done.
- 23:51So so once you know, salary is not getting much, much easier to
- 23:54serve your model. And the next step was just
- 23:57creating those example, those reusable, libraries dose,
- 24:00template projects, and set up everything using this, these
- 24:05tools and that kind of paved the way for a day.
- 24:08Data scientists to start using this platform, right?
- 24:12So now that we have a fixed set of tooling, we know what we are
- 24:17doing and we have all the alcohol of the examples and
- 24:21templates and reason codes available for data scientists.
- 24:24They could start deliberating this platform or so that was
- 24:28kind of our approach really, really fascinating.
- 24:31I think that there are a lot of listeners that are hearing what
- 24:34you're saying and empathizing in terms of the same Colleges or
- 24:39the same sort of maturity process that your team and your
- 24:42company went through and are seeing it happen or has happened
- 24:46at their colonies. The question I have listening to
- 24:50what you talked about in terms of how you have coalesced around
- 24:54a specific tooling stack around a process that is heavily
- 24:59informed by your experience, working with these tools and
- 25:02putting in place a production recommendation system is, how
- 25:07did you You get data scientists upskilled on these tools.
- 25:13And did you face any pushback in terms of your choices for what
- 25:17tools do they should use? Yeah, so that's a good point.
- 25:22So first, when we are we were doing a lot of POC projects, to
- 25:28start out different tooling. So we use open source tools,
- 25:33such as Feast, for example, or email flow, and tell don't go.
- 25:38Then we also use some Cloud tools, so we know doing the puc
- 25:42we open source tools that said, I mean this year and I think
- 25:46make this year Google announced vertex here.
- 25:49So which which kind of being opened a new door for ML
- 25:54practice on Google, right? So with vertex.
- 25:56There you also dwc are leveraging, the whole part a
- 25:59Vortex. A platform to build the same
- 26:01thing. We built using open source to
- 26:04do, right? So with with the vertex, I will
- 26:06also use some Of the open source but mostly is in what makes a
- 26:10truly. And once we have done that, we
- 26:14kind of asked the data scientists.
- 26:16Okay, so here is here, is the blood from?
- 26:18Can we? Can we do a PLC now with your
- 26:21data science project? Can we use one of your project
- 26:24as an example and run this on our platform using these tools,
- 26:28start onboarding ml. So, for example, our start
- 26:31onboarding feast in your project and we kind of help them guide
- 26:35through this whole process where we give give give Give them our
- 26:39blood from and then we are on board one of their projects,
- 26:42right? So after we do that, do that, we
- 26:45just gather feedback from The Design District what went?
- 26:48Well, what we're very good do better.
- 26:52So those kind of questions of kind of discussions, those
- 26:55really helped us kind of decide on what to use and how to use
- 27:00them, for example, with ML. So one of the feedback we
- 27:05received was there is there is no Access Control in open-source
- 27:09version, right? So so let's select.
- 27:11There is no role-based access control like everyone will use
- 27:13the SMS or server. They could kind of have the same
- 27:17level of access they could edit in anyone's experiment so which
- 27:20was one of the issues we found so.
- 27:23So we wanted fine-grained access and so in our case it would be
- 27:29best if everyone we can grant rules to every user.
- 27:33But that wasn't available with open source and also version.
- 27:36So that was one of the issues that Found out and just as the
- 27:40experiment with different tools and gather feedback more and
- 27:43more features or other kind of issues just come out.
- 27:47Yeah, so actually I was going to ask about the access and more
- 27:53specifically like data access and how you dealt with that
- 27:57because I know you mentioned you you caught a few tough times
- 28:04when it came to the transition and learning and then having to
- 28:09upskill into the cloud. So what did it look like?
- 28:13What were some of the ways you got around the data access
- 28:16problems? And if you're watching on video,
- 28:19you can see my daughter wants to show her little baby in the
- 28:24screen right now. She wants her doll to get a
- 28:28cameo appearance. But yeah.
- 28:30Like like these data. And the I guess also, what you
- 28:34were talking about the role access and being able to have
- 28:37like our back was very important for you.
- 28:41So how did you get around that? Like what did what was the
- 28:43solution that you ended on? Yeah.
- 28:46For for this is the reason we kind of preferred Google
- 28:51offerings of artists. They I has virtually no haste
- 28:55all the Google goodies, right? So Google has removed as access
- 28:58control. It gives you a very fine grain
- 29:00excess. So when you are using the BART
- 29:02XML metadata Services, we could still use Google's Google's like
- 29:08permission and access to Leading, so, so that was one of
- 29:12the reasons we decided to Google.
- 29:16Metadata instead of ml so and features store instead of fist.
- 29:21So that was one of the reasons just because you're using Google
- 29:24to read from any dog of first that Community these days
- 29:27somebody's already beating to the pet from and there is also
- 29:30data access patient, right? So when you're talking about
- 29:33data, we use a different things. Such as policy tags in bigquery
- 29:38that could restrict access. For example, if you have pii
- 29:41data, you don't want anyone to see those data.
- 29:44So you could, you could Have three I get blocked using policy
- 29:48tanks on Google bigquery and there is also like that there's
- 29:52a platform called TLP that animal noises your that would
- 29:55regularly and then is unstructured data.
- 29:57So let's say you have user reviews or like you have a
- 30:00chatbot in your website where people could input free from
- 30:03tips, right? So all those kind of data
- 30:06sources could have been a potential source of pii data and
- 30:09you want to make sure this guy's see, cubes.
- 30:12So there are tools such as real defective DLP.
- 30:15Ready to lose to kind of scan this kind of data sets and
- 30:21create access control open top of the state of data.
- 30:25Let's make sense. I mean having to do that in the
- 30:31open source, world would have been cumbersome and it probably
- 30:35would have taken you a lot longer than you could have just
- 30:38gone out and bought it. And so that that trade-off is
- 30:44always. Fascinating to think about and
- 30:48and what you're going to optimize for and what you should
- 30:50be building yourself as opposed to just going out and buying so
- 30:55sticking on this theme of gcp and tooling and the staff that
- 31:00you built. What's been your experience thus
- 31:03far? I know there's a lot of people
- 31:05out there that I almost and I hate to say it.
- 31:09But sometimes when people come to me and they ask me, how
- 31:12should I get started where we're starting to set up.
- 31:14Our ml Ops, Initiative, what should I do?
- 31:18And a lot of times I say, just go to the big cloud vendors and
- 31:26by what they have their offering because it seems like it's the
- 31:30easiest way to get set up but you didn't.
- 31:33It's not your story but you have been using it for a while.
- 31:36So I want to hear The Good, the Bad and the Ugly.
- 31:39Yeah, so it's the one example I could give you is, you have to
- 31:45be very About your cost when you are using Cloud, right?
- 31:48So things could start to go wrong pretty easily.
- 31:53So you have to have to set up like sort of monitoring or
- 31:57you're costing practices. One example where we are using
- 32:01car to do some sort of Readiness check, and it was really having
- 32:06some luck message, which was a pretty bit longer than usual and
- 32:10it was growing up our costs just because we are working more and
- 32:15we had a logging things that are between our communities and our
- 32:19big query and it was costing us a lot of money.
- 32:21So we had to immediately kind of fix that.
- 32:24So there is one example. So let's see this.
- 32:27These tools have auto-scaling right?
- 32:29So it could it could if you do if you're not careful, for
- 32:32example, if you're using data flow and you have auto-scaling
- 32:34turned down and you are training some image image classification
- 32:40model, right? And if you are not careful and
- 32:43set up a scaling set, your number of workers.
- 32:45Stand off limits, you could we could start talking scale very
- 32:48quickly and you could be could burn up a lot of money.
- 32:52So there are some some some problems around not problems, I
- 32:57would say like configurations. You have to be very careful
- 33:00around costing and resource allocation.
- 33:02These kind of things they are. You did you set up alerts for
- 33:07that? Like did you figure out a way to
- 33:08make sure that that doesn't happen?
- 33:10And yeah, so you're away. So our team did normally have
- 33:16building a large set up at project level for every project.
- 33:18This is kind of an organization organizational thing.
- 33:21So we are we are aware what's going on in terms of calls here.
- 33:26Got it, this has been a great conversation.
- 33:29I really feel like, you know, one of the things I appreciate
- 33:34when talking to people ml engineers at companies, tell me
- 33:36about what, you know what they've done is is hearing how,
- 33:40you know. They saw a problem and were able
- 33:42to try different approaches and settled on something and what
- 33:45trade They were able to make and and learning what technologies
- 33:49are most effective in different contexts.
- 33:50For example hearing from you about how you use big table, as
- 33:54always it's always a plus because it's something that I
- 33:56can kind of take back to my own work and say okay this is a
- 33:59reference point you know for technology that can work in a
- 34:02given situation and it definitely gives me a lot to
- 34:06think about when I'm doing my day-to-day work.
- 34:08Now with that said a question, I want to ask you is you know, you
- 34:13have had this great experience working for a Two years at
- 34:16Loblaws working on production production, Rising ml in a
- 34:19highly relevant business case. What part or problem in the
- 34:24process of production? Izing ml, are you most
- 34:27passionate about and would in that you know, you would like to
- 34:30continue developing expertise. Mm.
- 34:33Yeah. So for me personally, I like I
- 34:38like such a recommendation space as a product so so that is one
- 34:44thing I really enjoyed my My Master's was also I use
- 34:48recommendation technique to solve software engineering
- 34:50problems and in my first company, I did a recommendation
- 34:53projects as well. So I'd like to see the
- 34:58recommendation problem or, you know, it's a, it's a very talked
- 35:01about problem, right? But I want to see, I want to see
- 35:04working on making this problem more generate.
- 35:07So you don't really have to be recommendation.
- 35:09Every time you have a problem you can you could just leverage
- 35:14the recommendation as a service. Or something like that.
- 35:16I know some some Cloud already offered that as a survey I think
- 35:19Amazon does one but but there that could be like that would be
- 35:26more available and also when we were talking about
- 35:29recommendations, you're only talking about the prediction but
- 35:32but we need to think about how all the models are performing.
- 35:35So we have to think about the feedback loop how our
- 35:38recommendations are actually performing in production.
- 35:41So there are not a lot of tooling around around Both
- 35:46deployment or post Post building your model.
- 35:49So, how how we do, you know how the recommendations are working
- 35:55as a, as, as you want or what is the, what is the engagement?
- 35:59So, so there is a, there is a disconnect I think between like
- 36:04like web analytics and machine learning.
- 36:07So I would want to work on bridging that Gap.
- 36:11So between web Analytics tool. Lets them motion machine
- 36:14learning here. That is the really fascinating
- 36:18way to put it. And one thing coming out of this
- 36:22Conversation, I'm going to test you with Demetrius.
- 36:25Is that Master has got to talk to iacopo Aiko.
- 36:29Vo who is also thinking a lot about recommendations?
- 36:33And recently came out with a beta version of a testing
- 36:36library for recommendation systems, I think you'd find that
- 36:39really interesting master and to go deeper on that topic.
- 36:43I want to know. How are you guys thinking about
- 36:45post-deployment monitoring of your recommendation systems?
- 36:49Yeah. So should I know?
- 36:52We're like I said I used to say don't go for models serving and
- 36:56we also have a feedback loop using certain because they don't
- 37:01supports like multi and then the another type of complex in
- 37:04friendships where we could really time use customer
- 37:08feedback or other type of spell. It is feedback to tune your
- 37:11models like which one is serving and we also have some analytics
- 37:16that from with Adobe analytics and snowplow.
- 37:19So we use, we will cover is that Data sets, coming directly from
- 37:23our consumer applications and kind of build dashboards or
- 37:29graphs, using that data and using career.
- 37:32He's looking for that that and then a look at we set the
- 37:37dresser alerting. So let's say your new model
- 37:40isn't performing or your dealer is problem are adrift in your
- 37:44data or model performance, we you detect that from those data,
- 37:49so yeah. So we are still Evaluating
- 37:52different Alternatives and how we are doing around those
- 37:57practices. But up to that point, our
- 38:00platform is very fixed for now. Well, that is a great way.
- 38:07I think to wrap up our conversation, this has been an
- 38:11excellent use of an hour. Thank you so much for joining us
- 38:15nefta. It is it is always a great
- 38:18opportunity for me and I think I'm speaking for Demetrios on
- 38:21the 10.20. Yeah, speak to a great engineer.
- 38:24Like you, you're just gonna sign off on it, but really just speak
- 38:28to a great engineer. Like, you.
- 38:29Somebody that really thinks deeply about, you know, what
- 38:32kinds of trade-offs to make has expertise in tools and really
- 38:34cares about impact and use case. So, thank you so much for
- 38:37joining us and sharing your wisdom and, and letting us know
- 38:40that Loblaws is within 10 minutes of every Canadian blew.
- 38:43My mind. Thank you so much force to be
- 38:47reckoned with, in Canada. And I gotta give a shout out.
- 38:49People that are listening, do not Sighs.
- 38:51But you have a guitar in the background so as a fellow guitar
- 38:56player it's awesome to see and I really appreciate you being very
- 39:00transparent and candid with us about everything that you've
- 39:04gone through in your journey at Loblaws to create a better ml
- 39:10system and the whole ml Ops process that's around that
- 39:14thanks a lot and for everyone listening still give us a like
- 39:18give us a thumbs up, whatever it is if you are Listening on
- 39:22Spotify or YouTube or iTunes. Or I guess it's Apple podcast
- 39:27now. It's not I Dunes anymore.
- 39:29You can hopefully leave a review or follow us.
- 39:31Whatever you do on all those platforms.
- 39:34We would really appreciate it. That's all for today.
- 39:37Everyone closing words map time. Yeah, just wanted to thank you.
- 39:41Both of you again for having me or do.
- 39:44It has been a really great experience talking to you today.
- 39:46Yeah. All right.
- 39:47The pleasure yourself. We'll see y'all later and I
- 39:52think by the time that this actually goes out, it will be
- 39:56past Christmas. So happy New Year, everyone and
- 40:00we'll see you in the new year. Ciao.