Latest / Agentic Conversations (formally mlops.community) / Maturing Machine Learning in Enterprise // Kyle Gallatin // MLOps Coffee Sessions #43
Transcript
- 0:00The. Today we've got an excellent
- 0:19conversation coming up. Kyle is working on the machine
- 0:22learning platform team at Etsy. He's a software engineer there.
- 0:26We were just talking before we hit record about how he's been
- 0:29burying himself in coding so much that he can't even play his
- 0:34guitar. He has not found any time to
- 0:36play the guitar in the last couple years, but.
- 0:39That is good for us because we don't want to talk about guitar
- 0:42today. We want to talk about ML OPS and
- 0:44everything under the sun when it comes to ML OPS.
- 0:48And I'm excited to get into how you see the current state of
- 0:53what is happening in this space. Kyle, I think it would be
- 0:57interesting for us to start with your path.
- 1:02From being a data analyst to a data scientist to an ML engineer
- 1:06and then a platform software engineer, What did that look
- 1:10like? And what kind of hurdles did you
- 1:13have to overcome as you jumped from one to the next?
- 1:17Yeah, definitely. I would say it's a somewhat
- 1:20nontraditional path. I'd always like to say I've said
- 1:23a bunch of times that I'd tripped and fell into the data
- 1:25science space. So I was actually finishing up
- 1:28my masters in molecular and cellular biology when I got this
- 1:33random job as a data analyst. And my job there was to teach
- 1:36myself like R and Python. So analyze the data that we had
- 1:40at this biotechnology company. After generating some interest
- 1:44in the data space there, I ended up kind of like fostering a love
- 1:48for data and data science. I was doing some unsupervised
- 1:50machine learning. Got super interested in that,
- 1:54went to a boot camp here in New York City, so I did the whole
- 1:58boot camp route. Then after some odd jobs ended
- 2:00up as a data scientist and then machine learning engineer at
- 2:03Pfizer. So kind of from like like more
- 2:07and more like analytical stuff and statistical stuff, slowly
- 2:11more towards the machine learning driven path.
- 2:13And now I'm, you know, purely basically a software engineer on
- 2:16the infrastructure side, so very back end.
- 2:20There's some. Funny stuff happening right now
- 2:22in the MLF community. Slack, which is a group of
- 2:25people that decided data scientists need to or they want
- 2:32to share horror stories of what they've had with data
- 2:36scientists. When it comes to the code that
- 2:40data scientists write, I want to get your take on how hard was it
- 2:44or what were some things that helped you along the way when
- 2:48you were learning to go from that.
- 2:50Data Analyst to an actual full-fledged engineer, yeah,
- 2:55that's that's a great question because there is a huge
- 2:58difference in the in the required skill set and the
- 3:00expected quality of those, those skill sets.
- 3:03Obviously I, you know, didn't come out of school with a
- 3:05software engineering degree and feel like I really lacked some
- 3:08of those like fundamental like CS basics just from, you know,
- 3:12data structures and algorithms that aren't as important.
- 3:16I mean like maybe not even as important in a real software
- 3:18engineering job, but like really build the base for like all of
- 3:22the code that you learn beyond there.
- 3:25And so it's kind of been funny like learning like what you
- 3:27would call I guess more advanced data science code, but then
- 3:31having to go back to like CS101 on my own and in my own time to
- 3:35like also build that basis on the side.
- 3:39I've actually had a very similar experience.
- 3:42So I I studied bioengineering in my undergrad and and and masters
- 3:45and you know, I think sometimes I'm like man, if only I had an
- 3:48undergrad CS degree. Not that I would, you know,
- 3:51change what I studied. But if I could just, like, tack
- 3:53that on really easily, it would be it would make my life so, so,
- 3:57so much easier. Yeah, no, tell me about it.
- 4:00It's like, I'm I'm very happy with the path I took, but I just
- 4:03always wish I'm like, wow, I wish I'd just taken more
- 4:05classes, had more of that knowledge, or at least, you
- 4:07know, paid attention the one time I took a CS class.
- 4:10Yeah, exactly. Like I just want to be the just
- 4:12want the freshman sophomore classes.
- 4:14That's all I need. Yeah, exactly, exactly.
- 4:16That's what I'm missing. Well, in in this production code
- 4:23channel that we have. There was a pretty awesome
- 4:26question that came up and I want to hear your take on this Kyle.
- 4:30It's asking about like if you were to build a SAS app right
- 4:35now with some heavy ML services from scratch, what languages and
- 4:42frameworks and libraries would you use for the back end if you
- 4:45had? You weren't under the gun for
- 4:48time. You had your abilities that
- 4:51your. Currently using and you could
- 4:54really engineer this stuff the way that you wanted.
- 4:58How would you go about doing that?
- 5:01That's that's a great question. I guess it'll I'm I'm sure I'll
- 5:04give different answers to at different points in my career.
- 5:07Like, I mean for like a software for just like a language.
- 5:11I mean, I might just have to go with Python, just cuz it's so
- 5:13ubiquitous. It's easy to use.
- 5:16I can write it quickly, I can test it quickly, like easy to
- 5:18write for. I'm also like writing a lot of
- 5:21Scala lately and it's awesome, you know, high performance, but
- 5:24it's much more difficult comparatively to like, do the
- 5:27things that I want to do, just because Python is so much
- 5:30support for so many different things, especially within the
- 5:33machine learning space. But like, yeah, I mean at the
- 5:37end, at the end of the day, I feel like I'd end up writing
- 5:39more YAML than than anything else, so you know, it all be all
- 5:45be templated. Yeah the the YAML thing is
- 5:50interesting because you know I think we both, you know I I work
- 5:54in ML infrastructure as well and you know it's like sometimes I'm
- 5:58like it's just it's so simple it's so templated it feels like
- 6:03you know I'm just doing like almost like stenography work
- 6:05where I'm filling out a form. But there's there's there's so
- 6:08much that is based on that it it kind of blew my mind recently
- 6:11like when I was really diving into some like CI concepts and
- 6:14trying to figure out like OK, how do I make this whole like CI
- 6:16pipeline process scalable for sort of like machine learning
- 6:19repost etc. I was like man this YAML stuff
- 6:21it's just it's what I could do all day but it's so it's so I
- 6:25don't know replicable and and and and crucial to the workflows
- 6:28nowadays. Yeah it's it is also everywhere
- 6:31I I mean like I think it's like the the Python of markup
- 6:34languages right. You know it's like simple, it's
- 6:35easy to read like just like colons and and nothing else.
- 6:39No brackets or anything like that but it's kind of the yeah
- 6:44but like kind of every tool is is is reliant on it and and it's
- 6:49cool. I don't know I like it.
- 6:50I think it's easy to read and use and it's like a really nice
- 6:52introduction to a ton of different concepts where where
- 6:56templating is key. So I would like to ask you.
- 7:00What are your maybe top two or three tips in terms of working
- 7:05with sort of like YAML in general YAML files and like the
- 7:10explosion that can happen that you would offer to beginners,
- 7:13especially data scientists who are saying OK, I want to get
- 7:16into this ML OPS Jitsu. This seems important.
- 7:19How should I do it? Yeah, for that, I guess it's a
- 7:23good question. I mean like find like a
- 7:27technology maybe that you're comfortable with.
- 7:28I think like I started with like docker compose, you know like
- 7:32just one step above like docker files like pretty simple but you
- 7:35can do a lot with them and there's like a really easy
- 7:38transition from there to like full scale and Kubernetes.
- 7:42I think the only like real second big tip that I have would
- 7:45be just like, you know, no need to go light on the the plugins
- 7:49for your IDE. I have like a like a rainbow
- 7:52indent plugin for VS Code that's perfect for YAML.
- 7:54You know, you can just like see like where where things are are
- 7:57indented out to and and just let let the ID do the work.
- 8:01You know you don't want to like be trying to apply something and
- 8:04constantly getting like like errors because it's not in the
- 8:08right format or not the right spacing etcetera.
- 8:10It's super frustrating. Yeah, that.
- 8:14I actually think tips like that are underrated.
- 8:16It's it's a great tip because. I used to say this taking it's
- 8:20like taking hard classes and in in college is way overrated,
- 8:23like nobody ever like no employers are going to be like,
- 8:25hey, you know, Vishnu, you took the hardest class for math and
- 8:28your sophomore year we're going to give you, you know, a raise.
- 8:30Nobody ever does that, right. It's the same way with coding,
- 8:32right? Nobody was going to say, wow,
- 8:35you did it without any plugins in your VS Code environment.
- 8:37Like you were really good at this.
- 8:39And I think for beginners in particular, that's a hard bridge
- 8:42to cross, right? Because you know people in this
- 8:45field, in this data science field, you know all bright,
- 8:47ambitious, talented people who want to learn how to do things
- 8:51right. And I think Kyle and I are here
- 8:53to tell you that doesn't mean you can't do them faster and use
- 8:56tools to do it. Ain't no shame in it.
- 8:58No, not at all. Like, please, yeah, please take
- 9:00the easy way like don't you know, don't try and do
- 9:04everything and in them or something like that.
- 9:06It you have all these tools available to you, and there's
- 9:08definitely no there's no extra points for for doing it that
- 9:12way, even if it you know might save you once or twice in some
- 9:14some random scenarios. Well Speaking of random tools,
- 9:18do you have any others that you really like or plugins or
- 9:21anything that you can share with us?
- 9:24Let me see, let me like what's what's what's up my Visual
- 9:27Studio Code Right now I'm I'm a big Visual Studio Code fan.
- 9:32I I definitely use that for most everything.
- 9:33Kind of just like install plugins as I go.
- 9:36Big fan of the remote SSH plugin.
- 9:38Do a lot of remote editing. A lot of the basic ones, you
- 9:42know, they'll just pop up and be suggested as you're editing.
- 9:44And I'm like, I'm going to try this.
- 9:46This is great. I really love those.
- 9:51Well, let's talk for a minute about this idea that you were
- 9:58mentioning before to me of like where you think the future of
- 10:03machine learning, data science and even machine learning
- 10:07platforms is going. And how you're looking at the
- 10:11bigger picture right now in the ecosystem of machine learning,
- 10:16data science, ML OPS and that whole, that whole climate, the
- 10:21current climate that we're in, where do you see it moving
- 10:25forward? Yeah, it's kind of funny like I
- 10:29guess because I've seen it through a couple different
- 10:31phases. So we started off in kind of
- 10:33data science was the Super immature space and that was, it
- 10:36was just like a data science team, but there was no concept
- 10:39of like at least formerly like ML OPS and and anything beyond
- 10:43that. And like the software
- 10:44engineering side of things, data scientists, I don't know felt
- 10:47like kind of isolated, siloed and it was more so a lot of
- 10:51proof of concept projects and things that were been really
- 10:55difficult to get off the ground. And then we kind of came to
- 10:57this, you know, ML OPS space was like, OK, lots of these aren't
- 11:02making into production. Why aren't they?
- 11:04It's because we don't have the operational tools and processes
- 11:07to get them there. We can't deploy this into
- 11:10production easily or just the data science skill set is
- 11:13inconducive to getting them there.
- 11:16Software engineers obviously know how to do this, but there's
- 11:18a disconnect between the two. That handoff was was really,
- 11:21really tough because data scientists and software
- 11:22engineers just weren't speaking the same language.
- 11:25And now I think we're kind of, you know we're kind of there.
- 11:27A lot of team like ML OPS is again like it's ubiquitous, it's
- 11:32everywhere, it's a buzzword and it's it's awesome to see it like
- 11:36exploding so much in terms of from open source support.
- 11:39So just the enterprise platform offerings.
- 11:43But even then I think there's like you know kind of a need for
- 11:45the the step above that, which I would say is something like
- 11:47governance, right, where you actually manage your ML OPS and
- 11:51you have, I'll focus on some of the more important non
- 11:55functional requirements. Something like observability,
- 11:58right, which is like, you know, like a software term, um, it's
- 12:02not something that like like inherently I think has been
- 12:05phrased a lot in like ML OPS, but like it's something that is
- 12:08observability and visibility I think are some of the most
- 12:11important things that you can have.
- 12:13And that is kind of that next phase of of governance, how you
- 12:16manage you know like control all of those operations and
- 12:20processes that you have and like how much visibility you have
- 12:23over them? Yeah, I I agree first and
- 12:28foremost with your overall description of the maturity and
- 12:30the process. In the entire space I think and
- 12:34I think what you landed on that I think is really interesting is
- 12:38I realize now that a lot of machine learning platforms and
- 12:41and you know a lot of this ML OPS and and and overall platform
- 12:45engineering work has kind of come out of a frustration.
- 12:49You know, it's really frustration driven in terms of
- 12:52that handoff not necessarily working in terms of, you know,
- 12:56groups speaking different languages, having different
- 12:58objectives and enough people kind of saying man.
- 13:01This sucks, you know, And I think that's the iteration of
- 13:04this whole space that we're in right now where a lot of people
- 13:07are saying, okay, this doesn't have to suck.
- 13:09And going forward, the way we're going to see it is it's going
- 13:13to, it's going to move kind of from an efficiency to a
- 13:15capability, right. I think that is kind of where I
- 13:19think those things like observability, visibility, you
- 13:23know being able to like scale your whole your whole stack
- 13:28around your model. Easily the same way that you do
- 13:31like infrastructure as code. In another regard, you know
- 13:34you're going to have your model as code and I think that's
- 13:36already happening, right, with with Open AI basically just
- 13:38exposing GPT 3 as an API and saying, yeah, you know, there's
- 13:42models behind this fence and you know, come use it.
- 13:45I think more companies are going to be able to do things like
- 13:47that. So you know, I think the
- 13:51interesting part here for me and I'm curious to get your thoughts
- 13:54is I think that part of. Visibility and really
- 13:59understanding the way things work with respect to the model
- 14:03and you know data drift and and how the question of robustness,
- 14:07that's where I find that maybe the research isn't quite there
- 14:11yet. You know if it's like we're kind
- 14:13of waiting to see, you know how to do that the right way what
- 14:17what what has been your experience with that question.
- 14:20Do you think there's maybe some heuristics we can use or or do
- 14:22you think we still have a little bit further to go?
- 14:25I think I agree that we have a little bit further to go.
- 14:27I think it's kind of funny because I mean I'm sure it's
- 14:30been said on this podcast even a bunch of times, but the
- 14:33technology exists somewhere. It's kind of like how and when
- 14:38we apply it. I think a lot of the decisions
- 14:39that I've had to make in a day-to-day aren't like I need to
- 14:43like build an entirely new technology.
- 14:45It's like okay. What is the best way to apply
- 14:48this for a machine learning specific operation?
- 14:52A lot of things in the machine learning space do map directly
- 14:54from software, one to one I think at least.
- 14:56And there's a lot of parallels and things that we need to say,
- 15:00hey, this is working in software, we should definitely
- 15:02be doing this in machine learning, which is also
- 15:04software. But there's also some things you
- 15:06know, like some considerations. Maybe it's data drift, model
- 15:09drift, Maybe it's like the inherent nature of trying to
- 15:12serve, you know, a stateless model at scale or something like
- 15:16that. But I think that there's some
- 15:19considerations there that aren't really fully flushed out and no
- 15:22one has had the time or maybe even the inclination to kind of
- 15:25go through, like you said and research like, OK, these are the
- 15:28most efficient ways to, you know, monitor for data drift or
- 15:33model drift or something like that.
- 15:35And we don't fully know what the best way to go about that is.
- 15:38Once you get to that level, It is kind of territory.
- 15:41Even if you could feasibly implement whatever you want, you
- 15:44don't know what the best thing might be to implement for your
- 15:47use case. Yeah, I see what you're saying
- 15:51there and I think this is where I'm hopeful of all of our our
- 15:55awesome vendors that are in the ML OPS community, slack and that
- 15:58are helping us figure this out together.
- 16:00I think. I do think that there are some
- 16:02interesting work that they're doing and you know, when you
- 16:04have these sort of, you know, it's kind of like.
- 16:07You have your, your, your, your deep companies and then you have
- 16:09your broad companies, right. And like when you have your deep
- 16:12companies like you know, an Etsy or a Pfizer or you know, Tester
- 16:16act, which is which is my company or any other company,
- 16:18you know, we're trying to figure out in a particular vertical.
- 16:20But then when you have these broad companies, you know, like
- 16:23Fiddler who came on on our, you know, our podcast recently,
- 16:26they're figuring out across a whole bunch of different
- 16:28verticals and they're kind of saying, OK, this is what works
- 16:30everywhere. This is what aspect of our
- 16:32monitoring and observability and that I think hopefully that'll
- 16:34trickle out. I guess one of the questions I.
- 16:38Go ahead. Do you think it can be that?
- 16:42Because it feels to me like there's so many different use
- 16:44cases and there is no standardization right now and
- 16:50it's really hard to say like this is what works in
- 16:55everywhere, right? Like, do you think that will
- 16:58ever be a thing or is that something that?
- 17:02It's going to have to be like specialized and customized or
- 17:05bespoken every time you want to implement it.
- 17:10I would, I would kick it to Kyle here and say you've been in,
- 17:13you've been in consumer, you've been in Healthcare, you've been
- 17:15in bio. I mean what has been your
- 17:17experience with that question of what's abstractable and what's
- 17:20not? Yeah, it's definitely hard
- 17:23question to answer. I mean there's cuz it is
- 17:25dramatically different and I don't think that we're at least
- 17:29at a place where like 1 size would be able to would be able
- 17:32to fit all. I think like the key there is
- 17:34kind of I want to think a lot of like the really good vendors out
- 17:37there are doing is like making themselves integration for his
- 17:40platforms. Like all right, we're going to
- 17:42like see what the most common use cases are.
- 17:44We're going to say like we're going to solve 80% of your
- 17:47requirements, but we're going to allow you to build that, you
- 17:49know that remaining 20% because our platform is so flexible and
- 17:54integratable with all the systems that you might happen to
- 17:56have running. And so I think it's really
- 17:59about, yeah, I think there are a lot of commonalities, but the
- 18:02the subtle differences, if you try and build for everything
- 18:05then then you're going to then you would fail, yeah.
- 18:10Yeah. I I see what you're, I see I see
- 18:12what you're saying there. It's like if you, yeah, it's
- 18:14like taking on too much in a sense and it's like you end up
- 18:16becoming it's hard to balance all of that and and and you know
- 18:20if you have that sort of flexibility, inherent
- 18:22integrations rather than trying to custom engineer everything,
- 18:25it becomes a lot easier, you know.
- 18:28I kind of have this question just around like this notion of
- 18:32machine learning infrastructure and platform.
- 18:34Like you know, you have had this transition from like let's say
- 18:39user of the platform loosely speaking to like architect of
- 18:42the platform, right. And I think there are a lot of
- 18:45people in our community who feel similarly, right.
- 18:47You you start off because companies are hiring machine
- 18:50learning engineers, or they're hiring data scientists and then
- 18:53the machine learning engineer you know, usually one or two
- 18:55realize wait. We should probably do this in a
- 18:58repeatable, scalable, maintainable way, yeah?
- 19:01How did that realization come about for you?
- 19:05I would really love to dive into this.
- 19:07Yeah. I guess it was just like
- 19:09probably the first time I went to take some new production or
- 19:12maybe it was, maybe it was more so the second, right, Maybe the
- 19:14first time, which is kind of like, all right, maybe this is
- 19:16just how it is. And then it was the second time
- 19:19I was like, all right, why don't we just do that like, but again,
- 19:22and I personally, because I didn't at the time, I guess have
- 19:26the insights into what was going on like behind the
- 19:28infrastructure fail. I, you know, probably didn't
- 19:31know the right way to interface with software engineers.
- 19:33And at the time, there was no common practice for that, that
- 19:37delivery of data science model to software engineer
- 19:40infrastructure. So yeah, like I think like a lot
- 19:43of people in the slack, I probably like like gained an
- 19:45interest in that slide side of things and applied myself there
- 19:48a lot. I've now tried to come back and
- 19:50say okay. Like when we build, you know,
- 19:53platform team, your customers are data scientists.
- 19:56Where do you meet them? How do you meet them?
- 19:59Like at what? What is your expectation of a
- 20:01data scientist? Like what do you want them to
- 20:02come to you with? What do you need them to know?
- 20:04And then what is the expectation on what, you know you're
- 20:07supposed to provide them so that they can?
- 20:10Have the best user experience in your platform and deliver models
- 20:14as as quickly as possible to production.
- 20:16I think that's, you know, I think a common KPI for a lot of
- 20:18teams is like timed production for a new data scientist or
- 20:21something like that. But it's kind of like thinking
- 20:24about in the context of your company, your or team, whatever.
- 20:29Where do you meet the data scientists to best foster that
- 20:32relationship and best expedite that trip to production along?
- 20:38Those Go ahead, Dimitris. Typical zoom meeting.
- 20:44So I was just thinking about the place and where the data
- 20:52scientist fits in on this and how you've gone from being the
- 20:58data scientist or the customer and then actually creating it.
- 21:02And we talked a little bit about like.
- 21:05The ability to know how to code and know this software
- 21:09engineering gets you. So it gives you so many
- 21:13advantages when you're a data scientist.
- 21:16And so I'm just wondering, and this is something that comes up
- 21:19quite a bit is when you're a data scientist, you just stay in
- 21:24your lane and you focus on getting the most out of the
- 21:28model and really that's it or are you going?
- 21:32Into the platform and trying to make it better and maybe working
- 21:37with the platform team or if you don't have a platform team or
- 21:41are you trying to create that platform like how do you look at
- 21:44that? Yeah.
- 21:48And if I'm not giving direct answers only because again one
- 21:51size isn't fit all, it really depends on the data scientists.
- 21:54Cuz I have met data scientists who are very stay in their lane
- 21:57and they want to like give you a serialized, you know, model or
- 22:01something like that and be like I'm done, that's what you get.
- 22:04And like it's everything from there.
- 22:06And then there were people who are data scientists like myself
- 22:09who are like like this isn't enough.
- 22:11I want to understand, you know, the platform.
- 22:13I want to actually like learn the things in that platform so
- 22:15that I can you know iterate and improve them with platform
- 22:18engineers and learn that side of things.
- 22:20I actually like software engineering better than modeling
- 22:22personally. It's it's more definitive and
- 22:24less frustrating in my mind. But but yeah, I think like it's
- 22:30it's so highly variable and I guess it's part of like being a
- 22:33platform engineer is like just being open to both.
- 22:35Like I've I've definitely worked with data scientists who really
- 22:40like to like learn Kubernetes or stuff like that.
- 22:42I'm like, yeah, I'll absolutely help you with that.
- 22:44I think it's cool that you want to learn that and it's helpful
- 22:47overall for both kind of collaborating there.
- 22:50And there's data scientists who want to be hands off and we have
- 22:52to meet them there as well. Yeah, I think one thing that
- 22:57I've realized and working at a startup, you know, we have to,
- 23:01you know, we have to hire a particular kind of people,
- 23:03right? Because working at a startup is
- 23:04risky and often very frustrating.
- 23:07And I think it's given me a sensitivity to that exact point
- 23:10that you have, which is how you build some of these tools really
- 23:14depends on the kind of people that you hire and the kind of
- 23:17people that come into the door and what they're interested in,
- 23:20especially at a smaller company like ours or even some of the
- 23:22larger companies that you work on.
- 23:23I mean, I'm sure there is no ML team anywhere in the world maybe
- 23:26outside of Fang where it's like you know, 100 people, right.
- 23:30Most ML teams are very small. And so it's like, who do you
- 23:32have and what are you going to do with them?
- 23:36Yeah, that ends up being day-to-day.
- 23:38Yeah, maybe their PhD, you know, mathematicians and stuff like
- 23:40that. And that's, you know, completely
- 23:42different from people who maybe came from a boot camp, from a
- 23:46variety of different backgrounds or or otherwise.
- 23:49And yeah, it's super, super variable.
- 23:50But I mean, yeah, that's comes kind of comes down to what we
- 23:53were I guess talking about earlier about data science still
- 23:55being so poorly defined and so in flux in terms of a definition
- 24:01of the domain and as a role and and everything.
- 24:05Yeah, for sure, for sure that that that that level of
- 24:08variability it's definitely it's a feature, the feature of the
- 24:11field that you know hopefully you know we'll we'll get rid of
- 24:14over time in this platform engineering realm, what would
- 24:19you say maybe the most interesting challenge is that
- 24:24you may that you experience and you know some things that come
- 24:26to mind or like. You know, CICD and like
- 24:29continuous training or data management, distributed
- 24:32training, orchestration, like what are the engineering
- 24:35challenges that really get you interested in this platform
- 24:38question. Yeah, I've always really, really
- 24:40loved model serving for some reason.
- 24:43I don't know why, like I'd like the maybe just because it's more
- 24:46of a an instantaneous thing. You know, it's like an API
- 24:49calling back and it works and you and you see the result, um,
- 24:53training for me while like has this like a lot of very very
- 24:56interesting engineering problems, always been
- 24:58frustrating to implement because of the some of the time
- 25:01constraints. You know, maybe you kick off the
- 25:03job 8 hours later you're like oh man, that failed, like gonna
- 25:05have to gonna run again. So I've always found like the
- 25:10like the enhancements and performance especially like now
- 25:13with so many like large transformer based language
- 25:15models and stuff like that. How do we continuously optimize
- 25:18models serving to the point where it's feasible and actually
- 25:22like generates value to serve these models at scale.
- 25:25So I think that's like all of the challenges under that space
- 25:28are super, super interesting and there's a lot of really cool
- 25:32open source and like enterprise serving frameworks now that are
- 25:35fun to play with. And so let's say a community
- 25:39member were to come up to you and say, Kyle, you've worked at
- 25:42some great companies. You're an expert on model
- 25:44serving. How should I?
- 25:46You know, my company wants to figure out a strategy for this.
- 25:50You know, they told me I need to figure out what our model
- 25:53serving platform looks like. What are some of the things I
- 25:57should watch out for? And what are some of the tools
- 25:59you'd suggest? Anything that you would offer as
- 26:01advice? Yeah, that's a that's a great
- 26:05question. Um, basically free consulting.
- 26:08Yeah, we definitely depend a lot on the company.
- 26:11Um, you know, like my first inclination would be like, you
- 26:15know, if depending on the resources you have, just
- 26:18evaluate a lot of, you know the vendors out there.
- 26:22There's a lot of like really, really great tools coming out of
- 26:25a lot of different companies. I feel like so many different
- 26:27enterprise offerings just to have models serving, but it's
- 26:30also built as part of a larger experiential platform or there's
- 26:34even things that are more hands off, for instance, like Selden I
- 26:36believe, just like a open source framework for deploying models.
- 26:40And Kubernetes also offers like Selden deploy, which is I think
- 26:44they're enterprise tool which is more UI driven, but a nice way
- 26:46to like deploy and manage your models.
- 26:49I would say that like the technical aspect of serving is
- 26:52going to be easy, right? Like you have something like
- 26:54Tensorflow serving, you just train a Tensorflow model, get
- 26:57the docker image, then you have an endpoint, but managing that
- 27:01and actually like getting to that governance level of how do
- 27:03you manage. If you have 50 models, how do
- 27:06you keep track of those and how do you manage those M points.
- 27:10Make sure you're not wasting resources being cost effective.
- 27:14Maybe like role based access controls.
- 27:16All of that stuff is like the real stuff that you have to
- 27:18watch out for in that space, because otherwise you just get
- 27:20this explosion of Technet that is totally unmanageable, yeah.
- 27:25Yeah, the nitty gritty for sure. So when it comes to this stuff,
- 27:32do you think about like when you're working on the platform
- 27:37and you're looking at the platform as a whole?
- 27:39Do you have problems when it comes to like plugging in
- 27:45different pieces of the puzzle in the platform?
- 27:49Because one thing that I've heard many complain about or
- 27:52just mention, maybe not complain.
- 27:55I'm projecting the complaints on to them, but many have mentioned
- 27:59how there's not really standardization yet and you
- 28:02don't have. An easy way to do the Lego
- 28:06blocks and switch out one piece for another piece.
- 28:10Have you found that to be true and how have you dealt with it?
- 28:14Yeah, I definitely found it to be true to a degree.
- 28:19I guess it depends on the kind of like where you're where
- 28:23you're at, Like you're working with a lot of like like
- 28:26monolithic in house tools or is your company very like
- 28:30microservices Driven? I know, again, like a buzzword,
- 28:33but I think there are benefits to working with microservices.
- 28:36But yeah, like it it, it's never as easy as, as plug and play,
- 28:40right? Like you're like, oh wow.
- 28:41Like even if these things are like even if you're told they're
- 28:44going to be Lego blocks, they're never Lego blocks.
- 28:47He's been like the first two hours trying to like cram 2
- 28:49together that you know should go together and just like doesn't
- 28:52work for you. So I think, yeah, at the high
- 28:55level, I've definitely run into, I've definitely had issues.
- 28:59Yeah, putting those pieces of the puzzle together, even
- 29:02starting with the first piece of the puzzle, you know, you, you
- 29:05always estimate how long a task is going to take in the machine
- 29:07learning space. You're like, all right, this
- 29:08will take me an hour and then two days later you're like, what
- 29:13is happening? Why is nothing working?
- 29:15Why do you think that is? Because I've heard that so many
- 29:18times. Like, it's really hard to judge
- 29:21how long something is going to take in this space and.
- 29:25And that's another reason why some people are really against
- 29:27doing sprints in the machine learning field because it is so
- 29:33hard to judge. Yeah.
- 29:35I mean, like, I think like it, it might come down to how you do
- 29:38your estimates. Like if you're trying to like
- 29:41you know kind of like throw stuff at the wall and see what
- 29:43sticks in regards to like if I had to estimate building an
- 29:46entire ML platform like I, you know, offhand I would have no
- 29:50idea, but I would probably double or triple whatever my
- 29:52initial estimate was. But I think it's just kind of
- 29:56you know, comes down to agile, right?
- 29:57You just want to like take that and like start being like OK
- 30:00like what are the small pieces that I actually know how long
- 30:02they take or or can at least guess, right.
- 30:05It's no big deal if you estimate something is a is a two point
- 30:08ticket turns out to be a two week thing.
- 30:10Like it happens. It's always going to happen.
- 30:13But the the better that you can break down that work into
- 30:15smaller pieces the the more accurate you're going to be.
- 30:18I think it's especially tricking the ML space because you don't
- 30:22know how a model is going to do before you before you train it.
- 30:25I remember as a data scientist, people be in like how long until
- 30:28you get to this, you know this level of accuracy or like this
- 30:31level of acceptance would be like I have no idea, like you
- 30:33haven't even given me data. This is all you know, purely
- 30:37hypothetical like project planning.
- 30:39I I have no idea what's going to happen two weeks from now.
- 30:42So I haven't even, you know, been able to train one model
- 30:45yet. So.
- 30:48I wanna kind of switch gears real fast because we've been
- 30:53trying to create this new podcast with one of the
- 30:56community members, Fabiana, and we're talking to a lot of people
- 31:00about data access and how they go about that.
- 31:04And I find that is a really interesting problem to look at,
- 31:08especially once you start to get into larger organizations and
- 31:12you start to get into. Companies that are dealing with
- 31:16private information, or if you're working in the EU for
- 31:19example, where there's all these regulations around the data.
- 31:24And then I heard horror stories about people waiting around for
- 31:29six months to get access to the data and they're just kind of
- 31:32twiddling their thumbs until they get that access.
- 31:35And I'm wondering how you look at that problem and how you make
- 31:39sure that. These horror stories don't
- 31:42happen. But you're also not super laxed
- 31:45on the data access so that anybody can have access to it.
- 31:51Yeah, and I guess that's tough because there's also, I mean,
- 31:53like, you know, there's ethical considerations there as well,
- 31:56right? I mean, you like, it's from a
- 31:59data scientist perspective. You wanna say like, ohh, just
- 32:01like give me the data. That's not that big of a deal.
- 32:02Like, I'm just a person. Like I can I should be able to
- 32:05access this, you know, this regulated data with personal
- 32:09identifying information and and work with it.
- 32:12But like you know that's that shouldn't be the case and we
- 32:16should have like very like strict controls around that and
- 32:20you know consumers should understand and know what's
- 32:22happening with their data. I like it definitely comes down
- 32:27to that kind of governance problem.
- 32:28Again, the more like oversight and control and management you
- 32:33have of your data, the easier it is to safely provision access
- 32:37without you know potentially damaging or lasting effects.
- 32:44It's it's not a space that I've had to work in like a lot and
- 32:46like well, I guess like, I mean I've definitely seen it a lot in
- 32:49in the healthcare space, but fortunately it hasn't been my
- 32:54problem to do. Yeah, I think the data access
- 32:57question is also interesting technically.
- 33:01And you know I think this gets back to your thought kind of
- 33:04about platform in a slightly, in a corollary way, you know these
- 33:07things, they tend to be built incrementally, right.
- 33:10You know it's nobody ever kind of goes out and says hey okay
- 33:13designer JC access system. And to end it's going to scale
- 33:16with us from one to 1000 engineers and one to 100 data
- 33:18scientists, boom, got to do it right.
- 33:21And I think that's a challenge that I, I I have a lot is like
- 33:26figuring out. What to implement now versus
- 33:29like what to implement later, particularly for a system like
- 33:31data access where it's like you're thinking a lot about like
- 33:34interaction, like what's your interaction model with, let's
- 33:37say it's like an API, right. And you know some data centers
- 33:39just like pulling it in from from an API, making some kind of
- 33:42request. Like how do you go about
- 33:44designing that API model or like that interaction model from you
- 33:48know, from your standpoint, how do you think about sort of like
- 33:51designing interfaces and and and you know, kind of specking out?
- 33:57From a technical standpoint, what the different use cases
- 33:59look like Yeah, I mean it's that's I guess for me it's just
- 34:02all about working with users as much as possible and
- 34:05understanding the use case like you.
- 34:08I think it's as straightforward as just like get as many use
- 34:11cases as you can real use cases as quickly as possible and and
- 34:15try and work through them. Because it's more than likely,
- 34:17yeah, your first design and assumptions are gonna be wrong
- 34:20in in some way, shape or form. Like building a platform for
- 34:23data scientists. Like maybe you assume that they
- 34:26have some skill they don't, or want some feature that they
- 34:29don't. Or maybe it's not important at
- 34:30all. But you really need to like, you
- 34:32know, get those use cases and understand them to actually
- 34:36correctly map out those requirements.
- 34:37Design something that actually, you know suits your needs.
- 34:40Yeah, I think I think that makes total sense.
- 34:42It's, you know, you really have to have that empathy, that
- 34:44understanding and that sort of, like intuitiveness around the
- 34:48use case in order to be able to, you know, engineer the best way.
- 34:53Now I'm gonna ask you a question or a tough question.
- 34:57Have you ever had a case with or does anything come to mind in
- 35:00terms of maybe where the use case wasn't very clearly defined
- 35:05on the part of the user, Maybe there was a little bit of
- 35:07incoherence or lack of process? And if so, how did you deal with
- 35:11that? Yeah, absolutely.
- 35:14I think like more so is a data scientist than anything else.
- 35:17I probably have that right because software engineering is
- 35:21well defined. If you're building an
- 35:22application, there's, I mean one.
- 35:25I guess the project managers and software engineers are very
- 35:27familiar with that, but so are probably consumers, right?
- 35:30Some of they interact with every day.
- 35:32Whereas I think when like ML and AI is kind of blowing up as a
- 35:35term, people started asking for those things without asking for
- 35:39actual, without actually having a use case, right?
- 35:43Like, I've definitely had cases of people coming to me being
- 35:46like Ohh like I want ML and be like create like for what?
- 35:50And like why? And like is this even a use case
- 35:54that ML would be remotely good for?
- 35:56It's I think like actually, yeah, being able to spot those
- 36:00use cases is like, so yeah, it's a skill unto itself, right?
- 36:04Like seeing who is just asking for ML and who actually like has
- 36:08a problem that's currently tedious, manual, etc.
- 36:11That could be automated by some kind of machine learning.
- 36:14You're totally right. That's the perfect example.
- 36:18It's totally perfect example. I was gonna.
- 36:21I was gonna try and steer this ship towards the idea of what
- 36:26you feel the next big thing is when it comes to machine
- 36:30learning. Maybe beyond ML OPS or within
- 36:34the ML OPS ecosystem where? Where do you feel the next big
- 36:38thing is? I don't want to default on
- 36:42governance again, but I think it's, I think it's going to be
- 36:44governance. I think it's going to be machine
- 36:46learning in the enterprise actually like like people seeing
- 36:51that it's driving value for certain companies and it being
- 36:55kind of like getting up there like you know you have data like
- 36:58software and now you're gonna have kind of machine learning up
- 37:00there. I think at the same time I think
- 37:02it's that level of enterprise maturity that we're still not
- 37:06currently at, but some companies are starting to reach and really
- 37:09set a standard for. I think you know like obviously
- 37:13the machine learning like research in itself has been
- 37:15exploding for a really, really long time.
- 37:17But like the distribution of companies like using or getting
- 37:21value for machine learning is huge.
- 37:23You've some companies doing like real time training online and
- 37:27like like getting all these really great results from like
- 37:30real time predictions. And even some companies that are
- 37:32still probably questioning the value of of the ML itself And
- 37:35like whether or not like machine learning would you know they
- 37:38would actually get some kind of return in their investment for
- 37:42investing in the machine learning space so heavily.
- 37:44A lot of companies like to, you know, like stick a toe in the
- 37:47water, hire a data scientist, watch them burn out and then and
- 37:51then mix everything. But yeah, I think it's gonna be
- 37:53kind of a select few companies setting that, setting that
- 37:57standard of what machine learning looks like when it's
- 38:00actually driving value and the rest of the market we have to
- 38:04meet it. Yeah, that's, I think that's
- 38:08spot on. I think that's something I
- 38:09really agree with and I think it's something we see a lot in
- 38:12the community. You know, the, you know, Etsy is
- 38:14one of those companies, DoorDash, Uber, certainly, you
- 38:18know, Facebook, Google, etcetera, Apple, they've been,
- 38:21you know, I actually think it's kind of interesting.
- 38:23I think the Facebook and the Googles and the Apples of the
- 38:24world, I think probably justifiably so because they're
- 38:27so big, but there's probably a little bit less of true ML op
- 38:31stuff I really learned from them.
- 38:32You know, I think it's more like.
- 38:34The Spotifys, sort of like those midstage tech companies that
- 38:37have really given a lot of great lessons in terms of like, how
- 38:40does this stuff scale in like a modern way.
- 38:45Yeah. And like A and, like a
- 38:46manageable way. Sometimes I feel like, yeah,
- 38:48sometimes I feel like I read a paper from like a fan company or
- 38:50something like that on their architecture or something.
- 38:53And I'm like, there's no way we're going to implement this.
- 38:57It's just like totally infeasible for wherever I'm at
- 39:00right now. But yeah, like.
- 39:03Also, something to be said, I think all of these companies are
- 39:08tech companies. And what it kind of sounds like
- 39:12you're saying, Kyle, is you're expecting more of the companies
- 39:16that aren't necessarily tech companies like your Coca Cola's
- 39:19or Delta Airlines to also get up there.
- 39:23Yeah. There's a huge difference I
- 39:25guess between the companies where data scientists are
- 39:27embedded in like engineering organizations and like companies
- 39:32where like you have these silo data science teams that are kind
- 39:36of unsupported from from a lot of different standpoints.
- 39:39And maybe those data science teams are more so like the, you
- 39:41know, insights, data science and stuff like that.
- 39:43Maybe they're working with marketing teams or otherwise.
- 39:47But like if they're data scientists that need to like
- 39:50create and deploy things to production that actually serve
- 39:53as the back ends for, you know, like software, then I think a
- 39:57lot of those companies like also have really cool things that
- 40:00they can and want to build to automate internal processes, but
- 40:04don't yet have the organizational structure or
- 40:06support for those data scientists to get to that level
- 40:08or or haven't organized in that way.
- 40:13Yeah, I've actually, you know, some companies that come to mind
- 40:17that, you know, you may not think of as like awesome ML
- 40:20companies that I have actually been pretty impressed by like
- 40:23Chickfila, John Deere, you know, some like you know some.
- 40:28Those two come to mind. Yeah, those are those are the
- 40:33two. Corey, Yeah, shout out to Corey,
- 40:35right. Yeah.
- 40:36No, I mean those great, great, great companies that have really
- 40:41started to embrace ML and you know, kind of bake it into their
- 40:43entire business model and and their business sort of
- 40:46perspective. You know, it's definitely, it's
- 40:49definitely out there and that's not to say that like a non tech
- 40:51company like. Yeah it's it's not it's not like
- 40:54going to succeed at ML. But I think like there's like I
- 41:00think some of those companies are definitely doing it right.
- 41:02You know you're John Deere's are it sounds like they're they're
- 41:05doing it right in terms of how they embed their data scientists
- 41:08in the organization support they get them.
- 41:11And I mean, like, yeah, I guess there are a lot of companies
- 41:13that people don't think of as tech companies that are
- 41:14producing cool papers or interesting things within the
- 41:17machine learning space. But I guess like from the from
- 41:21the inside, I guess that I've seen in some of those companies,
- 41:23it can be difficult to get the support you need to, to get
- 41:27something into production or even just you know, to have like
- 41:29a senior engineer's eyes on something, you know.
- 41:33Yeah. I guess just to kind of, you
- 41:35know, maybe bring this discussion to a sort of close
- 41:39and just kind of, you know, get into our concluding period here,
- 41:43you know, this idea of platform engineering, it's new, this idea
- 41:46even of like machine learning infrastructure.
- 41:49You know, like what really is machine learning infrastructure.
- 41:51You know, I think I felt that a little bit lately.
- 41:55You know, I think I, I, I, I understand, you know, the, the
- 41:59importance of ML Labs. I mean, I'm here hosting a
- 42:00podcast about it and hanging out on the community.
- 42:03And I see how, you know, this field has to evolve in a way
- 42:09that's, you know, probably a lot more like software engineering
- 42:12than, you know, maybe some of the more numerical fields that
- 42:15you know are out there like, you know, signals and systems
- 42:17etcetera. But I think sometimes, you know,
- 42:20one of the things I struggle with is really kind of defining
- 42:23what something like a machine learning infrastructure really
- 42:26looks like on a practical level at a company, right.
- 42:29It's, it's kind of like, oh, you know, these are our problems.
- 42:31Is it machine learning infrastructure?
- 42:32Is it DevOps? Is it, you know, is it a
- 42:36software engineering issue? And I guess my question kind of
- 42:38to you is, you know, have you dealt with similar challenge in
- 42:42terms of defining what the problems are that you need to
- 42:45work on or have you felt a little bit that, you know, maybe
- 42:49because of the environments you've been in, it's been a
- 42:51little bit more clear. How do you think about that?
- 42:54Yeah and it has depended based on like what the what the use
- 42:58case is. For sure I like.
- 43:02I'm trying to think of the best way to answer that because there
- 43:05have been times where I'm like, yeah, what is I'm like what are
- 43:08we doing? Like, and I'm like, what is this
- 43:10year like, you know, like sometimes I felt like I've just
- 43:13been following the flow, like I'm deploying a model to a
- 43:15Kubernetes cluster because that's what people do this.
- 43:18Other times I've felt like I've been doing it because I I need
- 43:21to do that. And like, I need, you know, like
- 43:23I need this thousand node cluster to scale up that high to
- 43:26actually serve the traffic that I'm trying to, that I'm trying
- 43:28to meet. And I don't know if I'm
- 43:30answering a question at all. But but but yeah machine
- 43:34learning infrastructure is like it's it's software
- 43:38infrastructure you know it's all of the support that you need to
- 43:42actually support your ML software tooling at scale for
- 43:49your use case. Yeah I I think I think you did
- 43:53answer my question right. It's I think that Kubernetes
- 43:55example is a perfect example of something that you know, you
- 43:59know, we all feel like, oh man, we should be using cube flow.
- 44:02We should be using all these things that are, you know,
- 44:04talked about. But it's like what are the
- 44:06problems I'm trying to solve here?
- 44:07What are we really trying to do here?
- 44:08I mean, and if you're asking yourself that question, I think
- 44:10maybe you are doing the job of a machine learning infrastructure
- 44:13or a platform engineering sort of contributor.
- 44:18Yeah, there are definitely times where I've like, you know, I
- 44:21started using cube flow when we were leveraging it way back at
- 44:25A. Some other place.
- 44:26But it was like we started using it and realized that it we
- 44:30actually didn't need it. It was like kind of for our use
- 44:32case, it it was too much. It was, you know, it was it was
- 44:35more difficult to manage than it was than like the value we're
- 44:39actually getting out of it. And we're like we could
- 44:41literally have like a like for our small data science team have
- 44:43a standalone deployment of ML flow and get everything we need
- 44:47like out of an MLS pipeline like without any kind of scale or or
- 44:51management of like infrastructure resources
- 44:52whatsoever. Then there's other cases where
- 44:55that's just not even. Close And you have all these,
- 44:57you know, workflows running daily and you need that.
- 44:59Kind of like a complex workflow orchestrator like that.
- 45:06I know there's some kind of adage, but I can't think of it
- 45:09right now where it's like you get the tool and then you look
- 45:14for the problem or something as opposed to looking for the
- 45:17problem and then finding the right tool.
- 45:19But someone in the comments will help me out and remind me what.
- 45:23Adage that is or what the saying is and how it goes.
- 45:27But this has been awesome man. I appreciate you coming on here
- 45:31talking with us. I want to mention to everyone
- 45:33that has stuck with us, Kyle, your team is hiring, right?
- 45:38And you've got a referral code. Are you still?
- 45:40There. I mean, it's not directly my
- 45:41team, but the company's hiring a lot, yeah.
- 45:43And I'm I'm happy to provide, happy to speak to people in the
- 45:47in the MLAs community about whatever.
- 45:52There we go. So if you're looking to work at
- 45:55Etsy, not making handmade baskets or any of that other
- 46:01cool stuff, I tried to sell stuff on Etsy once.
- 46:04That's a whole another story. But if you're looking to work on
- 46:08the software team, then hit up Kyle and the Slack and yeah,
- 46:14this has been awesome, man. I love hearing about your path.
- 46:16I love hearing about the vision that you have and.
- 46:19Really diving into what are some core concerns, What are some
- 46:24ways that you can be a better machine learning platform
- 46:27engineer? And thank you.
- 46:31So much for having me. I really appreciate the time.
- 46:33Awesome questions and then and the chat makes me think too.
- 46:37It's cool. Yeah.
- 46:38Thanks for coming on, Kyle. Really enjoyed it.
- 46:40I think. I think our, our community, our
- 46:42listeners will get a lot from just some of the technical
- 46:45challenge You highlighted all the different aspects.
- 46:48I think I feel like we really covered just how broad platform
- 46:51is when we talked about Okay, what are your consumers, what
- 46:54are the different interfaces, what are the different technical
- 46:56challenges like this is a pretty broad field and I'm, I'm very
- 47:00glad that you're able to come on.
- 47:01So thank you. Yeah, of course.
- 47:03Yeah, I know. And it's, it's definitely
- 47:04massive. It's not like.
- 47:06Yeah, there's so many different spaces you could get into and
- 47:08talk about. You talk about Kubernetes
- 47:10itself, you know, for so many hours and hours like get into
- 47:13networking and like further and further away from the from the
- 47:16core. But yeah, no, it's been awesome.
- 47:18Thank you so much.