Better HN
topnewbestaskshowjobs
Log inSign up

donnygreenberg

56 karma · joined Apr 28, 2022 (4y ago) · 20 submissions

Submissions

comment 1y ago · link · parent

Hi HN,

AI/ML is a vertically integrated field. Frameworks and methods that integrate deeply down the stack win. Despite this, most open-source ML libraries and frameworks do not integrate with infrastructure whatsoever, leaving abundant scaling, fault-tolerance, resource-optimization, and reproducibility opportunities on the table. With so many infrastructure layers to support, like Kubernetes, Slurm, SageMaker, and more, this was a practical necessity for resource-constrained OSS maintainers.

Over the last year, as the ML world converged on Kubernetes, we saw a massive opportunity: To provide a native interface for OSS ML libraries and frameworks to integrate deeply with infrastructure, providing programmatic, "serverless" interfaces into Kubernetes which meets them there they are. Their code remains portable across clouds, OSS, and industry, and zero-cost abstractions give them all of Kubernetes' richness and control if they want it.

Today, we're open-sourcing Kubetorch to fill this gap. Others have tried to bring ML to Kubernetes, we're bringing Kubernetes to the ML devs. One fun use case is for OSS ML libraries to easily use custom compute in CI (e.g. GPUs, distributed) cost-effectively and portably.

If you have feedback, papercuts, or interest in collaborating, we'd love to hear!

2.

Open Sourcing Kubetorch(run.house ↗)

9 points · by donnygreenberg · 1y ago · 1 comment

comment 2y ago · link · parent

If you want a PyTorch-like experience on your own GPUs (either static or cloud), see https://github.com/run-house/runhouse

comment 2y ago · link · parent

Would be nice if this came with scripts which could launch the examples on compatible GPUs on cloud providers (rather than trying to guess?). Would anyone else be interested in that? Considering putting it together.

comment 2y ago · link · parent

Neat idea and elegant execution. The vibe I'm getting from the README is that I'd want to reach for this as a Python dev (over Streamlit or Gradio) if I already have a FastAPI app and want a simple dashboard in front of it. Is that right or am I misreading?

comment 3y ago · link · parent

Yes! It's natively supported in the cluster object. You can specify rh.cluster(name="my-a10", instance_type="A10:1", provider="aws"), and gcp, azure, and lambda labs are also supported, and if you leave provider empty it will pick the cheapest one across whichever clouds you have set up locally (e.g. have a ~/.aws/credentials)

7.

Please separate orchestration and execution (Or: Packaging hell is dragging ML)(run.house ↗)

8 points · by donnygreenberg · 3y ago · 2 comments

comment 3y ago · link · parent

Good catch - this is actually only for functions defined inside interactive Notebook or iPython environments, and we do have an option to bypass it (which serializes the function and state), but you probably don't want it by default. Any function defined inside normal python (even if you're using it within a notebook) doesn't doesn't need imports or variables in scope, you can ship it as is to remote compute. But notebooks are gnarly things, where you might have defined a variable and changed it many times, and finally used it inside a function which you want to run remotely as a service. You probably don't want that variable's state to be shipped over, and PyTorch doesn't do this either. This is why so much of stateful PyTorch is meant to be defined inside new nn.Module classes, to neatly package the state to send over to GPU memory. We offer more flexibility than that, but the more state you ship over, the more likely you are to hit version conflicts between the local and remote environments, which can be really annoying. We practically never run into those issues at Runhouse nowadays because we think we've found a sweet spot.

comment 3y ago · link · parent

Yes, we work pretty closely with them and they're lovely. Everyone should try SkyPilot.

comment 3y ago · link · parent

Good question. We actually use Ray to handle a bunch of the scheduling within the compute, but largely see our role as outside the compute. Meaning, Ray provides a powerful DSL for distributed compute, while we are aggressively DSL-free so users can ship Ray code, PyTorch Distributed, Accelerate, Horovod, etc. to their hardware through Runhouse. We're more focused on connecting disparate compute and storage and making them multiplayer (but largely see the cluster as an opaque unit of compute) while they're more focused on enabling distribution inside the cluster, if that makes sense.

comment 3y ago · link · parent

No, I know of CentML but don't deeply know the surface of hardware they compile for. I'm enthusiastic about projects like this and others which integrate with PyTorch 2.0. Flexible compilers make the value of being able to ship your code around to various hardware even more powerful.

comment 3y ago · link · parent

Excellent! Don't hesitate to reach out (donny at run dot house) if you want to chat about adopting our approach or using Runhouse.

comment 3y ago · link · parent

It's a great point. The funny thing is that the rest of the world just has dev, QA, and prod staging and canaries, while ML has "the 6 months it takes to translate from notebook to pipeline" or "uploading a new checkpoint/image to the platform." We can just stage properly and release through CD like everyone else does, but not spend 6 months flipping the switch. We built the ability to specify the package for a function as a git repo and a particular revision to enable this, and hopefully it means more people rely on version control as the source of truth in prod and not the most recently uploaded model checkpoint to Sagemaker. During experimentation though, it really is frustrating that many systems only allow you run what you've committed.

We've also built a basic permissioning system to control who can actually overwrite the saved version of a resource, so there are no accidents. E.g. if the prod inference blob is saved at "mikes_pizza/nlp/bert/bert_prod", you can set it so only x accounts can overwrite that metadata to point to a new model. Ideally we just inherit existing RBAC groups sometime soon.

Does that make sense? Curious if you had something else in mind as far as the danger.

comment 3y ago · link · parent

That's a good question. I actually love the Mojo concept, but see it as very different. They're creating a portable acceleration option in Python proper, while we're trying to make it so you can easily ship around such code to different infra. You can see them or other DSLs like Ray as handling "inside the cluster" while we're focused on solving "outside the cluster." That's what I've picked up from their marketing but could be missing something.

In general making code itself more portable is great (which is the objective of many ML compilers) and will make Runhouse even more valuable, because the ability to take the same code and send it to different places shines when those different places can be different compute types.

comment 3y ago · link · parent

Hi! That's awesome to hear, and very aligned with the devx we're going for. How was your system received?

In fact we totally agree and are not cloudpickling the function because of the package minor version issues. We sync over the code to the destination environment and the server imports it fresh, which is much more robust. The one piece of code that cloudpickles functions is a trap door for certain weird situations, but frankly we haven't had to use it in months.

16.

A PyTorch Approach to ML Infrastructure(run.house ↗)

113 points · by donnygreenberg · 3y ago · 22 comments

17.

Getting past the AI hackathon cold start problem – Remote Cluster Auto-setup(medium.com ↗)

4 points · by donnygreenberg · 3y ago · 1 comment

comment 3y ago · link · parent

I've been using SkyPilot for 3 months within an ML platform project and it is exactly as awesome as it sounds. The overall experience for launching and managing compute is thoughtful and ergonomic in a way that we've been conditioned not to expect from cloud compute (let alone GPU compute). It was a real shock to start using it, and now every time I need to jump back into the weeds of a cloud provider's APIs I'm reminded of how nice I have in SkyPilot land.

I think you'd have a hard time finding a better cloud launcher anywhere. I couldn't.