We are self-hosting our GPUs

by adityapatadiaon 9/17/24, 4:08 PMwith 59 comments
by godelskion 9/17/24, 6:51 PM

As a ML person who's also worked on HPC stuff, you will most certainly save money by doing this and there are plenty of benefits. It is generally a good idea, but there is a bit more barrier to entry and you need in house expertise.

So important piece of advice. If you can, hire an admin with HPC experience. If you can't, find ML people with HPC experience. Things you can ask about are slurm, environment modules (this clear sign!), what a flash buffer is, zfs, what they know about pytorch DDP, their linux experience, if they've built a cluster before, adminning linux, and so on. If you need a test, ask them to write a simple bash script to run some task and see if everything has functions and if they know how to do variable defaults. With these guys, they won't know everything but they'll be able to pick up the slack and probably enjoy it. As long as you have more than one. Adminning is a shitty job so if you only have one they'll hate their life.

There are plenty of ML people who have this experience[0], and you'll really reap rewards for having a few people with even a bit of this knowledge. Without this knowledge it is easy to buy the wrong things or have your system run far from efficient and end up with frustrated engineers/researchers. Even with only a handful of people running experiments schedulers (like slurm) still have huge benefits. You can do more complicated sweeps than wandb, batch submit jobs, track usage, allocate usage, easily cut up your nodes or even a single machine into {dev,prod,train,etc} spaces, and much more. Most importantly, a scheduler (slurm) will help prevent your admin from quitting as it'll help prevent them from going into a spiral of frustration.

[0] At least in my experience these tend to be higher quality ML people too, but not always. I think we can infer why there would be a correlation (details).

by perryh2on 9/17/24, 6:09 PM

> We however found that our co-working space - WeWork has an excellent server hosting solution. We could put the servers on the same floor as our office and they would provide redundant power supply, cooling and internet connection. This entire package is available at a much cheaper rate and we immediately jumped on this. Right now all servers are securely running in our office.

Nice! How much does this cost?

by CommieBobDoleon 9/17/24, 6:37 PM

I think generally the benefit of cloud is either where your demands are very elastic, or if you are essentially a fractional user - a single server or GPU would be overkill.

Once you have heavy and/or unconventional compute needs, it's likely cheaper to self-host or colo purchased hardware.

by ThinkBeaton 9/18/24, 12:17 AM

This does not make sense to me.

They are processing 2.5 Billion images and videos in a single day. They decided to self host their GPUs.

The solution uses off-the-shelf hardware, with GPU per "server", add it all together into a single rack? And that is the GPU compute needed to process all the videos 24/7?

Then they have this rack in the office, but they cant find a place to put it. That might be a decent thing to start out with, before the build. Where do we put it?

But no. Planning for multiple network links, multiple redundant power, cooling, security, monitoring, and backup generators, handling backups, fire suppression, and failover to a different region if something fails was not necessary.

Because Google book?

But our (insert ad here) WeWork let us put our servers in a room on the same floor, (their data centerish capabilities seem limited)

There are so many additional costs that are not factored into the article.

I am sure once they accrue serious downtime a few times and irate customers, then paying for hosting in a proper data center might start making sense.

Now I am basing this comment on the assumption that the company is providing continuous real-time operations for their clients.

If it is more batch operated, where downtime is fine as long as results are delivered let us say within 12 hours.

by dangoodmanUTon 9/17/24, 6:18 PM

How did you expose the servers to the internet, if at all?

I'd personally have these on tailscale, not exposed to the internet, but at some point in self hosting, clients have to be able to talk to something.

I know tailscale has their endpoints but I can't expect this to be able to server a production API at scale.

by rorraon 9/17/24, 6:09 PM

It would be nice if you can add numbers, like what would be the cost in your cloud provider, what was the total investment made, how much are you saving, which other options did you have in mind and why were discarded Still it was a nice post to read

by teaearlgraycoldon 9/17/24, 6:12 PM

At my last job we did the same thing but for AI training hardware. It was definitely the right call cost-wise, with our little cluster breaking even after 8 months. We found a cheap data center in Texas.

by not_your_vaseon 9/17/24, 4:30 PM

  > AMD 5700x processor
I find it to be an odd choice. I mean the CPU itself is perfectly fine (typing this myself on a 5600G, which I very much like), but AM4 socket is pretty much over - there is no upgrade path anymore once it starts getting long on the tooth. (Unlike the other parts, which can be bumped: RAM, GPU, storage...)

by p0w3n3don 9/17/24, 7:25 PM

Shouldn't they be named VPU (vector processing units) as they are no longer to produce graphics?

by rurbanon 9/17/24, 9:22 PM

We also do, and you'd need to add a couple more zero's for the cost. For administration it paid out that I'm a trained architect, because all the work is in cooling the room. Lots of temperature shielding and air and water flow, monitors, ...

by rkwasnyon 9/17/24, 7:19 PM

RTX 4000 ADA? That's a very under powered card: https://github.com/mag-/gpu_benchmark

by BonoboIOon 9/17/24, 5:59 PM

Hetzner has RTX 4000 for 185€ per month. Is your solution cheaper?

by qmarchion 9/17/24, 7:21 PM

Tangential to the post:

Was going to toss an application your way since it sounds like interesting work, but it looks like the Google Form on your Careers page was deleted.

by drioon 9/18/24, 1:33 PM

Do you mind sharing the details of the rack mount you use?

by LarsDu88on 9/17/24, 6:41 PM

How many GPU servers are we talking about here exactly?

by erichilemanon 9/17/24, 5:57 PM

Why not run something like 8 x L40's for $4,750 a month from a bare metal provider like latitude.sh? This seems far more cost efficient and flexible.

by briandilleyon 9/17/24, 7:11 PM

I skimmed to the part about "We host it in our WeWork office" and thought WTF?