Ba

Batteries Included AI Deployment

Hacker News

Batteries Included AI Deployment

Hi HN, I've spent the better part of the last year deploying AI inference systems for both personal and work projects. I've noticed a ton of "gotchas" and footguns throughout the process that make doing it right a pain, so I built "Batteries Included AI Deployment". Not a creative name but it does what it says on the tin. In short, it's a template for deploying AI inference APIs with FastAPI. In long, it uses Docker to encapsulate (almost) the entire development and deployment process. The repo includes: 1. A way to download and cache models straight from huggingface 2. A way to expose those cached models via a FastAPI server endpoint 3. A docker configuration that exposes a `debugpy` port so that you can debug your application within a container 4. A way to run tests 5. A way to debug tests (using `debugpy` as mentioned above) 6. A way to run pre-commits on staged files 7. A way to manually run pre-commits on all code in your repository 8. CI steps via GitHub Actions 9. Full Observability with a Grafana Dashboard 10. Metrics via Prometheus 11. Tracing via Tempo 12. Logs via Loki 13. GPU monitoring via DCGM 14. CD via GitHub actions and a `post-receive` hook on the server 15. Alerts that email you when something goes wrong in production I say "almost" because you still need a way to attach to the debugger port from outside the docker container and there's some one-time configurations that need to be set up manually, but not anything beyond that. I'd love to hear any feedback you might have :)

Share card

Actual performance

2points
2comments
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
91%91% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: model, dock, models · Missing: mac, agents, macos
91%91% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: personal, way · Missing: mobile apps, ios, entrepreneurs
39%39% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
32%32% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: ide, io · Missing: https docs, excited, just released
29%29% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
21%21% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Do
Dotfiles – Batteries included, dotfile configurations56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Dotfiles – Batteries included, dotfile configurations

Hacker News1
Fi
Fineweb-Edu-Fortified dataset: Fineweb-Edu deduped, embeddings included61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Fineweb-Edu-Fortified dataset: Fineweb-Edu deduped, embeddings included

Hacker News22
IndieSaasDeals
IndieSaasDeals54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Appsumo for indiehackers, (backlink included)

Indie Hackers1advertising
De
Deployment system for webapps, Rollout is rolled out47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Deployment system for webapps, Rollout is rolled out

Hacker News2
Ra
Rails Deployment Tutorial41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Rails Deployment Tutorial

Hacker News2
A
A Lambda Deployment Tool52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Lambda Deployment Tool

Hacker News1
Ca
Captain – More than a deployment tracker31%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Captain – More than a deployment tracker

Hacker News2
Za
Zalor – deployment gate for AI agents13%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Zalor – deployment gate for AI agents

Hacker News2
de
deploydo - Deployment Made Easy49%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

deploydo - Deployment Made Easy

Hacker News4
De
Deploydo – Deployment made easy49%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Deploydo – Deployment made easy

Hacker News46