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

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.ค. 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: th-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

ความคิดเห็น • 47

  • @davegordon6233
    @davegordon6233 10 หลายเดือนก่อน +4

    Best explanation I found in 3 days! Thank you.

  • @EGlobalKnowledge
    @EGlobalKnowledge 9 หลายเดือนก่อน

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

  • @boisiul
    @boisiul 7 หลายเดือนก่อน

    really great tutorial, thanks man!

  • @checher100
    @checher100 ปีที่แล้ว

    absolutely great! Thanks for that

  • @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.

  • @MrShihab100
    @MrShihab100 21 วันที่ผ่านมา

    Thanks for this professional tutorial :)

  • @ajeetsbpr
    @ajeetsbpr 10 หลายเดือนก่อน

    Thanks for explaining this.

  • @codecrush_666
    @codecrush_666 7 หลายเดือนก่อน

    thanks a lot for sharing, excellent tutorial!

  • @caxupin6666
    @caxupin6666 ปีที่แล้ว

    Thanks for the video!

  • @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 :)

  • @manhpham5772
    @manhpham5772 ปีที่แล้ว

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

  • @ivan07valdes
    @ivan07valdes 5 หลายเดือนก่อน

    What a good video!

  • @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?

  • @aminatashnezhad
    @aminatashnezhad ปีที่แล้ว

    great job.

  • @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?

  • @ElskiezVazcez
    @ElskiezVazcez ปีที่แล้ว

    thanks mate

  • @hpatelecom1
    @hpatelecom1 9 หลายเดือนก่อน

    Briliant Patric

  • @FiringTap
    @FiringTap หลายเดือนก่อน

    genius!

  • @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)

  • @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 ;).

  • @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

  • @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?

  • @smiley3239
    @smiley3239 4 หลายเดือนก่อน

    other than heroku, when can we deploy it?

  • @FiringTap
    @FiringTap หลายเดือนก่อน

    If i have my idea can i deploy public ?

  • @alice.access5
    @alice.access5 17 วันที่ผ่านมา

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

  • @deepjyotibaishya7576
    @deepjyotibaishya7576 16 วันที่ผ่านมา

    How to train in deep

  • @googlecolab7388
    @googlecolab7388 ปีที่แล้ว

    like your smile

  • @cesaravalos7591
    @cesaravalos7591 2 หลายเดือนก่อน

    2:00 Portugeese 🦆🦆🦆🤣🤣🤣

  • @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.