Deploy ML models with FastAPI, Docker, and Heroku | Tutorial

Поділитися
Вставка
  • Опубліковано 6 лип 2024
  • In this Tutorial you'll learn how to deploy Machine Learning models with FastAPI, Docker, and Heroku.
    Code: github.com/AssemblyAI-Example...
    Resources:
    fastapi.tiangolo.com/deployme...
    devcenter.heroku.com/categori...
    github.com/basil-b2s/Language...
    Get your Free Token for AssemblyAI Speech-To-Text API 👇www.assemblyai.com/?...
    ▬▬▬▬▬▬▬▬▬▬▬▬ CONNECT ▬▬▬▬▬▬▬▬▬▬▬▬
    🖥️ Website: www.assemblyai.com
    🐦 Twitter: / assemblyai
    🦾 Discord: / discord
    ▶️ Subscribe: ua-cam.com/users/AssemblyAI?...
    🔥 We're hiring! Check our open roles: www.assemblyai.com/careers
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Timeline:
    00:00 Introduction
    01:08 Model Development
    05:00 FastAPI app
    08:44 Dockerize the app
    14:14 Deployment to Heroku
    17:46 Final Testing
    #MachineLearning #FastAPI

КОМЕНТАРІ • 49

  • @davegordon6233
    @davegordon6233 10 місяців тому +4

    Best explanation I found in 3 days! Thank you.

  • @wuttipatsricharoensuk5072
    @wuttipatsricharoensuk5072 Рік тому +8

    Thank you so much for sharing this excellent tutorial. I followed the steps, and I was able to successfully deploy my first model. Your clear explanations and step-by-step guidance made the process really smooth and enjoyable.

    • @ary_21
      @ary_21 Рік тому

      heroku doesnt have a free tier anymore , you have a paid subscription?

    • @wuttipatsricharoensuk5072
      @wuttipatsricharoensuk5072 Рік тому

      @@ary_21 I haven't subscribed to any paid plan on Heroku. I just deleted the app once I finished deploying it. Since it avoids any unnecessary costs while still taking advantage of learning and experimentation.

    • @ary_21
      @ary_21 Рік тому

      @@wuttipatsricharoensuk5072got it, actually
      I have interviews in next 2 months so looking for.a solution for free deployment
      Being. A fresher i cant afford aws etc
      If you know any do let me know

    • @MrAmgadHasan
      @MrAmgadHasan Рік тому

      @@ary_21 render has a free tier that offers 512GB of RAM and 0.1 CPU.
      You can deploy fastapi (and even plotly dash and streamlit) there but your models need to be able to run with these limited resources.

  • @EGlobalKnowledge
    @EGlobalKnowledge 9 місяців тому

    Thank you very much, was able to deploy the whole thing

  • @boisiul
    @boisiul 8 місяців тому

    really great tutorial, thanks man!

  • @checher100
    @checher100 Рік тому

    absolutely great! Thanks for that

  • @caxupin6666
    @caxupin6666 Рік тому

    Thanks for the video!

  • @ajeetsbpr
    @ajeetsbpr 10 місяців тому

    Thanks for explaining this.

  • @codecrush_666
    @codecrush_666 7 місяців тому

    thanks a lot for sharing, excellent tutorial!

  • @MrShihab100
    @MrShihab100 25 днів тому

    Thanks for this professional tutorial :)

  • @muhammadumarsotvoldiev8768
    @muhammadumarsotvoldiev8768 10 місяців тому

    thank you. This video helped me a lot

  • @TheSkogemann
    @TheSkogemann Рік тому

    Thank you! 👏

  • @currentactivities6527
    @currentactivities6527 8 місяців тому

    thank you for sharing ❤

  • @theiyobosa
    @theiyobosa Рік тому

    Amazing!

  • @TAP7a
    @TAP7a 9 місяців тому +1

    The filling in of the requirements.txt part is why all python users should use envs by default, all the time :)

  • @ivan07valdes
    @ivan07valdes 5 місяців тому

    What a good video!

  • @aminatashnezhad
    @aminatashnezhad Рік тому

    great job.

  • @ElskiezVazcez
    @ElskiezVazcez Рік тому

    thanks mate

  • @jonahturner2969
    @jonahturner2969 Рік тому +2

    Hey, thanks for the tutorial! We've noticed that our production FastAPI services all suffer from memory leaks, any suggestions/experience with that?

  • @jamm9848
    @jamm9848 Рік тому +2

    Thank you for the video. Will deployment work for large files for example an ml model of up to 2 Gb in size?

  • @manhpham5772
    @manhpham5772 Рік тому

    Great tutorial! But could you tell me how to deal with docker-compose and Heroku, I have frontend and backend containers...

  • @FiringTap
    @FiringTap Місяць тому

    genius!

  • @hpatelecom1
    @hpatelecom1 10 місяців тому

    Briliant Patric

  • @mendezluis3346
    @mendezluis3346 Рік тому

    Hello, I have an error, when I deploy the model on Heroku, and then open the app, display a r15 and r14 error, what should i do? I try the model with tensorflow-cpu

  • @mansamusa559
    @mansamusa559 Рік тому

    Thanks! Does anyone know how to easily deploy an ML Model which requires GPU ? (Like ine tuned stable diffusion model)

  • @caiyu538
    @caiyu538 Рік тому

    Great

  • @noobjok3r640
    @noobjok3r640 2 місяці тому

    can you help me like i want to a image classification ml model to deploy but in ur video its string version

  • @ollieq5259
    @ollieq5259 Рік тому

    Hey, at 14:52, you're using iTerm2 as your terminal in MacOS right? I also use it. But how did you make it pretty, specifically getting that 'arrow' shape over the text, and making part of the text blue? :)

    • @Vicitoriachi
      @Vicitoriachi Рік тому

      He's using the zsh (Z-shell) unix shell, instead of bash ;).

  • @ahb5819
    @ahb5819 Рік тому +5

    Heroku no longer has an free tier, any other recommendations?
    Btw great video 😊

    • @ashishmehra5143
      @ashishmehra5143 4 місяці тому

      Vercel is a free option but I have not seen a success after deployment. I am able to run the application locally but when not after the deployment.

  • @saifulislam-iv9px
    @saifulislam-iv9px Рік тому

    Möge Gott dich segnen!

  • @user-vh3xp4rt5r
    @user-vh3xp4rt5r Рік тому

    Can you give link to google colab notebook?

  • @alice.access5
    @alice.access5 21 день тому

    for bigger models, doesn't this cost a lot to host and run per month?

  • @smiley3239
    @smiley3239 4 місяці тому

    other than heroku, when can we deploy it?

  • @FiringTap
    @FiringTap Місяць тому

    If i have my idea can i deploy public ?

  • @googlecolab7388
    @googlecolab7388 Рік тому

    like your smile

  • @cesaravalos7591
    @cesaravalos7591 2 місяці тому

    2:00 Portugeese 🦆🦆🦆🤣🤣🤣

  • @deepjyotibaishya7576
    @deepjyotibaishya7576 20 днів тому

    How to train in deep

  • @adia9791
    @adia9791 11 місяців тому

    Shouldnt you use ohe?

  • @markcuello5
    @markcuello5 Рік тому

    HELP

  • @thisiskartik
    @thisiskartik 8 місяців тому +4

    Its a great video but I need to give a thumbs down because you never made this video a beginner friendly, Docker is really new to me as well has deploying it on heroku, it would have been great if you just a 1min introduction to what they are or where can we lear, like a prerequisite in the beginning of the video.

  • @smilebig3884
    @smilebig3884 5 місяців тому

    too basic.

  • @GorTer-Balyants
    @GorTer-Balyants День тому

    Why you talk like that

  • @GorTer-Balyants
    @GorTer-Balyants День тому

    why you talk like that