DEV Community

Zaima Sohail
Zaima Sohail

Posted on Originally published at Medium on

7 Free Tools I Use to Deploy ML Apps (with No Budget)

Training the model was the easy part. Getting it online without a credit card was the real problem.

Let me be honest about something. For a long time my ML projects lived in Jupyter notebooks. They had good accuracy and nice confusion matrices, and nobody could use them. When a recruiter asked “Can I see it running?”, all I could send was a GitHub link and an apology.

I’m a grad student. I don’t have an AWS budget, and I don’t want a surprise bill because I left a GPU instance running over the weekend. So over the past year I’ve put together a stack of free tools that gets my projects out of notebooks and onto real URLs.

None of this is sponsored. It’s just what works for me, along with the catches I found the hard way.

1. Google Colab: where the training happens

My laptop is not a training machine. Colab gives me a free GPU in the browser, and for the small-to-medium models I build for portfolio projects, that’s usually enough.

How I use it: I train in Colab, save the model weights to Google Drive, and export them so they’re ready for deployment. I never deploy from Colab. It’s a workshop, not a storefront.

The catch: Sessions disconnect, and the free GPU isn’t guaranteed. Save checkpoints often. I learned this after losing two hours of training to a browser tab that went idle.

2. GitHub (and GitHub Actions): the backbone

Everything starts here. Almost every free deployment platform connects to GitHub, so a clean repo is the most useful thing you can have.

On top of that, GitHub Actions is free for public repositories. I use it for simple things: running my tests on every push and checking that requirements.txt actually installs. These sound boring until a broken dependency takes down your live demo the night before an interview.

My tip: Pin your package versions. “It works on my machine” becomes “it doesn’t work anywhere” the moment a library releases a new major version.

3. Streamlit Community Cloud: my default for demos

If you can write Python, you can build a Streamlit app. Then you connect your GitHub repo, click deploy, and you have a public URL. It’s the fastest path I know from model to shareable demo.

The catch: It comes with hard limits: roughly 1 GB of memory, apps that sleep after 12 hours without traffic, unlimited public apps but only one private app, and no custom domains. That 1 GB memory limit is the one that will bite you. Loading a large transformer model is a quick way to see the “Oh no” error screen.

Also, Streamlit only offers free resource increases to nonprofits and educational organizations, case by case, so don’t plan around getting one.

Best for: Dashboards, forecasting apps, tabular ML, and anything where the model is small.

4. Gradio: the fastest UI for a model

Gradio is a Python library, not a hosting platform, but it belongs on this list because it saves so much time. A few lines of code give you an input box, an output panel, and a working interface for an image classifier or a text model.

I use Gradio when the demo is “give it an input, see the prediction,” and Streamlit when I need a full dashboard with charts and filters.

A note on hosting Gradio apps: Hugging Face Spaces used to be the obvious free home for Gradio apps, but that changed this year. More on that in the next section.

5. Hugging Face Hub: where my models live

I keep my trained model files on the Hugging Face Hub instead of committing them to GitHub, which hates large files. My app then downloads the model at startup. This keeps the repo light, and the model gets a proper page with a model card.

The 2026 catch with Spaces: Hugging Face’s own docs now say that while CPU Basic hardware has no hourly cost, creating a Space that runs on compute (Gradio or Docker) requires a paid plan. Only Static Spaces are free for everyone. Many developers on the forums were surprised by this, since the restriction arrived around mid-2026 without much announcement.

So for me, the Hub is now mainly for storing and versioning models (still great and free), not running apps. If you have an older tutorial telling you to “just deploy on Spaces for free,” check the current rules first.

6. Render: when I need a real API

Sometimes a demo page isn’t enough and I need an actual REST endpoint, usually a FastAPI app that accepts JSON and returns predictions. That’s what I use Render for.

You connect your GitHub repo, set the start command (uvicorn main:app --host 0.0.0.0 --port $PORT), and you get a live API with HTTPS.

The catch: Free web services spin down after 15 minutes without traffic and take about a minute to wake up on the next request. Each workspace gets 750 free instance hours a month. Free instances are small too (512 MB RAM, 0.1 CPU), and if you add their free Postgres database, it expires 30 days after creation.

In practice, the first person to open my API after a quiet period waits about a minute. For a portfolio project, I’m fine with that. I just add a line in my README saying “first load may take ~60 seconds,” so recruiters don’t think it’s broken.

7. ONNX Runtime: the tool that makes everything else fit

This one surprised me. It’s not a hosting platform, but it’s probably the reason most of my apps survive on free tiers at all.

Free platforms give you very little memory, and a full PyTorch install is large. Exporting my model to ONNX format and running it with onnxruntime instead of the full framework makes my deployments much lighter and starts the apps faster. Add dynamic quantization, and models that crashed on Streamlit's memory limit suddenly run fine.

My rule now: Before deploying anything, I ask whether I can make the model smaller. Usually the answer is yes.

My actual workflow, start to finish

  1. Train in Colab, save checkpoints to Drive
  2. Shrink the model with ONNX export and quantization
  3. Upload the model to the Hugging Face Hub
  4. Push the app code to GitHub, with Actions running basic checks
  5. Deploy the UI on Streamlit Community Cloud, or the API on Render
  6. Put the live link at the top of the README and on my CV

Total cost: zero.

A few honest lessons

Free tiers change, sometimes without warning. The Hugging Face change this year is proof. Don’t build your whole portfolio on one platform. Keep your code portable, ideally with a Dockerfile in the repo, so you can move if you need to.

Cold starts are fine for a portfolio. Just tell people about them. A one-minute wait with a warning is better than a dead link.

A live demo beats a perfect notebook. A slightly rough app that someone can actually click on says more about you than a 98%-accuracy notebook nobody can run.

If you’re a student or early-career developer sitting on a folder of notebooks, pick your best project and deploy it this weekend. Free tools are enough to get it online.

If you have a free tool I missed, leave it in the comments. I’m always looking to add to my stack.

Top comments (0)