IntermediateAbout 22 min

    Model Deployment & Prediction Service

    Read the full article on Substack

    7 min read.

    Deploying is easy if you ignore all the hard parts. Four myths against the Uber, Booking.com and Algorithmia numbers, batch against online prediction, a compression slider that reproduces the Roblox 7x result, and why the browser is an edge device.

    Think of it this way: A restaurant choosing between a buffet and a kitchen. The buffet cooks everything in advance — enormous throughput, nothing waits, and it cannot serve a dish nobody anticipated. The kitchen cooks on demand — anything on the menu, but every diner waits for the stove.

    “You only deploy one or two ML models at a time.”

    A ride-sharing app needs models for demand, driver supply, arrival time, pricing, fraud and churn. Ten models in 20 countries is 200 models.

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    Batch or online prediction?

    Sort

    Sort each trait into the prediction pattern it describes.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    Batch

    Drop items here

    Online

    Drop items here
    6 pieces left to place

    Quiz

    20 questions
    Question 1 of 20
    Score: 0

    Wrapping a predict function in a Flask endpoint, containerizing it and pushing to a cloud provider takes roughly:

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going