Show HN: Build Machine Learning Web-Service with Python and Django
github.com
github.com
I would love to add more advanced part of the tutorial with background processing for large models.
In our case, we do on-the-fly GPU calls, with weird spiking behavior, so been looking for a good serverless GPU solution for this kind of stuff.
It's a simple drag and drop to deploy tensorflow, scikit, spacy, keras or pytorch.
1. Is it open-source?
2. Can I add models with REST API?
3. How do you handle large models? Are they working in the background or you just use larger severs?
2. Yes! We will be releasing tokens soon so that anyone can interact with the API.
3. Models can be up to 1GB, each model gets their own server , we only do real-time predictions for now. Meaning the models are constantly running waiting for a request
We should start thinking about an ML life cycle were data is ingested, data labeled labeled, models trained, model tested, model deployed and monitored. Rinse, lather, repeat.
You can run `deepserve deploy` on the command line and it will stand up a REST endpoint for your model. I'm also building client side SDKs to make it easier to call on these models in your application code.
It's still in beta but feel free to reach out to me jeff @ deepserve.ai
For just a REST ML model endpoint, Flask does everything you need, and no more. It's a perfect fit.
If we are talking speed and simplicity then I would father go with Fast Api rather than flask.
In Flask you need to add many things to make it usable.
If you check the code of the tutorial you will see that it differs from the most of the ML-to-REST-API tutorials. It's not only setting the endpoint. You can have many algorithms with many versions and stages (testing, production). There is A/B testing example. Of course you can do all in Flask but I prefer Django because many things are there already.