Latest / Agentic Conversations (formally mlops.community) / Systems Engineer Navigating the World of ML // Andrew Dye // MLOps Podcast #136
Transcript
- 0:00Hi, I'm Andrew died. I'm a software engineer at Union
- 0:03aii and typically, drink, Black Coffee in the mornings, but
- 0:06would love an Americano like invite.
- 0:08David is back here on a podcast with me and for everyone that is
- 0:14not watching on YouTube, it just makes me feel like you are the
- 0:19Always Sunny in Philadelphia meme right now because you've
- 0:22got a ton of math going on, dude, what is that?
- 0:26It's some formulas to let's say, Say, find the total compute, the
- 0:32total communication, and then measure the intensity.
- 0:35The area, average arithmetic intensity.
- 0:37It's related to some distributed training research on working on.
- 0:40There we go. So in case anybody's been
- 0:43wondering where the hell has David been gone to the dark
- 0:48side? He's a researcher now.
- 0:50He's been. He hung up his ml Ops hat.
- 0:52Actually, not really, you're still doing him a lobster on the
- 0:54daily, right? Yep.
- 0:55At Microsoft heavily. Yep, but now he told me the
- 0:59other day, he I've gotten to the point where any problems I
- 1:02encounter I've seen them before, so I need to look that stuff up
- 1:06anymore. You're just too good, dude.
- 1:08You're too good at this. You've graduated ml Ops Academy,
- 1:12not at all. I feel like now as I'm diving
- 1:14into an area, that's a bit different.
- 1:16I feel like I knew all over again.
- 1:18It just feels like I'm, I did so much, I don't know.
- 1:21There's so many things, I feel like I should know imposter
- 1:23syndrome, like you name it, going through it all over again,
- 1:26but it's fun. This is, I think this is a comes
- 1:29with being In this industry, you either change frequently,
- 1:32whether it be roles or jobs or area of interest but or the
- 1:36technology and just what's going on in the space Joe.
- 1:38So you just everything changes. Yeah.
- 1:41And you like to push your limits and see how far you can go and
- 1:45see what's right? Learn so it's cool to see.
- 1:49I like watching from the sidelines and getting explained
- 1:52every once in a while. What all those sigma's on your
- 1:55board means summation sums. They yeah.
- 2:00It's actually not as hard or complicated of math as looks
- 2:03like, but it is intimidating math.
- 2:07It's funny that you mention that, but I've always felt
- 2:10intimidated by math, growing up, and it was only two.
- 2:12I got into the machine learning space, that I started to feel
- 2:15more comfortable with it. Dude, I love how you're just
- 2:18like, yeah, math scared me until basically.
- 2:21I became a rocket scientist and I just got over.
- 2:24It's yeah, it's that's for context without getting too deep
- 2:27inside. That's how I learned things.
- 2:28I like throw myself into Something new and like sink or
- 2:31swim and eventually figure out how to swim.
- 2:33But he's always like that. What the hell is going on?
- 2:36I'm drowning looking at these communities, for help these blog
- 2:39posts for help. There you go, we did not just
- 2:43talk to each other for this whole our we actually had a
- 2:45guest on as much as I would have loved to have talked to you for
- 2:48the next hour we brought on Andrew and that was incredible
- 2:52man. You got some top takeaways or
- 2:54you want me to go first? Why don't you go why don't you
- 2:56go start with that? All right, so I love how Andrew
- 3:00and when we introduced you to him, you talked about what you
- 3:04were working on. You told him about that those
- 3:06drawings behind you. And he was like, oh yeah, that's
- 3:10funny. Because I work just the level
- 3:12below what you're working on right now.
- 3:14And so you all were able to bond.
- 3:16I feel like on how there was some similarities but it wasn't
- 3:22like you overlap that much. And so the problems that he's
- 3:25working on at that very low level, I think We don't
- 3:30necessarily hear them that much on this podcast and they're
- 3:35still very valid. He, as I mentioned, at the end
- 3:37of this, it's like he had his experience at Microsoft working
- 3:42on hololens. He then went to meta and both of
- 3:45those were incredible scale and now he's working at Union, which
- 3:48is also production-ready bulletproof and they have to be
- 3:53able to put up some serious scale, I know that spotify's
- 3:56using them so he was able to Give us his take on why?
- 4:04And what you need to keep in mind when you are working at
- 4:08these low levels. And why it's so important when
- 4:11you are a machine learning engineer and how the two can
- 4:15play together nicely? Yeah, and I also like that he is
- 4:20a good example of. I think many I'm a lapsed
- 4:23practitioners who come into the field from someplace else.
- 4:26He has this great experience as a systems engineer doing
- 4:29low-level sort of work and then we're going kind of up the stack
- 4:33and able to bring those first principles like you said and a
- 4:37been able to apply them to a product that is what the users
- 4:41interact with. I think that's super interesting
- 4:44is super challenging but as we were in the MLS Community.
- 4:47This is a space that's always changing.
- 4:49We're always learning new things about it, so it's, it's
- 4:52encouraging. I think to hear from someone
- 4:55that was not pure ml. Ops became the Searing, how
- 4:59their learning experience was and how challenging it was.
- 5:02Also, how honest, I really, like honesty was about how much we
- 5:05depend upon others. I think that's something that we
- 5:08often don't talk about, but you don't hear about how many people
- 5:11you learn something. From if they hadn't told you
- 5:13that you wouldn't be able to finish something.
- 5:14There's a ton of that, I think happens in the workplace and It
- 5:17works well, when there's a common goal right, which is what
- 5:20we're hearing. The tool like Union AI, is it
- 5:22forces these various disciplines to work together for a common
- 5:26objective and I think it's really cool to hear, ya know
- 5:29some training when he started talking about the abstractions
- 5:32and how they're thinking through abstraction is because that is
- 5:35something that I know so many people think through like what's
- 5:38the right abstraction layer and then how you can just create a
- 5:42Swiss cheese effect, where you think you have this nice level
- 5:46of Action. But then you expose one little
- 5:49button that you can play with and then, you know, the
- 5:52complications get or it gets a little bit more complex so you
- 5:56have to go at it again and try and create that nice abstraction
- 5:59layer. So it's cool to see how they're
- 6:02thinking through that. But get into this conversation
- 6:05with Andrew and huge, shout out to the sponsors of this episode
- 6:09Union ml Union aii. So let's get into this
- 6:14conversation with Andrew and hope you all.
- 6:17Enjoy. And you're welcome, man.
- 6:24It's great to have you here. Yeah, thanks for having me,
- 6:27dude. So just give us the breakdown.
- 6:31I love the background. You have, I think you've got one
- 6:34of these. This experience that is super
- 6:39vital in the MLM space. I know we were just talking
- 6:41about this before we hit record but you are playing at a low
- 6:45level, we're going to get all into that and why that is so
- 6:49important. Oughtn't for the tools that
- 6:52you're working on right now in the tools that you've worked on
- 6:55in the past right now, you're currently at Union.
- 6:57I know you were at meta before that.
- 6:59Can you just break it down? Like how did you even get into
- 7:02software engineering? Yeah, absolutely.
- 7:05Yeah, I think like out of the gate like I'm a complete ml ml
- 7:07Ops Outsider here in 2014. I started working on hololens
- 7:12for those not familiar was that a are headset and Microsoft.
- 7:14When this is really my first kind of bumping into the ml
- 7:18space. I was a little All systems and
- 7:20was working on custom silicon sitting between really state of
- 7:24the Arts Hardware to do real-time tracking for for AR.
- 7:28And then complex algorithms to make that all happen.
- 7:30And then do a bunch of cool experience on top.
- 7:31And I'm sitting in between, I know nothing about either layer
- 7:33above or below me. But working on this chip, that
- 7:36is custom silicon with custom instruction set that were using
- 7:40to do real-time positional tracking and just getting to
- 7:43like really at that layer in the complexities there, but
- 7:46understand that the abstractions were building and all this
- 7:49complexity. That's happening at the
- 7:50hardware. Layer is really empowering.
- 7:52These really awesome positional experiences real-time social
- 7:55experiences. I remember days sitting in my
- 7:57office, like playing this bug shooting game or logs are coming
- 8:00out of your walls and I know it's just it was like wild to me
- 8:03to see how this put the power of images and data and computation.
- 8:07You could disable these really awesome experiences.
- 8:09It's like over this time. It really just kind of just sort
- 8:12of bumping into what is this ml thing, but ultimately had no
- 8:15idea. I'm curious.
- 8:17What from your perspective when, as you were learning this from
- 8:20scratch like what was the learning curve like?
- 8:22Because it seemed like this space, was it still is changing
- 8:26a lot, right? Like especially in light of the
- 8:27metaverse and some of the other applications that people are
- 8:30looking to put together for this, I'm curious.
- 8:32What was it like growing in that stage and then going to another
- 8:35field? That's all so complicated,
- 8:37right? Just too curious to hear your
- 8:39experience there. Yeah, I mean, it was really just
- 8:42putting myself in collaborating with experts around me.
- 8:45Right? Is just learning from Others and
- 8:47just soaking up a preparation. Can't that was the case in this
- 8:51low level systems firmware role that I had.
- 8:54And then in 2017 and I joined meta on switch gears a bit and
- 8:57focused on more ml space which we can kind of speak to again.
- 9:00Same thing, just learn from bunch of experts in the space,
- 9:03highly, iterative knew nothing from the beginning and it just
- 9:05been kind of circle. Things up sense.
- 9:09I think that's definitely a common experience and maybe just
- 9:12this kind of segue into your experience at meta.
- 9:15How did you get into the ml space coming from this systems
- 9:18kind of low-level firmware space.
- 9:20How did you bridge that Gap? Yeah.
- 9:22Absolutely for those not familiar the way matter works
- 9:24is, you're hired as an engineer for the company and then you go
- 9:27through boot camp and team finding process.
- 9:29It's really up to you to go engage with teams and figure out
- 9:32what you want to do. I knew kind of based on my
- 9:34exposure to a mound computer vision, I was interested in
- 9:36exploring that space more but really didn't know what I was
- 9:38looking for. And ultimately found a team.
- 9:41It was responsible for distributed training and what
- 9:44would eventually become a? I infrastructure organization.
- 9:47And it seemed just like the perfect mash-up between this
- 9:50email space that I was interested in learning more
- 9:51about what like a bunch of systems problems which I'm
- 9:54skilled in and comfortable and passionate about.
- 9:56And so I found this nice Middle Ground.
- 9:58They really, let me just kind of jump in and start kind of narrow
- 10:01and then really grow out from there and kind of explore a
- 10:04bunch of different facets, kind of at my pace and did that have
- 10:09Anything to do with the pie torch team or were you
- 10:11completely separate? Yeah, at this point I think it.
- 10:14So I joined early 2017. I think at this point I torch
- 10:18had been released but it was part of the research
- 10:20organization at that point. We were using in the production
- 10:23space reason Cafe to and so a good chunk of my time there was
- 10:26on can't be too. In fact I worked on distributed
- 10:28data parallel algorithms for and systems objections for Cafe to
- 10:32which would end up being the precursor to pie torch DDP for
- 10:35those familiar. So I'm kind of involved in some
- 10:38of the development. That's base.
- 10:40All right, so you mentioned that you tried to surround yourself
- 10:43with some smart people that understood where you were going,
- 10:47what are some things that you had to learn and you wish you
- 10:51would have learned faster or sooner.
- 10:53I should say, maybe not faster, because everybody learns that
- 10:56their own pace, but things that you recognize the little bit
- 10:59later on down the line. And you think to yourself, I
- 11:02would have liked to have known that a little bit earlier.
- 11:06Yeah, I really saw this from kind of two angles, one kind of
- 11:10like off the stack and toward the ml space.
- 11:12Like I just had no idea. Like I took Andrew in course and
- 11:15just talk, give me some more familiarity around like what is
- 11:18deep learning and what our neural Nets?
- 11:19And I knew just enough, well that's all like a lot of that's
- 11:22pretty academic and simple and when I was working on was
- 11:25instead like doing distributed training using model,
- 11:28parallelism across scenes of nodes.
- 11:30And so things get like way more complex really quickly and it
- 11:33kind of Builds on a lot of these Basics that I really didn't
- 11:35quite And so I was just kind of flying by the seat of my pants
- 11:38leaning on others where I could but also just trusting that
- 11:41like, I'll figure it out eventually.
- 11:42I didn't get too hung up on. I got to know all this.
- 11:44You just like the entire surface is not knowable but I think
- 11:47interestingly as well, I had not worked at a service layer before
- 11:52a classical a, like I had come from operating systems will
- 11:54level systems. So at the same time I'm also
- 11:56learning all this, the that classic improve service oriented
- 12:00pieces to. And so in met as a leader in the
- 12:04space, a ton of amazing experts here.
- 12:06That I had an opportunity to learn from.
- 12:07So I was really relying a ton. I'm just my intuition and just
- 12:10examples that I found and just kind of trying to mimic what I
- 12:14could apply my intuition, like what, what I thought was right
- 12:17as we move forward and try to scale things.
- 12:20And there is one other thing that I was thinking about and it
- 12:25was around the type of scale that you were working with.
- 12:29Can you tell us the size of? Not only in with the hololens,
- 12:34which by the way, I still haven't.
- 12:36Ida Holo lens and is ever since 2014.
- 12:39Or since I like started seeing it, I was like, this is the
- 12:42future. Wow, this is crazy.
- 12:43I'm so excited for it, and I have not gotten my hands on
- 12:46that, but when you're looking at the scale of what you were doing
- 12:49with hololens, and then when you're looking at the scale of
- 12:52what you were doing at meta, can you give us a little bit of a
- 12:54breakdown on that? Yeah, the problems were really
- 12:57different with Holland's you doing a bunch of local
- 13:00processing, right? And so latency is are just
- 13:02extremely critical for those using have using VR before.
- 13:05Like it's really tickle to get your shot Gates down so you can
- 13:08update that the renderings. And so talking about optimizing
- 13:11latency at all sorts of layers of silicon, the chipper working
- 13:14on, had a number of cores and we did like explicit cash
- 13:18management to pass messages across chords to just avoid any
- 13:21sort of Lindsay's, like, just really interesting problem.
- 13:23Still squeeze out and optimize pieces, but it meta things were
- 13:26all scale and a more classic sense of just more data, bigger
- 13:31models, justjust larger more complexity more compute and
- 13:34there's just a whole bunch of interesting.
- 13:36Problems that arise in that space to just to try to like
- 13:39that. It kind of put some context on
- 13:41the scale. When I first joined met in 2017,
- 13:43I had an opportunity to work kind of very tangentially on a
- 13:46paper at the time, which was training, but imagenet one.
- 13:48Can get a set in an hour, which was state of the art of the time
- 13:51and not worked in the academic research space.
- 13:54Like I was working on some fault tolerance features to move the
- 13:56project forward but that was 256 gpus.
- 13:59I think people hundreds if I recall it was just a super
- 14:02interesting project in a very like practical way for me to
- 14:05apply. The distributor learnings I was
- 14:08building the fault tolerance mechanisms.
- 14:09I was working on 20. Like the, here's how it actually
- 14:11maps to the researchers and leveraging, its right.
- 14:14The end of the day of investing in liability news, things are
- 14:16cool from a computer science standpoint, but the end goal is
- 14:19like the train this model and all of the like to system.
- 14:22Stuff is a means to an end. I think it's a great point that
- 14:26there's yeah. First up, there's a lot of what
- 14:28you said that I can relate to just, like figuring things out
- 14:30learning from the people around you, but I would love to dive
- 14:33into some of the things you said to respect to the work you're
- 14:35doing. And I Meta with the distributor
- 14:37training. So at the time, right?
- 14:39The early days, I think you said that when you started, this is
- 14:41when Transformer started little by little kind of creeping into
- 14:43the space and model started, getting bigger and bigger.
- 14:47And then it became not only the cool thing to do.
- 14:49But a necessity, right? To distribute these models
- 14:51across multiple devices, can you just from your perspective as
- 14:55you started working on the stuff?
- 14:56What was that? What was it?
- 14:58Like adapting to that Trend? Especially as you're like
- 15:00building out this infrastructure and what were some of the
- 15:02challenges that you face there? We can probably do have a lot
- 15:05deeper there but yeah. Just at a high level.
- 15:07Yeah, there's a bunch of different dimensions to speak to
- 15:09here, but I think one of when interesting one that I'm sure
- 15:11you can relate to is really just around like scheduling and
- 15:14resource constraints. Like, how do you even in Meadow?
- 15:18We were constrained in terms of how much GPS would get access
- 15:20to, how do you schedule fairly so that someone who wants to
- 15:23train a really big training job that wants tons of gpus, like,
- 15:26how do you optimize their use? You don't want to hold back the
- 15:28resources until they run, but hold up for available because
- 15:31then you're not wasting the resource in the net efficiency
- 15:34of the cluster and so is a bunch of Interest.
- 15:36An algorithms around. Okay, let's let the small jobs
- 15:39training for a bit but then let the big guy come in when enough
- 15:42is ready. And what that requires a bunch
- 15:44of like cooperation with training stack to make sure you
- 15:46don't like waste progress. They like just a bunch of
- 15:48interesting like cascading Fallout from not only just scale
- 15:53and but like the heterogeneity of the workloads and it's
- 15:56important to have systems that like anticipate this
- 15:58heterogeneity like in and isolation.
- 16:00Some of these problems are the kind of OneNote.
- 16:02There's like one there's one that set of configurations that
- 16:04are strung through them, but once you're looking Like a
- 16:06basket of these things and there's all these different
- 16:08container optimizing for around scheduling.
- 16:10And what are the like, what are the neck Network behaviors?
- 16:13Where should you locate these things?
- 16:14Like, where is the data? There's just a bunch of
- 16:16interesting problems in this space.
- 16:17It sounds like it's so messy. It's hard to keep track of
- 16:20right? The especially from a
- 16:21reliability standpoint. What did I mean?
- 16:23You were already getting. So what are some things that you
- 16:25did to manage? The, I guess the huge search
- 16:28base. There's so many parameters, you
- 16:29could tune, right? So many things that could mess
- 16:31it up. How did you work together as
- 16:34specially as a large team to isolate the Things that were
- 16:36happening to at least understand.
- 16:39Hey, this is where the issue is versus not there.
- 16:41Because that, even then, even just, that alone is sometimes
- 16:43really difficult, right? Just to identify that it's
- 16:45happening at this layer, not at that layer.
- 16:47Even though the symptoms may seem like it's happening
- 16:49somewhere else. The other sounds really obvious
- 16:51in retrospect, but like anticipating failures, and
- 16:56behavioral patterns, and instrumenting those and then
- 16:58logging them is like Paramount. And it's really hard in the ml
- 17:01space because the space moves so quickly and you're just trying
- 17:05out new ideas and it throwing them away in the trying
- 17:07something else out it's really hard to find the point at which
- 17:09it's worth investing the instrumentation or like
- 17:12visibility or tests or whatever. Right.
- 17:13And so but like then you can kind of get stuck in this like
- 17:16Loop of then you're just like iterating and get to go back to
- 17:19the beginning because you can't actually diagnose a particular
- 17:21problem. And so leveraging tools that are
- 17:24able to like put like observability and like failure
- 17:27notion kind of fronts on Center and provides like Hooks and ways
- 17:31to dig in is really important and then you cook like plan for
- 17:34it and especially at the info layer or Charles a little bit
- 17:36more stable mentoring that you're investing and
- 17:38observability that you can derive patterns from run without
- 17:42needing to iterate to learn what went wrong and what you want to
- 17:45do next. Obviously important, I think the
- 17:48other piece to adhere to is that there's opportunities to look at
- 17:51patterns that are across workloads as well.
- 17:53I think one of the biases that I observed was a desire to look at
- 17:57like single work load logs as opposed to Trends it like time
- 18:02series data of a particular job over time or look at like across
- 18:06Jobs like how is this one? An outlier, what's different
- 18:07about it or they are the network latency is lower.
- 18:09Why is that? What can we reason about at the
- 18:11data center? I think there's, I think taking
- 18:14a step back and zooming out of the logs of particular job and
- 18:17trying to understand kind of like, wider execution patterns
- 18:20can be really helpful weight. And how were you doing?
- 18:23How would you do that? Would you just did you create
- 18:27some kind of program, to be able to look at them all?
- 18:29Or would you just bring them into Excel and have a look?
- 18:35Yeah, yeah. Present it meant of there's some
- 18:37great tools and as I'm learning now that I've spent a couple
- 18:39months I'm working in the open source space.
- 18:41There's some here as well around just instrumentation and is
- 18:44really two common types of use. Yeah, tabular logging for kind
- 18:48of verbose details of various states are passing through a
- 18:50super useful and then more interestingly in the one that
- 18:53was maybe less commonly used but I think will be helpful was was
- 18:56like time series data point. So just like a mitten counters
- 18:58as you got to various events happened.
- 19:00You're like walking Lane season. You can look at standard
- 19:02deviations and average latency from various things and you can
- 19:05use those Has to like glean insights, they can kind of give
- 19:08you your next exploration direction.
- 19:10Or next thing I tried So there is something that I want to
- 19:16transition to an it feels like now is the point.
- 19:19Now we've talked a lot about your time at Microsoft.
- 19:22We talked about meta and you are now in a new phase and new
- 19:25chapter of your life. You're not working at Union and
- 19:29shout out to everybody that is working at Union and the people
- 19:32behind flight, because we did. So much cool stuff with Caton
- 19:38and the union team as when Drew and they are one of Are proud
- 19:42sponsors. So we cannot thank them enough
- 19:45for being a sponsor. But what is the one thing that
- 19:49is interesting to think about? For me is you're not necessarily
- 19:53a machine-learning engineer, but you do deal with machine
- 19:56learning engineers. And I'm sure that you dealt with
- 19:58them at meta and you're continuing to deal with them
- 20:01now, at flight and at Union, what does that look like in your
- 20:06eyes? How do you see someone that is
- 20:09in your position that has your skill set?
- 20:12Being able to interact with the machine learning engineers.
- 20:16Yeah, so I think coming from meta I have like I had this
- 20:19somewhat kind of like narrow perspective on like how things
- 20:22were done. What tools do you use?
- 20:23There was like one way to do things there was like these like
- 20:25layers and I was at times like several steps removed from ml
- 20:29Engineers or data scientists in such early this year when I
- 20:32started engaging with the wider homologous system and companies
- 20:34in the space and ultimately connected with Union, I was just
- 20:37amazed at the community and actually how a lot of these the
- 20:41like XF and rolls and people that like the different Those
- 20:46working in the space, whether there will level systems
- 20:48Engineers or their Ops folks. Or ml Engineers or folks really
- 20:53are like engage all together in are really working like very
- 20:57collaboratively by his. I think that is really well
- 21:00embodied in flights Community. It's really awesome to see the
- 21:03number of companies that have adopted flights and the
- 21:05conversations happening in the selection around.
- 21:07Here's the scenarios we're looking to enable is this
- 21:11somehow Provide support this? How can we contribute to make
- 21:13life better to accommodate these kind of scenarios?
- 21:15I think just I think Bridging the Gap.
- 21:16You communicate is really powerful because I think it lets
- 21:19each side kind of understand the perspectives of the other and
- 21:23what are the challenges in this space or what's important to you
- 21:25prioritize? And I think the other
- 21:27interesting piece about flight in particular is like the tool
- 21:30itself facilitates. This kind of like collaboration
- 21:33where you can have different teams and personas building
- 21:37different parts of orchestration Pipeline and they all get kind
- 21:40of stitched together and then can interact.
- 21:42So someone can it's some maybe data input for a pipeline.
- 21:46Spend like curated by someone deeply familiar with data and
- 21:49familiar with like features and such and then someone else who's
- 21:51like, optimizing the like performance and behaviors at a
- 21:54lower level of the training staff, for various steps in the
- 21:57pipeline, the tool kind of becomes this medium to actually
- 21:59facilitate that communication. That's really interesting.
- 22:02Like I kind of am thinking about like these Mo in four teams that
- 22:05or ml Ops teams that kind of form like that, right?
- 22:08It's like it's velocity of different skills working
- 22:12together for a common goal, and it's the working together.
- 22:16Towards that common goal. That makes it ml Ops not the
- 22:19things individually right by themselves are kind of separate
- 22:21but once they are put together working on a common product or
- 22:25for a common goal, it becomes I guess this is the kind of same
- 22:28space and it seems like you can get away with not knowing
- 22:33everything. When you have a strong team to
- 22:35count on it and bounce ideas off of her, maybe this other person
- 22:38has this area of expertise and maybe you have this expertise.
- 22:41So you need this kind of broad coverage of this sort of scale.
- 22:46That you would need to manage these things.
- 22:47Do you feel like that's still the case, or is the tooling
- 22:50space changing so much that now that may change if the tooling
- 22:54is changing? Will that also change the roles
- 22:56and the responsibilities of these individuals?
- 22:58I'm curious. What your take on that is?
- 23:00Yeah, I think we still have a lot to observe here.
- 23:03I think things will continue to evolve.
- 23:04I think the jury still out. I think think that the pace will
- 23:07continue to be really rapid. I think, from a tooling
- 23:09perspective, that's important to be opinionated on some pieces
- 23:13and maybe like less opinionated. Another is where things are.
- 23:16Like less must cauterized it son.
- 23:17It's not clear where we're going to end up.
- 23:19And I think that looking at something like fight, we
- 23:21actually we see this where like flight puts like strong typing
- 23:25front and center. Like that is an opinion that the
- 23:27tool has and now that becomes this constraint that all of the
- 23:31players have to operate and right and actually becomes the
- 23:34like some from the language that like they're speaking
- 23:36interacting through, but as an orchestration to a plane is also
- 23:39an opinionated on like how you get a test done and actually is
- 23:42highly extensible and supports a variety of plugins to interop
- 23:45with. Various tools, whether they're
- 23:47like Legacy tools that you may be using at your company or
- 23:50maybe some future tool that isn't invented yet.
- 23:51It's built to work well with these.
- 23:53And I think as the think as this ecosystem of olives and is your
- 23:56noting though a roles folks play, I think it will get in
- 24:00particular, will naturally fit in with us.
- 24:06Hey, I'm Vishnu. I'm a data scientist at first
- 24:09hand, and I definitely think that you should subscribe to the
- 24:13ml Ops coffee sessions podcast. It's the best podcast out there
- 24:16to stay on top of what ml Ops actually is to talk to the
- 24:20truth, thought leaders in the space.
- 24:22And oh by the way, Demetrius is absolutely hilarious.
- 24:25What a weird guy, you should definitely subscribe to the
- 24:27podcast. Something.
- 24:31I'm I've been curious about is just kind of going back to the
- 24:34distributed training space and we're talking about how ideas
- 24:37develop and we kind of come to a consensus and products or tools
- 24:41forming. An opinion is important because
- 24:43that shapes the direction of things.
- 24:45One thing that came to mind was in the distributed training
- 24:48space, like, when you started data, parallelism was like the
- 24:52standard way to train models, right?
- 24:53And then as the models got so big, and there's a limit to
- 24:56which data parallelism works. I think it's a 1.3 billion
- 24:58parameters, some like that. And then Lining came into play
- 25:01and then tensor, parallelism. And it's only now that I'm
- 25:04starting to see some consensus on the definition of these
- 25:07things. What this means and where works
- 25:09and what the trade-offs are. Like when it's good, when it's
- 25:12bad, it's just want to chat about that because it seems like
- 25:15this happens a lot like these, it takes a while for there to be
- 25:19a consensus on what something means, but I find that's pretty
- 25:23challenging especially when you're learning about the space,
- 25:25right? And you're trying to, I guess,
- 25:27develop some sort of expertise, it feels like you're just like a
- 25:30moving Target. To speak.
- 25:32Yeah I think there's a combination pieces to think.
- 25:34They're I think I think one is not like over invest in a
- 25:38certain space until it has stabilized a bit.
- 25:40Don't don't constrain the system to meet like a certain set of
- 25:44assumptions aren't going to quite hold or haven't played
- 25:46themselves out yet. I think this also is important
- 25:48as you think about abstractions. Like it's, it's critically
- 25:51important that when building on top of these very complex
- 25:54systems that are orchestrating complex workloads, managing
- 25:57data, and all these various scenarios that Emily, Engineers
- 26:01and researchers in such a working at a higher level.
- 26:03There's of Attraction don't have to like really reason about
- 26:05that, but getting those abstractions, right?
- 26:07Is really difficult. And I saw this play out a lot at
- 26:10meta, I imagine. This is true in other areas of
- 26:12the domain as well. We're like you take a stab at
- 26:14some like nice clean simple abstraction and then it's like,
- 26:17uber. We need this like, one other
- 26:18thing to like poke a hole and then you like poke a hole here
- 26:21and then all of a sudden like you've reached all of these
- 26:23knobs from your level system, like way up into the upper layer
- 26:26and then everyone's frustrated. No one understands like what
- 26:29that knob does. And it's like, he totally You're
- 26:30what happens over here and seen up throwing it away like
- 26:33standing up a new thing. And so I think some of that you
- 26:35kind of have to accept but I think it's also really important
- 26:38to be super intentional about like what layers of abstraction
- 26:41you expose, how you expose them and when you jump to a lower
- 26:46layer in the stack and I think, as part of this, like there is
- 26:48no one-size-fits-all, there is so many use cases and reasons
- 26:53for operating at different layers trying to build
- 26:55one-size-fits-all is probably like a little goal but being
- 26:59intentional when Building tooling and abstractions of who
- 27:02you're targeting? What capabilities do you want to
- 27:05offer? And then when is it appropriate
- 27:06time to work at a different layer of the stack.
- 27:09Yeah, that's such a good point man.
- 27:11Yeah, and I think it's, I'm curious the kind of leading into
- 27:14what you're doing at Union right now.
- 27:15I'm curious what sort of abstractions make sense.
- 27:19Now given what you're working on which where do you see
- 27:21opportunities to improve those abstractions?
- 27:24And I see this also related to a big thing.
- 27:26I'm learning is framing. The problem is the most
- 27:28challenge is almost the most challenging part just like what
- 27:30is it that you're trying to actually do?
- 27:32There's lots of solutions out there kind of in search of a
- 27:34problem but finding the right problem to work on seems to
- 27:37really related to I mean or the right abstraction, right that
- 27:41you would use to yeah to solve some solution.
- 27:43So I'm curious that Union. What sort of work do you guys
- 27:46doing there? What sort of abstractions are
- 27:47you guys building? Absolutely, yeah, so there's a
- 27:48couple, there's a couple things we're investing in this space.
- 27:51One is Union ml, which is a layer built on top of flight and
- 27:56flank it that offers a higher level abstraction to really
- 27:59easily instantiate a models and stained a server to do inference
- 28:03on like an awesome way to get started extremely quickly it's
- 28:07it's fantastic. I Like the other another
- 28:09dimension that Union particular is focused on is removing more
- 28:14of the infrastructure management burden from teams, like flight
- 28:20flight itself, is an amazing tool but it's a production grade
- 28:24system that has to be deployed and managed and configured and
- 28:27there's a bunch of knobs and for companies that are like a
- 28:30quipped and prepared to take that on, it's super powerful.
- 28:33But for a lot of companies like the skillset that folks have I
- 28:39don't want to manage infrastructure, they really want
- 28:41to just get started and iterate, and ID, and experiment.
- 28:45And at Union, we're doing what we can starting with Union Cloud
- 28:48to get folks started as fast as they can, and remove, all of
- 28:52that burden this, there's a slight cluster running.
- 28:54You can hit it next to your workloads.
- 28:56You don't worry about managing them and it's available to you.
- 28:58There is another piece that I was thinking about and this goes
- 29:02back to, when Kate Town's been on here.
- 29:04I've Loved learning from him. He mentioned before the last
- 29:07time he was on here. Or how when you're doing machine
- 29:10learning, you can easily get into some kind of dag.
- 29:15Hell. And at the beginning, everything
- 29:17looks good and then after a year or so it's just a mess and it
- 29:22can that complexity can Spike and it can grow exponentially
- 29:27one piece that I was thinking about with what you were talking
- 29:30about and Union is your you're able and not just you, but the
- 29:37whole Union team. Is really working at such a low
- 29:40level for scale. And like you said, for this
- 29:43production level, what do you feel like you compare yourself
- 29:49to? Because I know there are a few
- 29:51other tools out there that are doing this.
- 29:54But do you feel like you are, like who when you look around
- 30:01and you say, what are the other tools that are doing what we're
- 30:03doing without saying? Oh, nobody is because we're the
- 30:06best and nobody can touch us. Obviously, who do you compare
- 30:10yourself to? Yes, I think it's important to
- 30:13think through the Journey of someone ideating and ultimately
- 30:17production izing their workload. It's really easy to start with
- 30:20some simple tooling and a simple space.
- 30:22Maybe it was from just like scripts and I notebook and you
- 30:25can get everything kind of running locally and to Kim's
- 30:27point, you know, they may be you turn these in a little like mini
- 30:29dag and then it's like just a little bit of a eunuch to go.
- 30:32Right to go Stitch a couple things together and then like
- 30:35quickly it snowballs and all of a sudden it's like whoa, what
- 30:37did I build? What am I managing?
- 30:38Here I think for me as I think about what flight offers and
- 30:42like what union is focused on is around getting the engineer from
- 30:48early idea to production seamlessly, I'm in particular
- 30:51new to a lot of the like the the tooling or this is actually the
- 30:54first time I've used kubernetes and so I'm learning as I'm here
- 30:56and I as an infrastructure engineer, I'm like, whoa, this
- 30:59is complicated, I can't imagine like a data scientist or
- 31:02engineer having to, like, think through a lot of these.
- 31:04These like pieces and configuration.
- 31:06It's a tool that you can start and do some of the Things you
- 31:09can run locally you can but it's but what first principles that
- 31:12enable it to go from that to production grade?
- 31:16Where all of the like caveat sand Corner cases of all been
- 31:20like thought through and handling are like built into the
- 31:23product that there's not this like big leap, you have to make,
- 31:26you don't have to rewrite your thing in some new tool.
- 31:28I think it's what that's something that's really awesome
- 31:31about flight and how it was built and in particular and I'm
- 31:35sure others. Other listeners know what was
- 31:36built and run a production scale with It is now used by 80 plus
- 31:39companies across the space, but as you alluded to, there's a
- 31:43whole bunch of folks investing in this space, I think there's a
- 31:46bunch of Open Source options and then a bunch of companies have
- 31:49built their own Solutions. We had when I met it.
- 31:51I think there's there are bunch of solutions like airflow, which
- 31:53you alluded to, which are commonplace, not necessarily
- 31:57because they serve the role of ml orchestration perfectly but
- 32:01because there's been an evolution around them.
- 32:04And so I think, I think something like, it's like,
- 32:06flight is able to bring a targeted purpose-built approach
- 32:10to improving the experience right here.
- 32:12Flow within looking at the ml space yet is a bunch of players
- 32:14in space. I think cuckoo is probably the
- 32:17may be the most prominent, but again, I think the jury is out
- 32:20here. I think there's there's a I
- 32:21think there's a lot to be figured out and at the end of
- 32:23the day, the system that supports complexity is highly
- 32:27reliable efficient and performance but also provides
- 32:30like a nice highly iterable abstraction for folks on is the
- 32:34one that will win. Yes, really good answer you
- 32:36mentioned that principles often. Form these things like the from
- 32:41your experience, in the distributed training space.
- 32:44And with the a infrastructure at meta, what are some of those
- 32:46principles that you learn from that experience specifically
- 32:49that you think can be brought into a tool like Union to
- 32:53improve it? Because I feel like the
- 32:55distributed training space is like HPC mixed in with deep
- 32:57learning rate and a lot of the learnings from systems
- 33:00engineering, right is apply to the specific context of deep
- 33:03learning or machine learning. But what are some of the general
- 33:06principles that are really useful there?
- 33:08Sure that you see being applied to a tool like Union, so that it
- 33:12is kind of like dutt. The users of this are forced to
- 33:16like to use those principles or those best practices so to
- 33:19speak. Yeah, I think a couple examples
- 33:21that it exists today and I think there's opportunities to extend
- 33:23upon these one around like version management repeatability
- 33:27and cash ability within flight. This is something that that we
- 33:31had and orchestration system at meta.
- 33:34I think I kind of took it for granted, or I seemed obvious is
- 33:37desirable and wench. With kids on another's that
- 33:39Union when I first met them, like this is one of the first
- 33:42things they read up which is this is super powerful.
- 33:44Ml is highly iterate, like we should be reusing steps along
- 33:48the way, we should expect to run, beginning to end.
- 33:51We need to go back and rerun this piece.
- 33:52Try something new here and so building this in baking this
- 33:56into the product. And the way that you actually
- 33:58build a pipeline, I think is really cool.
- 34:00And Not only was there for thought in doing this the way
- 34:02kitten spoke to. This was like oh yeah.
- 34:04Like of course we would have this like why would you do this
- 34:06any other way? Like why would people not
- 34:07leverage this? Interesting is not something
- 34:10that I saw leveraged as broadly and my kind of meta.
- 34:13And so I think there's I think that the team at Union is really
- 34:16a couple steps ahead here and I think a lot of this is based on
- 34:19their experience, working at lift and production.
- 34:21Izing is there, and I think is a whole bunch of features that
- 34:25exist today and the product and get, I think will pull into the
- 34:28product over time. That users don't even know how
- 34:32powerful it is yet and don't even know what they will need
- 34:35when they move from the second idea, phase to production.
- 34:38Larger scale doing some these problems?
- 34:42Yeah, that's one thing that I love, I know what's coming.
- 34:45So we're going to try and prepare Union and flight for
- 34:49that future, because it's inevitable.
- 34:52When you get to a larger scale, you're going to hit some of
- 34:55these hiccups. And these challenges, you can
- 34:57speak to an interesting example that we faced while I was at
- 35:00met. As soon as your training on tens
- 35:02or hundreds of machines, concurrently as part of a
- 35:04single, like, step of a pipeline, you just have a whole
- 35:07bunch of, like, Problems around like fault tolerance.
- 35:12Like, how do you make forward progress?
- 35:14When like you have certain types of failure rates or even like
- 35:17planned outages? So for instance, when we think
- 35:18about how do you roll out, post updates like firmware updates or
- 35:22like driver updates to a set of machines.
- 35:25If you now imagine that you want to complete this leg roll out
- 35:27across the fleet in some time, but you have these jobs that are
- 35:31running on tens or hundreds of machines.
- 35:33You have to interrupt them to roll this out.
- 35:36But if you interrupt them independently, Up doing that
- 35:39job, tens or hundreds of times if you don't like aware of what
- 35:42like what is this job doing? These nodes are all like
- 35:44interconnected. We need to like plan for this.
- 35:46How do we cooperatively? Make sure that we're like, you
- 35:49know, getting to some saved, check pointed State before we
- 35:52didn't interrupt the job so that we don't throw away a bunch of
- 35:55GPU compute hours worth of work. There's a bunch of interesting
- 35:58complex problems here. You don't know if this is
- 36:00something that users of flight have run into yet.
- 36:03And I think there's lots of opportunity for these kind of
- 36:05things as like compute skills up and job just become Bigger when
- 36:09more advanced use cases, one kind of like super specific
- 36:12question. But I'm curious because I was
- 36:13working on it and my last company is checkpointing.
- 36:16So like you mentioned these really long running training
- 36:19jobs, you do not want them to fail, you want it.
- 36:21And if they do hopefully restart from that checkpoint, that did
- 36:26fail is Union working on anything along those lines to
- 36:29enable it. Super easy for these
- 36:31long-running job skiff. The they do fail to restart from
- 36:34there like previous check point. Yes.
- 36:36Oh yes. Um, Supply does not feature
- 36:37called inter-caste, check, Pointing which does just that
- 36:39there's this simple python API which lets you write a file to a
- 36:43well-known location and the orchestration system flight will
- 36:46feed you back this file restart and so the task can be built to
- 36:50directly leverage this. And if you're using something
- 36:52like Pine tortures like layers of abstraction built on top of
- 36:55this and you can recover, they can kind of plug-in and
- 36:57incorporate to this system. That's awesome.
- 37:00Any sorry. I'm one last thing.
- 37:02What about? And I know there's been lots of
- 37:03work in these place. A libraries like deep speed or
- 37:06Fair scale. That will take your model and
- 37:08automatically partition it for you.
- 37:10Is there any interest in combining that sort of
- 37:13functionality? It seems like it'd be hard
- 37:15though, right? Because that space is changing
- 37:17and it seems Union is mostly focusing on the orchestration of
- 37:20a lot of these things. But will it also includes some
- 37:22of those use cases? Yeah, I think it's a good
- 37:24question. I think you need is a young
- 37:25company and it is focusing on what it does really well.
- 37:28Which is Orchestration layer and executing their in really
- 37:32empowering layers above in various Integrations, to no
- 37:36leverage, those exploit some of these advancements.
- 37:38Like you're noting what the future holds for Union.
- 37:39I think I think TVD I think there's a lot of there's a lot
- 37:42of room for growth. We have a ton of really awesome
- 37:44and smart people at the company that are highly plugged into
- 37:47what's going on in the industry. It's pretty cool to see the
- 37:50communication within the company and Shane sharing of new ideas.
- 37:53New tech that comes out like what's hot right now.
- 37:55But I think at the moment, focusing on the skill set that
- 37:58the team has Has. And like, what?
- 37:59They've? What they're proven themselves
- 38:01in a delivered Rajan and expanding on.
- 38:03It is with votes. I think it's wise, right?
- 38:06You do what you're best at or what you're good at.
- 38:08There's too many things going on in this space to take a stab at
- 38:11the mall. But it's nice to know that
- 38:13there's people that are good at keeping up with all that, right?
- 38:16Because I feel like that's even a skill in and of itself just
- 38:18like what is going on in the space?
- 38:20Like I suck at it. I always find out last minute on
- 38:23then when Some people post some paper or something but it just
- 38:26so fast moving so I can only imagine it probably wouldn't
- 38:29make sense or wouldn't be wise for a company to make that
- 38:31they're like business strategy, right?
- 38:33We're just going to keep up with everything.
- 38:36Yeah, then you end up chasing just the next new thing.
- 38:41And all of a sudden you're creating a crypto company.
- 38:46Anyways, man, Andrew anything that you would have liked us to
- 38:50ask you that we didn't get to think.
- 38:52We really covered a ton here has been an awesome conversation.
- 38:57Yeah, yeah, yeah. I really enjoyed it.
- 38:58I'm looking forward to seeing what comes out of Union and
- 39:02hopefully we can have another podcast with you in the future
- 39:04where you would. Let us know exactly what you
- 39:06guys are up to. Yeah.
- 39:07And yet look really looking forward to that.
- 39:08Awesome, thank you so much guys. Sweep in take care.
- 39:13This is Skylar, I lead machine learning and health rhythms.
- 39:17If you want to stay on top of everything happening in ml.
- 39:21Ops, subscribe to this podcast now.