top | item 41569175

We are self-hosting our GPUs

67 points| adityapatadia | 1 year ago |gumlet.com | reply

59 comments

order
[+] godelski|1 year ago|reply
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).

[+] adityapatadia|1 year ago|reply
Nice ideas, but we have chosen a really simple Kubernetes deployment. We only install the host OS (ubuntu server) and then join the self-hosted GPUs as workers in a Kubernetes cluster.

No other task is needed and our Grafana monitors if the server (and its containers) are up and running.

[+] perryh2|1 year ago|reply
> 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?

[+] adityapatadia|1 year ago|reply
$40 per server per month. Includes bandwidth, cooling and internet.
[+] CommieBobDole|1 year ago|reply
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.

[+] ThinkBeat|1 year ago|reply
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.

[+] adityapatadia|1 year ago|reply
These servers are indeed job processing servers. They are critical but not milliseconds critical. Cooling, security, monitoring, backup generators, and backup of data all are taken care of.
[+] dangoodmanUT|1 year ago|reply
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.

[+] adityapatadia|1 year ago|reply
Tailscale :) We, fortunately, don't need these exposed to the internet so Tailscale works beautifully.
[+] rorra|1 year ago|reply
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
[+] teaearlgraycold|1 year ago|reply
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.
[+] drio|1 year ago|reply
Would you mind sharing the name of the data center?
[+] not_your_vase|1 year ago|reply

  > 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...)
[+] adityapatadia|1 year ago|reply
Probably yes but we just built it to be cheaper. AM5 is on the costlier side and we don't plan to upgrade these machines. Our calculation is we can retire them by the end of 3 years.
[+] bitfilped|1 year ago|reply
Typically components are never upgraded in a server: you spec it, buy it, write it off in 3-5 years, then throw it away.
[+] p0w3n3d|1 year ago|reply
Shouldn't they be named VPU (vector processing units) as they are no longer to produce graphics?
[+] rurban|1 year ago|reply
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, ...
[+] BonoboIO|1 year ago|reply
Hetzner has RTX 4000 for 185€ per month. Is your solution cheaper?
[+] teaearlgraycold|1 year ago|reply
Seems like it should break even around a year in
[+] qmarchi|1 year ago|reply
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.

[+] drio|1 year ago|reply
Do you mind sharing the details of the rack mount you use?
[+] LarsDu88|1 year ago|reply
How many GPU servers are we talking about here exactly?
[+] adityapatadia|1 year ago|reply
We bought 21. This is just a start.
[+] erichileman|1 year ago|reply
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.
[+] 015a|1 year ago|reply
I think you're reading that page wrong; but their pricing page is so confusing that its giving me red flags already.

It says that would cost $6.51/hr and $4752/yr: I think you pay both of those things. I think the first number is the hourly cost, and the second number is the annual commitment. So its $56,246/year if you're running 24x7 + $4,756 = $61,002/year total.

[+] pella|1 year ago|reply
> "Dedicated GPU clusters for accelerated computing"

- so you have to add the price of AMD/Intel bare metal servers.

- the price of "Networking" PER TB

- and the "Additional services pricing"

https://www.latitude.sh/pricing

[+] SteveNuts|1 year ago|reply
It looks like their on-demand price would cost $81,468 per year

So even at the reserved price for a year (365 * 24 * $6.51) you're nowhere near $4,750 per year, it's closer to $60k

[+] briandilley|1 year ago|reply
I skimmed to the part about "We host it in our WeWork office" and thought WTF?