Ask HN: What do you use for ML Hosting?
I'm trying to setup server to run ML inferences. I need to provision a somewhat beefy gpu with a decent amount of RAM (8-16 GB). Does anyone here have personal experience and recommendations about the various companies operating in this space?
68 comments
[ 3.2 ms ] story [ 138 ms ] threadFor non-serverless, some to check out are these (though likely all overkill if you just need a single GPU)
https://www.coreweave.com/
vast.ai
Lambda labs
[0] https://cloudmarketplace.oracle.com/marketplace/en_US/adf.ta...
The first two are more customizable than the last. SageMaker is the cheapest.
I'm at erik@banana.dev if you want any help with it :)
Eg. might have only a few minutes of usage in an hour and the rest of the time is spent waiting for requests. How's that billed?
I pay my cell bill a year in advance - then I never have to worry about a bill ever.
Small note here: our billing is changing within the next month, to up-front payments that apply as a credit balance to your account. It still won't have minimums and you'll have the option to set up auto-refill on your balance, so it will functionally remain pay-as-you-go, but just wanted to add flavor to your comment on the pricing model.
Thanks for using us btw, you rock
They’ll take a FastAPI setup too and just put it online to be used on demand.
You can check out available GPUs at https://modal.com/docs/reference/modal.gpu.
There's also a bunch of easy-to-run examples in our docs :) https://modal.com/docs/guide/ex/stable_diffusion_cli
I use mix of both for my side project: https://trainengine.ai
We've got some big cold improvements rolling out across everything soon. We can also just keep models switched on to avoid cold boots entirely.
I'm assuming you know what you need for a GPU. If you're unsure, consider trying to run inferences on a CPU and see how long it takes and if it could work.
And then just look at price and reliability for a gpu machine with the different cloud providers. Ovh is cheap but the only thing worse than their reliability is their customer service. Various niche players offering V100s used to pop up that were pretty cheap. AWS is more expensive, more reliable, they may still have availability problems. Paperspace looks pretty good. Etc.
Modal eng here. Modal is not setup as a framework. Think of more as Python-defined serverless infrastructure that has native support for the Python runtime. This is in some places called "Infrastructure from code", as opposed to "Infrastructure as code" which means just source-controlling K8s YAML and Cloudformation.
A major benefit of this approach is that the cloud becomes part of your dev loop, as opposed to doing `docker build`, `docker push`, `kubectl`, etc just to ship a change to a GPU.
In the script I posted Modal APIs are mixed in with standard Python code for brevity, but many customers just keep their code in their own modules and have a `modal_infra.py` module that defines the serverless infrastructure.
This is exactly what you’re looking for
There's one I won't share that's is now defunct but you could use any diffuser's compatible project on Hugging Face, which was such a cool feature. I wish someone (cheap) would implement this!
edit: just looked at banana.dev in this thread, their templates look closest to the HuggingFace integration though I don't think they have webhooks.
It's also worth noting that we bill by the second for how long your prediction is running, and we don't bill for any idle time, so in practice Replicate works out cheaper for many workloads. We can give discounts if you're putting through a decent amount of traffic. We should be able to match Runpod's pricing.
Drop me an email: ben@replicate.com
https://www.svix.com/
Wrapped the thing in a flask app so I can expose APIs I build out.