Latest / Agentic Conversations (formally mlops.community) / MLX: Opinionated ML Pipelines in MLflow // Xiangrui Meng // Coffee Sessions #112
Transcript
- 0:00Yo why is this guy such a big deal?
- 0:03Just break it down? I mean it's hard to hot
- 0:09question, you just came out with but I can actually answer that
- 0:12xiangru remaing who joined us from data bricks where he has
- 0:16with the first machine learning engineer, has been for about
- 0:19eight years is actually one of the lead maintainers for both ml
- 0:24flow and ml live. And by the way, is also an
- 0:27Apache, PMC member for spark. Yeah, he's a big deal.
- 0:31This guy has built a lot of what you guys are out.
- 0:33There are all using and he came on to tell us what he does and
- 0:37how he thinks about it. All did my favorite part was at
- 0:40the end when he just walked us through, basically how he looked
- 0:44at the problem and how to tackle the problem, it was like seeing
- 0:49the internal workings of someone's mind.
- 0:53Like he was so clear at, okay, well, I thought about this and
- 0:57then we thought about this and then I tried to go and find
- 0:59where It was already being done but then I realized well you
- 1:02know with tf-x it's not really working because they're built
- 1:06for Google scale and so then I went to other things and at the
- 1:09end of the day we did it this way and that's why we were
- 1:11opinionated. I almost wanted to keep riffing
- 1:14on that too bad that time was kind of up and what about you
- 1:19over some highlights takeaways on your end.
- 1:22I actually really liked hearing about his experience.
- 1:24Getting started data works and sticking around like it's so
- 1:27cool when somebody. Has been actually at the same
- 1:31place, working on machine learning.
- 1:34At the same time that so much, in machine learning has changed
- 1:37and I thought that was a pretty remarkable just part of the
- 1:40podcast to just listen to reflect on.
- 1:43And I'm really grateful that he was able to come on and share
- 1:45all that with us. So true so true.
- 1:49So let's get into it. This was an awesome episode,
- 1:52wish angry and he has affected, he has touched so many lives,
- 1:57inadvertently through spark through.
- 2:00Ml flow through MLA by mean it's awesome to get to talk to this
- 2:04guy. Let's jump right into it.
- 2:09Why don't you give us a little bit of a download on who you are
- 2:13and what you do? Yep.
- 2:16Hi this is John Ray from data Brooks, so I'm currently Uber
- 2:21Tech lead on the machine learning engineering team and
- 2:23just working with individual engineering teams of our self.
- 2:26Our ammo product features. I joined Did he breaks about
- 2:32eight half years ago? So I was the first motion linear
- 2:35engineer here and initially, just working on the machine
- 2:38learning library in spark called a mullet.
- 2:41And basically just the design, the apis and implement the major
- 2:45algorithms and working with the community to skill.
- 2:49The project development also has spent a few years our internal
- 2:53data team just as being a data engineer and data scientists
- 2:58using our own product. To handle our lock locks and ETL
- 3:03data and data warehouse and data analytics.
- 3:07Yep, that's me if you like there's so much that I could
- 3:09just ask you. And in that short bio that you
- 3:12just shared the fact that you join data bricks eight and a
- 3:15half years ago, the fact that you were the first ml engineer.
- 3:18There you worked on a metal live early on like each of those
- 3:22things, we could go into to meet you as.
- 3:24I'm going to take some creative Liberty here Amaura.
- 3:27You got something to say first vitro's yeah.
- 3:29No, no. Where are you gonna go with
- 3:30this? Because I want to know, what
- 3:32kept you at a two bricks for eight years and what has enticed
- 3:35you enough. But Vishnu like, where do you
- 3:37want to go with this? Let's roll with it.
- 3:39Let's throw that what's kept you here at database for eight and a
- 3:42half years now hungry. So maybe to answer that, it's me
- 3:48talk about the work I did before data breaks.
- 3:51It's what Seth Lincoln, for one year, it's I started there as a
- 3:55machine learning research engineer, and the building some
- 3:58machine learning platforms on top of Of mapreduce.
- 4:02But I, when I started, it's a very clear to me.
- 4:06Mapreduce wasn't really designed for machine learning, right?
- 4:09So big people, do it. Much learning our mapreduce,
- 4:12because mapreduce, is the production, cluster compute and,
- 4:17but in order to do machine learning, it's a little bit
- 4:19awkward is because mapreduce pedophile is just a reader batch
- 4:23and the same web page and which learning you need many
- 4:25iterations and people just end up with holding the mappers.
- 4:30And that just let them do more iterations.
- 4:32Throw away the mapreduce Paradigm racial, but at the end
- 4:37you just feel you're doing something on the wrong platform.
- 4:41You're doing the correct thing. People need a machine learning
- 4:43platform. That's very clear but you are
- 4:46doing it on the, on the, on the wrong base ratio.
- 4:50But over time, I feel wow, this is not really the direction to
- 4:52go and then I saw the spark, it's a there is an intent in
- 4:58Sister team and the Try to setting up spark.
- 5:02I took a read the spark paper. I feel, oh, this is nice.
- 5:06This is a data caching and you can handle many iterations and
- 5:10that's good for machine learning.
- 5:12So that's how why I happen to know the the co-founders but I
- 5:16didn't know their work. It's just a small word.
- 5:19I just call them and say well you started this new company
- 5:22called Data works, but it seems, you guys are all system people.
- 5:26You need some people who can handle this and a little X-ray
- 5:30so much learning so maybe I can I can I can do that.
- 5:34So that's how I get into Data breaks so but during the
- 5:38interview is the the co-founders and show me the product the
- 5:43earlier version of the product. So that surprised me a lot
- 5:47because I got in touch with data breaks because of spark.
- 5:51But at that time is I think the co-founders already has a clear
- 5:55prediction of the future and the future is cloud computing,
- 5:59right? Do they know that within couple
- 6:03years and everyone every company will be in the cloud and then
- 6:07they start designing the product for that future rather than
- 6:12design the product folder for the, for the year 2013.
- 6:17Rachel, and that surprised me, and their product vision is
- 6:20really this a unified analytics platform.
- 6:23And if you saw the early demo version of the product, it
- 6:28doesn't look very different from the Product null.
- 6:30We just added a lot of features, but essentially, the direction,
- 6:34never never changed ratio. That's really why I want to just
- 6:41stay with data brakes and keep improving this product.
- 6:45Go towards the origin of the product vision is I think the,
- 6:48the co-founders and has very accurate prediction of the
- 6:53future. And they also have a really
- 6:56strong education. It's just as they align the
- 6:59teams that And execute towards the same direction and an owl
- 7:03show. Definitely, I also believe that
- 7:05it's having this a unified engine platform can make this
- 7:09that people like a data, analyst data scientist, and the data
- 7:14Engineers who you are. They don't speak the same
- 7:16language and the leave under the same roof and the try to use the
- 7:20same tool to collaborate. That's amazing but we're not
- 7:24there yet so that's why while I think there are still lots of
- 7:27things to do and that's That's kind of why I stay here for more
- 7:32than eight years. And why do you think you're not
- 7:35there yet? What still needs to be done.
- 7:37There's so many things. That's why we have this Emma off
- 7:40spark test, right? So it, so that's why I'm an
- 7:42abscess do a mess. So this, it's not simple.
- 7:47For example, it's a remember there in the mapreduce stage?
- 7:52There are, there is the statistics Professor from
- 7:54Stanford and talk about. Oh it's a why data scientist?
- 7:59I need to know. Mapreduce ratio is survived by
- 8:03producer. So popular and if you look at
- 8:05them at the white elephant book and then figure out.
- 8:08Okay? So because instead of saying you
- 8:12just compute me and virus. Now you need to understand how
- 8:15you compile it down to Matt, reduce what's inside, the mapper
- 8:19was inside a reducer and that's very hard.
- 8:22That's so hard. Right show.
- 8:24And he doesn't believe that data scientists need to know,
- 8:27mapreduce. Rachel did the center only need
- 8:30No, they want to compute me and the virus.
- 8:32The engine should be able to take care of that.
- 8:35So to make a super simple and so data centers, don't need to get
- 8:40to the low level details and that's how we came up with spark
- 8:44a spark. You don't need to understand
- 8:46mapreduce anymore, right? Show you just a use spark to do
- 8:49the things you need. And I think the same applies to
- 8:52General data science and machine learning is still so hard.
- 8:55People still need to learn many things.
- 8:59They are not. The nervous and they eventually,
- 9:02you shouldn't be their skill set.
- 9:06So you have, that's why I think it says there's still so many
- 9:09things to do because the product is not that simple to use.
- 9:14Let's let that sit for a second. No, I think I, I totally see
- 9:19what you're saying there around the fact that there's still so
- 9:23much that can be done to empower people to do their best work.
- 9:27I think a lot of people on our podcast in the community in
- 9:31general or like I wish I had to I spent less time figuring out.
- 9:36Tools of the trade and more time using them to drive value in,
- 9:41whatever that might be right. In terms of actually applying
- 9:44the tools. And I'm kind of wondering, you
- 9:47know, you have had this incredible experience of being
- 9:52at data bricks for, you know, quite some time.
- 9:54Being able to be the first machine learning engineer.
- 9:57What is it that made you passionate about?
- 9:59The fact that people should be able to apply machine learning?
- 10:02What does he what got you into machine learning in the first
- 10:04place? Yeah, so my major at school
- 10:09wasn't bushel any my major at school was competition of math.
- 10:14Why do is really just a numerical optimization is and
- 10:17the simulation linear algebra and but this is actually a very
- 10:22familiar with implementing those machine learning algorithms
- 10:25because about the building blocks for the solvers really
- 10:28linear. Algebra ratio, do Matrix Vector,
- 10:31multiplication, how to do this scalar in a scalable and the
- 10:36That way. So that was my major.
- 10:38That's why I started as a machine-learning engineer and,
- 10:40but on the back end implementing those algorithms but over time,
- 10:44I see that. Okay, so, you know, other to
- 10:49utilize the your data really many, many companies, and they
- 10:53collect, so many data petabytes terabytes ratio, but when you
- 10:58talk to them is, They will tell you oh events really they want
- 11:03to they want to get value from it, the not just a pain, the
- 11:06storage cost and what's the best way to get value?
- 11:09While they can have some data scientists to do this, say eta
- 11:15to do some dashboards and to tell them what happened in the
- 11:18past Rachel but the current more about what will happen in the
- 11:21future, right? So they want to get into the sap
- 11:24predictive business and the which requires machine learning
- 11:28and the biggest our way through base, but at the end too.
- 11:31Still, they need machine learning models and to power
- 11:33their business. So that's why I feel what it
- 11:36would be a huge impact, right? Show to work on machine learning
- 11:40to make money easy to, to end users.
- 11:43So many companies there with data setting in their, in their
- 11:47storage account, right? So they can really just make
- 11:50value out of it. One of the questions that popped
- 11:53up to me. Immediately, there is from the
- 11:56time that you started both at data Brooks and in machine
- 11:59learning to today there. Have been so many changes in the
- 12:02ways that people think about ml the models that they're able to
- 12:05build the tools that they use, right?
- 12:08Like it's remaining ten years. It's hard to imagine like how
- 12:12far we've come and how much further we have to go right with
- 12:15things like large language models, you know, models like
- 12:19Dolly and stuff like that. There's there's there's it's
- 12:22like we've come so far and they're still so far to go and
- 12:25I'm kind of curious from your standpoint as a not just like a
- 12:29tool builder for the machine learning and Here.
- 12:31But if somebody, that works on like, very fundamental, I guess
- 12:36you could say like almost conceptual like infrastructure
- 12:40that supports the entire machine learning ecosystem.
- 12:43How do you think about changes the changes that have happened
- 12:49and, you know, in terms of keeping what you build fresh for
- 12:53the future? I hope that kind of made sense.
- 12:56I'm thinking this out with you right now.
- 12:59Yeah, I think I the very beginning.
- 13:01It's a when I work on a mullet I think it's mostly our how to
- 13:05make an algorithm scalable. So people can show over large
- 13:08data sets. And but over time it says see
- 13:11the strands shifted to help from how to how to use, those are
- 13:16pretty fit models. Those model modules created by
- 13:20others, and to to train our own model right show together a good
- 13:24accurate just as a predictive model for your own business
- 13:27problems. And then, Another Trend I see is
- 13:30people care more about production.
- 13:33So back in the days and a lot of people just doing the batch
- 13:37scoring ratio after the trail model, they do best score in the
- 13:40upload, the scores and the to a database and to serve.
- 13:44But over time, people see that. Oh, that doesn't address the
- 13:46business need. They start doing a lot of real
- 13:49times inference and but how to get models into production,
- 13:54Rachel, how to coordinate the work amount is a multiple teams
- 13:58and becomes a really big challenge.
- 14:03So that's why we see a lot of focuses on Emma Ops rather than
- 14:07the core algorithm at this time. And there are more ammo to say I
- 14:12endpoints ratio, you can use and rather than thinking about
- 14:15what's behind the endpoint to get your job step.
- 14:19It's a it's a great point about how the challenge has gone from.
- 14:23You know, first it was just about scale and being able to do
- 14:27more. And the way that people But want
- 14:29to use it now has continuously changed I know Demetrios has a
- 14:33question that he wants to ask you some going to kick it to
- 14:35him. I was just thinking about like
- 14:38when you talk about that Evolution and I hear it being
- 14:42mentioned quite a bit and they'll like the problems or
- 14:46this snags that you can get into when you're going to real time
- 14:49and real time is very difficult and I was wondering what you see
- 14:54as some core challenges. When you're trying to make that
- 14:59transition to badge and real-time and what are use cases
- 15:03that lend themselves to real time.
- 15:06Because I imagine there's certain use cases, like, I
- 15:10believe. Vishnu we had on here, fairly
- 15:13recently, a guest who was saying, yeah, like real time
- 15:18isn't really a thing because they're in the healthcare
- 15:22sector. They don't need to necessarily
- 15:24have all that data right away and We be streaming and making
- 15:28predictions, right? But then there are other use
- 15:30cases like a recommender system. That it's much more interesting
- 15:34if it's real time, right? Yep.
- 15:35So two questions really, what are some challenges that you've
- 15:39seen with getting to real time and then what are some use cases
- 15:43that lend themselves to real time?
- 15:45Yeah. So the first one is 0, depends
- 15:47out requirements, right? So it's not necessarily put
- 15:50every model into real-time serving and but as mentioned
- 15:54that there's more and more real time, it's not because while
- 15:57this Thermo use case is demanding real time.
- 16:00It was because back in the days, there wasn't good infrastructure
- 16:03to support real time and people have to do badge and the do
- 16:06this. Periodically, upload of the
- 16:08predictions? Yes.
- 16:11So but now, if you think about the challenges of real-time,
- 16:14it's really about how to automate the entire lifecycle of
- 16:19your models in production and the especially around the data
- 16:23set of things. For example, is a how you make
- 16:25sure your model. Is doing a good job ratio.
- 16:30And the because if you put a motor in real time, that means
- 16:33you really care about the time sensitivity of your data, right?
- 16:38So you want your model to give most just predictions based on
- 16:42the most recent data and that also means your date, you think
- 16:45your data change over time, that means you have to monitor your
- 16:50model closely and to see if your model has degraded performance.
- 16:54And but it's your it is not just the model itself, right?
- 16:57So you can see, oh, there is a feature Drift, But maybe I'll
- 17:00model performance is fine, but maybe your model called just
- 17:03model quality, stay the same, but Downstream business becomes
- 17:07bad ratio. You want to monitor all of them
- 17:09together and then, well, if there is a just say adrift
- 17:14significant drift, you have to trigger some model, retraining,
- 17:18or your do this on. Updates of your model that make
- 17:21his hard. Because if you go real-time that
- 17:25means your data changed frequently.
- 17:28If your data changed frequently, that means your model.
- 17:31Also need to change frequently. One of the things I kind of want
- 17:34to ask here is I was taking a look at your LinkedIn profile
- 17:40because I was aggressively stocking you in preparation for
- 17:43this for this podcast. And one of the things that you
- 17:48wrote and And is about it's a nice little equation for a my
- 17:53laps. I'm going to read it here.
- 17:55And it's basically a devops Plus data ops+ model Ops equals ml
- 18:00Ops. And I was like, okay, that's an
- 18:03interesting summary right there. And I'm curious like, what led
- 18:07you to that formulation and why is that accurate?
- 18:13Yeah, this is because we saw you're ready.
- 18:16Emma. Ops is a team sport.
- 18:18This is observation from our customers and they have this
- 18:21data science teams, who creates the output models of training
- 18:26code ratio. There is this a production
- 18:29engineering team and who are not necessarily motion and Engineers
- 18:33because not every company has a much learning engineering team,
- 18:37so they are traditional, kind of a devops team and the apply this
- 18:41standard stuff. Our engineering practices, and
- 18:45there's always this data engineering team and supplying
- 18:48those training data, and the features and the to the data
- 18:51scientist ratio, you really well, those three teams need to
- 18:55collaborate while to get some models trip to production.
- 19:00And that's why I already called this data, Ops photo ops and the
- 19:03devops and putting them together and it's a mobs, but it just a
- 19:09betray definition and it just don't want to call.
- 19:12It. It's a Mattie Mattie team spot
- 19:15and you, you have to have different personas collaborating
- 19:18to make it all, Emma off successful.
- 19:21I feel like I could ask you about your data bricks
- 19:23experience and the past and your opinions until the end of time.
- 19:28But I really would love to talk a little bit more about some of
- 19:31the projects that you're working on.
- 19:32I know that you worked on ML lib and that you're also currently
- 19:35involved very much an ml flow, and let's start with ML flow,
- 19:38because we've actually had a couple different episodes about
- 19:41that recently. And I know Demetria, A couple
- 19:42questions he went out, he wants to ask there too can you tell us
- 19:45about your work and what you do to support ml flow right now?
- 19:49Yeah. Yeah.
- 19:51So I start looking at em off low, as you are, will be the
- 19:57next major feature to it and then while it's funny, I always
- 20:02tell people is there so many flow products.
- 20:05Also hear that from your previous podcast.
- 20:07It's there's tested flow. There is a meta flow Well, scoop
- 20:13flow Rachel and my flow, but if look at other airflow yet, if
- 20:18you look at other flow products, they have flow components yet,
- 20:22right? So but if you look at a more
- 20:24flow, it's a tracking and is, is really good, right?
- 20:28So model flavors and the model registry, but it's kind of
- 20:32lacking the Flow Part. Rachel.
- 20:35And yeah, this is why while we introduced this ml flow
- 20:39pipelines and 2ml flow is actually just as ad is flow
- 20:43part. But if this is just a just
- 20:46joking, it's now really because I'm a flow is lacking, the flow
- 20:49part and that's what. So it's really.
- 20:51We I'm working on this amount of flow pipelines and the based on
- 20:54some pinpoints. We heard from data breaks
- 20:58customers and especially around production izing machine
- 21:03learning model and What we called the production hand off?
- 21:07It's actually a mansion is really a collaboration between
- 21:10the datasets team and the production Ingenuity and once
- 21:14the data scientist figure out, oh this is a good way to train a
- 21:17model, Rachel, let's ship it to production and then the
- 21:21production team, look at the artifacts ratio the models, the
- 21:25code and say, hey well this is not really the production
- 21:28quality code and you cannot really ship a notebook to
- 21:32production. And that's also a good debate
- 21:34about Whether no books can be in production or not.
- 21:37We are as you can, imagine. We've heard quite a few
- 21:39conversations about that and slack.
- 21:41It is one of those debatable things.
- 21:44What I'm wondering though, is what have you seen that actually
- 21:47works. Yes, it's then while I look at
- 21:50this problem and see how we can solve the problem, just there to
- 21:56kind of a Solutions with heard from customers.
- 21:59And it's not really a solution. You just do what they do in
- 22:03practice the first Version is, they will have their production
- 22:08engineering team fully take over the project at the first time
- 22:13this trip to production. Let me State took over the
- 22:15notebook, they look at the code and they do the refactoring and
- 22:19they make it motorized and from now on their own.
- 22:24Ratio data science. Data centers are really
- 22:26responsible for the experimentation part.
- 22:29Once it's done once they gathered into a good model, they
- 22:33hand it off. And the problem is you will run
- 22:37into this machine learning engineering team to your days.
- 22:41The machine in engineering team is not the traditional
- 22:43production to software engineering team.
- 22:45So we become the bottleneck because this not only more and
- 22:49more kind of a machine learning project in production, they have
- 22:52limited capacity. You're early within our
- 22:56customers. I see they're usually more data
- 22:58scientist their machine and Engineers, right?
- 23:01So that means they cannot scale. Yeah and in this in this version
- 23:08and then another version I I saw is the data scientist kind of
- 23:14okay? Take the advice from the
- 23:15production engineering team and the do the code refactoring of
- 23:19their notebooks and make them regular motorized and using Some
- 23:23IDs, they are not familiar with and then finally they can ship
- 23:26it to production and there happened.
- 23:29But production models never is just stay there forever, right
- 23:32show. They get degraded performance
- 23:34over time and once there is some issues, the production Engineers
- 23:38come back to Data Center is here.
- 23:40Your mother has a problem and try to try to improve it and now
- 23:44wow, the data center look at. Should I go with the IDS and not
- 23:48familiar is also that go back to the notebook and where I produce
- 23:52the original model. And the ureter.
- 23:54This was The Notebook because that's the truth I feel nervous
- 23:57and then they do some iteration found out though, it was when
- 24:01wrongs, for example, some feature need updates and then
- 24:05they have to refactor this notebook again into motorized
- 24:09called and she paid to production again.
- 24:12So I heard complaints in this version is really the
- 24:15productivity on the data. Center site is really bad and
- 24:19the people complain about even just modify a single line of
- 24:23code. And I have to spend a day or two
- 24:25days, it's ratio to get into the production.
- 24:28So that's the initial. The biggest pinpoint with heard
- 24:33from customers and Emma flow. Pipelines is a punitive approach
- 24:38to solve that problem and the solution here is really we try
- 24:44to design workflow and like the data scientists to develop
- 24:49models and the in this opinionated workflow. is that
- 24:54whenever they find out the good model and we promise while this
- 24:59project is ready to ship to production, they don't need a
- 25:02refactoring and on the other production engineer side they
- 25:07can just say ignore the acceleration notebooks and from
- 25:11data centers, the only book characters and motorized code
- 25:14and show I try to see Design This opinionated workflow to
- 25:18combine the best of notebooks and ID is and in F02 to simplify
- 25:25this collaboration, and the standardized on this production
- 25:30hand of. So that's the the first pin
- 25:35points. I'm a flop.
- 25:37Has tried to solve is really required production.
- 25:40Handoff in are a misogynist and ever, and I have a product, a
- 25:44teachable hub, and if you are into a Hobson's, want to hear
- 25:47more than just buzz words. Subscribe to the envelopes
- 25:50Community podcast and listen to the best practitioners in the
- 25:53field. Sharing their wisdom is
- 25:56something that, of course, we hear all the time in the
- 26:00community. It is something that is a story
- 26:03that has been played over and over and probably a nightmare
- 26:07for some, and I feel like there are a few companies that are
- 26:11trying to attack it that way, they're really recognizing that
- 26:17data scientists like that exploratory phase, and they like
- 26:21to use their jupyter notebooks, but When you have the hand off,
- 26:26you cannot bring that jupyter notebook into production because
- 26:30it's just not, it's not nice. And I remember when about a
- 26:34month ago or a month and a half ago, I was in Toronto for the mo
- 26:38UPS world's conference, and I was talking to a data scientist
- 26:41and he was saying, oh, my ideal scenario is just to be able to
- 26:46have my notebook and throw it over the fence.
- 26:49And then I don't want to know anything about it.
- 26:51I don't want to know, I just want to know if If my model is
- 26:55producing, what it said, it like the accuracy of the model and
- 26:59that's it. And I was like, but what, like,
- 27:02what are you gonna do? Like, how are the machine
- 27:05learning Engineers, or the people who are production, izing
- 27:07it? How are they supposed to
- 27:09understand this model? He was, and he was like, well,
- 27:14they have the jupyter notebook. So, it should be fine.
- 27:19That's where I, yeah, you need to spend eternity.
- 27:22Yeah. Yeah.
- 27:23You To have that. So it's really it's cool that
- 27:26you all are doing it this way and I like to see that and I
- 27:29like to see the trend and the more companies are trying to
- 27:34tackle this problem, right? And more teams, see the need for
- 27:40it because of this like it's almost this inflexibility where
- 27:45data scientists don't want to not use jupyter notebooks but
- 27:48machine learning Engineers. Don't want to use jupyter
- 27:50notebooks. And so you have to have a little
- 27:53bit of both. 'The, I want to get into this
- 27:54next section, which I know you've probably got a ton to
- 27:58talk about while building ml flow while building.
- 28:02Just while working at data bricks and going from spark,
- 28:06like, 00 to spark. You know what it is now.
- 28:11Do you have War Stories or as we're trying to Rebrand them and
- 28:16they'll oops stories. What can you tell us about?
- 28:20What are some huge ones that you have?
- 28:24Mmm. Yeah, let me let me think.
- 28:30Yeah, I think it's We built many good features ratio is a
- 28:38remember a couple years ago. It's there are teams building
- 28:42training features and building tracking features and the
- 28:44building this hosted hosted products.
- 28:49But I did some experiment is basically I say, just try to be
- 28:55a user and now I want to get a model into production and then
- 28:59let's see how hard it is, right show.
- 29:02And I try to wear this step, I'm out engineer hat, right?
- 29:07So, try to think about how I want to put a production of
- 29:11security. And as my top priority rather
- 29:14than just as a Data Center, and data, scientists have just a
- 29:17productivity. So then I try to see, oh, wow,
- 29:22where is the isolation story, right?
- 29:25Show how I can make my production environment secure.
- 29:28And that means I have to lock the data centers out, right?
- 29:33So don't give them. Right access.
- 29:36But after a lock them out, is how can they get models into
- 29:43into this production, right? So do they just have through the
- 29:45model artifact over the fence? And at that time is I only have
- 29:49the model artifact, I cannot relate.
- 29:51I don't know how to automatically update this model
- 29:54ratio, whenever this model has an issue, I have to always go
- 29:57back to the data centers. They say hey could you throw a
- 30:00second version over Rachel? And then while I Realizing even
- 30:05we do those individual components, which is great, but
- 30:09things don't connect together, right?
- 30:10So, it says, there are so many gaps in the in between and the
- 30:14we have to also just as a build features and to simplifies those
- 30:21those connections as well, right?
- 30:23So at that time I do feel though, it's a before I did this
- 30:27experiment. I feel what our product features
- 30:29are good ratio as that's to improving, but after I did this,
- 30:34And they said, oh, there's so many things to do and we should
- 30:37start it now. So we did the internal kind of
- 30:42pivot have team and the true just have focused on I'm Ops.
- 30:46So after this experiment. Yeah, it's always, it's always
- 30:50has to do something with access of some sort or some kind of,
- 30:54you know, compliance thing where you kind of learn a little bit
- 30:57about, you know, o is the system structure set up, right?
- 31:02Or are we thinking about building this?
- 31:04The right way, I actually have a question with respect to how you
- 31:09design ml flow in an opinionated or muffled pipelines.
- 31:13And opinionated way as you said, right?
- 31:15And I think what I want to hone into here is like When we say
- 31:21opinionated, it usually means that there's a disagreement,
- 31:25right? There's one people some side
- 31:26that wants to do one thing, one way and sometimes someone that
- 31:28wants to get another right and I'm kind of curious like apart
- 31:31from the jupyter notebooks question.
- 31:33Can you give us another example where you guys had to decide?
- 31:36Look, there's one way that we believe ml engineering should be
- 31:40done in this context with respect to operationalizing and
- 31:42there's a totally different way to do it, but we decide to go
- 31:45come by. Yes.
- 31:47Oh wow. When I see this problem, Is
- 31:50start looking for existing Solutions because I don't
- 31:54believe that I'm the first one to solve this problem, Rachel.
- 31:57And then I start looking at tfx meta flow and those products
- 32:02exist, many years ago, right? So especially tf-x is from
- 32:05Google, is kind of bulletproof ratio for large-scale
- 32:10production, use cases. And then I want to their
- 32:13tutorial. It's a look at this.
- 32:17Well, if I'm wearing the data centers hat, Is this is not
- 32:20really something I want to use and because I have to construct
- 32:25the dag myself, right? So a lot of boilerplate code if
- 32:29you look at their their tutorial and then I try to try to
- 32:34understand why. So why while just that this has
- 32:38scientists have to do this. Oh, why does the product was
- 32:41designed this way? And my answer is this is my
- 32:46guest is tf-x was designed inside.
- 32:48Google. And to solve Google scale of
- 32:51problems ratio. They're targeting users are
- 32:54Google's ml Engineers or we call full stack data centers and who
- 32:58can do things and to it who follow the software engineering
- 33:01practices. And then while tf-x makes sense,
- 33:05ratio is a flexible tool, you can compose and the differently
- 33:09and it can skill. But for the data scientist, we
- 33:14see among our customers, and I don't feel that's the product
- 33:18design for them. And similarly might have flow.
- 33:21It's very similar is meta flow. You can easily construct the
- 33:25steps and then construct the deck.
- 33:27And, but at the end, is, you are asking a data scientist to
- 33:33construct the entire pipeline ratio.
- 33:36But we'll look at this and I look at Solutions in other space
- 33:41and which one is the most interesting.
- 33:43One is the the build tools. imagine that maybe many, many
- 33:47years ago, how people compile software project, they may have
- 33:51some best scripts ratio, which has GCC it, and then just you
- 33:56run the best scripts, it will compile it, and the from
- 34:00beginning and then give you the battery out and then it came
- 34:05make Ratio. Because best groups is really
- 34:08kind of a hard and everyone has their own best scripts it.
- 34:11When you do exchange, they need to look at the best script to
- 34:14understand what's inside and what's the logic but the make
- 34:17standardized is you have the Target and you have see how you
- 34:22produce that Target ratio and you can use make and then you
- 34:25can use making style to install the software.
- 34:29And is that good enough? It's a main case, something like
- 34:33tf-x and Method flow ratio. You have those You can't Define
- 34:37this the the dependencies and then it will help you to execute
- 34:42efficiently. I look at, there's a stack
- 34:45Overflow question about. So why just know Java developers
- 34:49use make? And the answer is it because
- 34:54there is an Apache Maven ratio. What Maven does is mavin.
- 34:58Standardized are a couple of things.
- 35:01It's one is the pom file ratio, the metadata about your projects
- 35:06and it's portable exchangeable. Everyone understand this and you
- 35:09can have dependencies declared inside this pom file and then it
- 35:14has this standard build life cycle.
- 35:18You have compiled, you have test, you have package, you have
- 35:21published. Rachel.
- 35:24If everyone follows it they don't really need to go to the
- 35:27lower level make ratio and then it has this the standards
- 35:31directory layout, right show cells means cells test where you
- 35:36put your documentation and it's all standardized.
- 35:40If you follow this opinionated way and you can get your project
- 35:45build easily with maven. and then I'm thinking about how this
- 35:52maps to machine learning, Rachel, is there any to that's
- 35:57the best part of the machine learning Bill to and I don't see
- 36:02any, I don't see any so then I look at the reason is maybe
- 36:06because machine learning problems are unique are all
- 36:10unique and you cannot really have a single build life cycle
- 36:13to Define to capture all the machine learning projects.
- 36:16But then I think it's adding or unique is it just says say there
- 36:20is an 80/20 rule applied here racial make it K % of the
- 36:25problems are just a simple problems.
- 36:28There are classification regression forecasting, are they
- 36:32fall naturally? Formed clusters ratio.
- 36:36If there are clusters, can we apply a standard solution to
- 36:41solve them? And then we can keep the data
- 36:45scientist and in their comfortable ratio.
- 36:48Think about feature engineering, and think about the modeling and
- 36:51the reasoning about the output, the prediction accuracy.
- 36:54Of the model. And but let me take care of the
- 36:58rest, right? So maybe we can define those
- 37:01about life cycle for typical machine learning problem, test
- 37:08ratio in this emotionally, I'm a flow pipeline will now release.
- 37:12The first, predefined, we call predefined pipeline templates,
- 37:16and the first one is for regression, that means if you
- 37:21have a simple regression problem, you can just say it,
- 37:24Over this template. And we already have a lot of
- 37:28things free implemented for you. For example, how to do the
- 37:31splits, is it always a random split and is it always good?
- 37:36It's not right. So if you have a new data coming
- 37:39in and you always turn it over the data over the past one
- 37:44month, You don't always want to do a random speeds because now
- 37:49you will get the training data from the previous batch becoming
- 37:53the test data in the current batch, right?
- 37:55So you want to do a split based on the content for your records.
- 37:59And but do you want data scientists to implement this
- 38:02part that they don't, they don't really care, right?
- 38:05So we can just have this built-in as a split step and the
- 38:09user, don't need to write any code ratio, then they can fuck
- 38:11himself. What features has formations.
- 38:14They want to do what estimator is about to use.
- 38:17Or even if they don't care about the estimators, they want to
- 38:20use, they can just give it to all technical wrestling
- 38:23Alzheimer automatically, shouldn't they just provide,
- 38:25hey, well, this is my budget for different environments ratio
- 38:30local development. I want a small budget able to
- 38:32quickly test this into it but when I get into staging
- 38:35production, I want to increase my budget and the to get the
- 38:39better deterrent model and then we can offer Because we
- 38:44predefined this tag, we know what's happening.
- 38:46At even individual steps, we can offer those say, we call stamp
- 38:50cards, right? So, we'll assume that the user
- 38:52user notebook to execute those steps.
- 38:55And if they do, for example, if they finish this, please step,
- 38:59we're going to show this that distribution comparison between
- 39:03the training validation test and make sure well, you don't have
- 39:07huge outliers and that will rule, you know, just as I say
- 39:12magic, Mm. Other evaluation in validation
- 39:14test ratio after you run trillion and we're going to show
- 39:19you a model Matrix and then we're also going to show for
- 39:22example, what's the worst examples in this transaction?
- 39:27And you can see them and you can see oh, what's missing.
- 39:31You're modeling ratio. After you do evaluate, we're
- 39:34going to show the featuring Partners automatically for you
- 39:38and so basically their money things are barter plate code.
- 39:42Yes. And but they're useful.
- 39:45I don't want data scientist to rewrite them for all their
- 39:49projects and we have them built in and we try to add more best
- 39:52practices and by the it. So that's opinionated.
- 39:56Yes, Rachel that's very opinionated.
- 39:59I am thrilled that you took us through that because I think We
- 40:05have on periodically open source contributors maintainers
- 40:10creators of projects but this is one of the few times where I
- 40:13really feel like I got a very deep understanding of how you
- 40:16thought about not just the solution to the problem but how
- 40:20you even understood that? This was a problem, right?
- 40:23Going back to the tf-x comparison thinking about the
- 40:26make File versus project Maven in a different coding context
- 40:31entirely and what that means for machine learning engineering.
- 40:35Thank you so much for sharing that.
- 40:37What I want to do with our remaining time here very
- 40:41quickly, this kind of get a sense of, you know, I want to go
- 40:44back to where you started this conversation.
- 40:46You mentioned that the data bricks Founders that you
- 40:50interviewed with had a really Clear Vision of the future and
- 40:54you're sitting here as a engineer that's been helping the
- 40:59machine learning ecosystem, build for the last eight years.
- 41:01I want understand like what's your vision for the future,
- 41:03right? Like 10 years from now with
- 41:06where we're at? No, with the adoption of cloud
- 41:08computing. This is the real time.
- 41:10All this is, where are we as data scientist?
- 41:12And machine learning integers where the time elapsed Yet.
- 41:16So, I would say I'm not laughs will fit a way to data
- 41:22scientist. It's, it's like, like a
- 41:24mentioned, is that how you compute me and the virus, our
- 41:29mapreduce, right? So they used to learn, and then,
- 41:32with the new kind of a product coming out, they don't have to
- 41:35learn. So with I think it's a weight
- 41:39with discuss a lot about whether data, scientists can own
- 41:43entrance. That's from development to
- 41:45Blackstone and to meet my preference, is that future will
- 41:50never come. Is it will be the software
- 41:53Engineers omission and Engineers owning production ratio.
- 41:56But how, how much we can do is to enable more data, to just
- 42:02enable data scientists, to do, more ratio rather than yourself
- 42:06owning the entire production is contagious, allowed them to own
- 42:10the Modal iterations, right show.
- 42:13And can they just simply push your code change and get
- 42:16everything just as a report back to them and the can we get
- 42:21automatically model deployment and the through this offline and
- 42:25online, evaluation Rachel, I think that's the future is data
- 42:30sent his don't need to worry about what's inside the
- 42:33production. Because the production system,
- 42:35the MRP system was already provides all the guardrails and
- 42:41the Help them to ship model into production.
- 42:46However, I think is in order to get that future in, its I really
- 42:51think it's data breaks. That's why while and thinking
- 42:54about is the red platform to build that future.
- 42:58Because, as I mentioned, is Emma, Ops is really the devops
- 43:02mobile apps and data Ops. You need a platform that can
- 43:05handle all of them. And for example, if you have a
- 43:09modal deployed to production ratio and the production system,
- 43:13if you don't want to bother page, S&S Whenever there is some
- 43:16issue happening, right? So it won't the production
- 43:19system needs to know how this model performs and how do we
- 43:24know that it's, you need the labels, at least you need the
- 43:29labels, right? So the labels may arrive late
- 43:31than the the request ratio. That means you need to add some
- 43:36data engine, to join the labels. And with the, with the original
- 43:41feature and predictions and to monitor your model quality,
- 43:45Leti. And then you also need to know
- 43:48what's the downstream business impact ratio elect you have a
- 43:52city, our model, but you actually care about the the
- 43:56final conversion rate ratio damage, your system also need to
- 44:00know the conversion rate, that means your ml system need to
- 44:03know the conversion rate in order to keep your model
- 44:07up-to-date. Yeah, that would require modal
- 44:11machine learning and data together.
- 44:13Yep, to get Sky things. Calling.
- 44:16So yeah, I think that's how I think about our future is
- 44:19basically product become very simple or em, Ops becomes much,
- 44:23much simpler and data centers, can they don't need to learn
- 44:28extra tools, right? So they just say stay with
- 44:33within their expertise and the focusing on the modeling and how
- 44:37to, how to use machine learning to power the business.
- 44:42So I think that's the future we're building.
- 44:45The fun part of the data scientists.
- 44:47Get to do the fun part. Yes.
- 44:49And what they enjoy doing and then everybody just in an ideal
- 44:54world, everybody just gets to and do what they enjoy doing and
- 44:57then they leave the other parts for the other people.
- 45:00So, do you remember what we finish?
- 45:03Yeah, exactly. I want to know what is a piece
- 45:06of technology that you're bullish on.
- 45:08That would surprise people. That would surprise people.
- 45:14I think, what, how do we Define surprise?
- 45:17It's a urinate. My observation is if I have a
- 45:21technology, right? Show that able people to live up
- 45:27what people can do, right? So, for example, if you can able
- 45:32citizen data centers to do production engine machine
- 45:35learning, so that would be a big surprise because it just says a
- 45:39make the Product reachable to money ratio if you can make data
- 45:45analyst to do the engineering ratio and that's a big surprise.
- 45:51So but we hope well with the to Cersei the, our product of the
- 45:57future version of product. We do, we can enable citizen
- 46:00data centers. A lot of people who are new to
- 46:03machine learning and the who don't even know machine learning
- 46:06can can get models into production, So that's that's
- 46:12that would be a big surprise to everyone and but that's also a
- 46:16challenge. It's, we had a product similar
- 46:20edges aren't along this direction.
- 46:22It's a last year, I mainly work on this all Time Out product.
- 46:25The card data works with ML and the key feature we have is
- 46:30rather than just a return opaque modal and the from this
- 46:36hypervisor tuning, back to the users will actually return.
- 46:40A coat to reproduce that model training ratio because we
- 46:45believe while it's not always, the ultimate can do the best for
- 46:50you. Rachel, sometimes you have to
- 46:52invite your own kind of domain knowledge of the business
- 46:56problem and to further improve this model and get it into
- 46:59production. So yeah, they're in this way
- 47:03while we do have customers and who are data engineers and the
- 47:07who use all time L and then while we With a few
- 47:11modifications in the generated code and then they can already
- 47:15get really good quality. Production models.
- 47:21So that's along the way. But I don't think we are there
- 47:23yet. There's there's too many, many
- 47:25things to do. Nice.
- 47:29I meant surprise people as in if someone were to ask you about a
- 47:34piece of technology that you're bullish on and then you said, oh
- 47:39I'm really interested in home automation.
- 47:42They would go. What?
- 47:43That is crazy. That's a surprise.
- 47:44I would have never guessed that you are interested in home
- 47:47automation. I think data you betting on what
- 47:51you're doing at data bricks is probably an easy one that might
- 47:54not surprise people, so, That you have any others that are
- 48:00surprising like you're like, oh well this new very very small
- 48:05project that is open sourced out of Australia is very exciting to
- 48:10me or something like that. Mmm.
- 48:14It Kearney just that, nothing comes out of my mind.
- 48:19Okay, so that's right. When you read books, what do you
- 48:24read? What's the last book, you read?
- 48:28The last one is really this card.
- 48:30A good strategy by strategy book is recommended by our CEO is.
- 48:35It's about how we think about how we Define the strategy and
- 48:40thinking about our strengths and weaknesses.
- 48:43Rachel, how you get a good diagnosis of the market and then
- 48:49see how you position your product.
- 48:51So that that was the last book. I read, that's awesome.
- 48:56That sounds like a really cool book.
- 48:57I want to Into that right man. We're going to wrap it up here.
- 49:01Thank you for coming on. It has been so incredible to get
- 49:04to chat with you. I mean this has been a long time
- 49:06coming. I know that we've wanted to do
- 49:08this for a while. I've been a fan of your work and
- 49:10everything that you've been doing it day or brick.
- 49:12So it's almost a little bit like a dream to be able to have you
- 49:16here, and I'm very thankful that you've given us the time.
- 49:20Yeah, thank you for inviting me.