Tutorial 4- Deployment Of ML Models In AWS EC2 Instance

Поділитися
Вставка
  • Опубліковано 20 гру 2024

КОМЕНТАРІ • 162

  • @SK-xr7up
    @SK-xr7up 3 роки тому +1

    Great video, I am new to AWS but already an expert now with this video. For user in the Winscp, give appropriate default user name based the machine you select
    Amazon Linux: ec2-user
    Ubuntu: ubuntu
    Debian : admin

  • @rachitvdo09
    @rachitvdo09 2 роки тому +1

    Thank you so much for posting this playlist. I am looking to switch my role as data scientist and I stuck in interviews when the interviewer asks about experience in production. I just got rejection from a great company but then I came to know about your video and replicated the deployment steps for different platforms. I am beyond grateful to you for the videos as I was able to learn deployment within a few days

  • @mauryasameer
    @mauryasameer 4 роки тому +17

    This video has helped me so much I just can't explain in words, thanks a lot Krish, keep up the good work

  • @sabyasachidas4977
    @sabyasachidas4977 2 роки тому

    Thank you So much sir . i was trying connect to AWS EC2 since from many Days . you have explained the Security setting and it worked for me. Many Thanks .

  • @FreedomForKashmir
    @FreedomForKashmir 3 роки тому +2

    STOP and read this.... it will help you.
    Whole video is very good and educative
    but there is a problem with hypercorn command(hypercorn main:app --reload) at the end.
    When running it on localhost of your laptop ... its fine. But when running it on cloud you would have to explicitly give it host and post number .... otherwise you won't be able to access it using DNS or public IP of your EC2 instance
    Use this command on cloud terminal >>>>> hypercorn main:app --host 0.0.0.0 --port 8000
    OR(if you are using uvicorn)
    Use this command >>>>> uvicorn main:app --host 0.0.0.0 --port 8000
    hope it would help

  • @omkarr8282
    @omkarr8282 4 роки тому +4

    This ML model deployment playlist is just too good.....there are some courses on udemy where in one course only teach you how to implement pickle objects through flask....really thanks for sharing such valuable content!! You are doing amazing work here!

  • @nithinkandula5844
    @nithinkandula5844 3 роки тому

    thank you very much krish. The goal oriented explanation is what i liked the most in your videos i mean top to bottom approach. expecting more videos from you.

  • @nazymsatbekova8863
    @nazymsatbekova8863 2 роки тому +1

    Love your channel! thank you very much for your work, such a high-energy and compact content for my needs!

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

    This is unmatched. I recently enjoyed a similar book, and it was unmatched. "Mastering AWS: A Software Engineers Guide" by Nathan Vale

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

    This is actually helpfull, i was struggling to understand this. Thanks a lot

  • @DhrubSatyam
    @DhrubSatyam 5 років тому +3

    Most awaited video. Thanks Krish for sharing it! :-)

  • @jaikishank
    @jaikishank 2 роки тому

    Thanks Krish for the Great tutorial as always !!!! and could implement successfully in AWS

  • @AllinOne-vd9oy
    @AllinOne-vd9oy 4 роки тому +1

    thank you bro you explained in a simple way

  • @iambhushan418
    @iambhushan418 3 роки тому +3

    Also select key>>params>>versoin ppk2 to start connection to remote server. This is updated now

  • @kaustavchanda6306
    @kaustavchanda6306 4 роки тому +3

    Thank you so much for this tutorial. Please consider creating a playlist for AWS tutorials it will be very helpful for us.

  • @junjiwiener5417
    @junjiwiener5417 4 роки тому

    Awesome video thank you very much! I've deployed using Heroku but now know how to do it via an EC2 instance.

  • @AmitKumar-BIDSP
    @AmitKumar-BIDSP 4 роки тому

    Very well explained; Saved a lot of time; Kudos

  • @hichamsabah31
    @hichamsabah31 3 роки тому

    Very informative lecture. Keep up the good work.

  • @prasannam3273
    @prasannam3273 3 роки тому +1

    Step 6: We are not exactly generating a private key(already done by AWS). Basically we are converting a .pem private key to .ppk private key so that putty (SSH client can understand). Correct me if I am wrong. Thanks for the excellent video

  • @nicholasbarasa4775
    @nicholasbarasa4775 2 роки тому

    Simply explained, thank you

  • @ballerzhighlights4328
    @ballerzhighlights4328 2 роки тому

    Thank you Krish, really helpful.

  • @subrataassam
    @subrataassam 4 роки тому +3

    I tried the steps....but in the end when I try to access the aws url for the deployed model it says "This site can’t be reached"...anything I would have missed ? Even the app.py file is running fine when ran in putty.

    • @rishabhgupta4879
      @rishabhgupta4879 4 роки тому

      Same happening with me. Have you found a solution for this?

    • @subrataassam
      @subrataassam 4 роки тому

      @@rishabhgupta4879 Yes it worked. I was missing the port number 8080 at the end of the EC2 url

  • @ndminhnhat
    @ndminhnhat 5 років тому +5

    how about tensorflow serving? and docker? Kubernetes?

  • @DevMaster947
    @DevMaster947 5 років тому

    Hi Krish, I felt you are doing really genuine work. Thanks 🙏and keep rocking 👍

  • @kunjalsujalshah1992
    @kunjalsujalshah1992 4 роки тому +3

    Can you tell me how to keep this server running 24*7? i.e. on closing the putty console it shuts down. How to make it run persistently so that it can be accessed from anywhere anytime?

    • @venkataajaykumaryidapalapa7272
      @venkataajaykumaryidapalapa7272 4 роки тому +2

      Hi bro. I have same doubt as well. Did you figure how to do it ??

    • @PramodKumar-dr8nn
      @PramodKumar-dr8nn 4 роки тому +2

      Hey bro, i got the same doubt. Can u help me out?

    • @mosart03
      @mosart03 4 роки тому

      Did you get the solution?

    • @kunjalsujalshah1992
      @kunjalsujalshah1992 3 роки тому

      I haven't found a solution yet.

    • @pruthvipatel7368
      @pruthvipatel7368 3 роки тому +1

      Solution - search on google using "closing the putty console shuts down the site" and refer to the digitalocean website in the search result for the solution. You need to use the screen command in putty cmd. I hope this helps!

  • @BiancaAguglia
    @BiancaAguglia 5 років тому +1

    Thank you, Krish. This was very useful. 😊

  • @Amansingh-tr1cf
    @Amansingh-tr1cf 4 роки тому

    Thanks a lot krish sir. Really thanks a lot

  • @anirbanmandal6728
    @anirbanmandal6728 5 років тому +1

    Thanks Krish sir..

  • @anujeetswain7368
    @anujeetswain7368 4 роки тому +1

    thanks it was very helpful

  • @kkckk4360
    @kkckk4360 5 років тому +4

    Hi Krish, plz make a video on, how to train the deploy model with new data...

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

    Great video krish :)

  • @finnyfunplace824
    @finnyfunplace824 4 роки тому

    Thanks a millions lots KRISH...

  • @syedshahab8471
    @syedshahab8471 3 роки тому

    You're the best. Thanks

  • @GyanFhaD
    @GyanFhaD 2 роки тому

    Very nice video explained very well. How to Reduce Cost on AWS Cloud?

  • @miguel-deep-soccer
    @miguel-deep-soccer 4 роки тому

    Brilliant. You made my day. Thanks a lot

  • @louerleseigneur4532
    @louerleseigneur4532 3 роки тому

    Thanks Krish

  • @nitishgupta5684
    @nitishgupta5684 5 років тому +3

    Thanks!!!! Can i plot dynamic plots using plotly and show it on the hosted instance while prediction?

  • @amithadole9252
    @amithadole9252 2 роки тому

    Hello sir,
    What we have to use instead of putty in mac ?

  • @prajwalraj5741
    @prajwalraj5741 5 років тому +2

    Can we use the Web url which we got at the last .. In my own website under an anker tag() .!? Plz.. Ans..

  • @narenbot
    @narenbot 4 роки тому

    Thanks a lot my AI Guru

  • @sandeepganage9717
    @sandeepganage9717 3 роки тому

    Great stuff Krish. You might wanna re-do aws part as its changed completely.

  • @nageshpindi1348
    @nageshpindi1348 5 років тому +4

    Hi Krish,
    When you gonna start ML course. I'm been waiting for your course.

  • @venkatasivasankar9341
    @venkatasivasankar9341 4 роки тому +1

    Very nice explanation krish. I have some doubts
    1. How we can deploy multiple flask applications into one EC2 ubuntu instance? I want to deploy multiple flask applications into one EC2.
    2. Is it possible to add multiple domains into single instance? for each flask application I want to add different domain

  • @vivekdadhich515
    @vivekdadhich515 3 роки тому

    We can directly SSH into our instance if we have Windows 10 just using the command prompt.
    No need to download putty or WinSCP

  • @instasol2453
    @instasol2453 2 роки тому

    Great content

  • @ravindugunawardana7571
    @ravindugunawardana7571 3 роки тому

    Hi can you tell me the exact 'scikit-learn' version you have used when you were creating the model.

  • @desiplaylist3463
    @desiplaylist3463 4 роки тому

    hey krish, One suggestion. it would be really helpful if you would mention the limits of the free service of the cloud servers. like in Heroku, if the size of the deployment file is above 300mb then it will slow down the process, etc.
    You are doing a great job and your videos helped me gain a lot of knowledge.

  • @yunli5147
    @yunli5147 3 роки тому

    ty for everything. how did you get windows and ubuntu both run simultaneously?

  • @VikashKumar-ty6uy
    @VikashKumar-ty6uy 4 роки тому

    Is putty and putty gen require for windows?

  • @mohitverma1513
    @mohitverma1513 3 роки тому

    sir my application does not have pickle file as model but .py file for run time prediction
    will the same procedure work???

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

    How do you keep the server running after you close putty and everything else, so that the DNS linked opens and works?

  • @AnkitKumar-xk9fe
    @AnkitKumar-xk9fe 4 роки тому

    Thank you very Much Krish (:

  • @pyroswolf8203
    @pyroswolf8203 3 роки тому

    Does flask have cold start problem ?

  • @naveens6114
    @naveens6114 5 років тому +2

    How to link php framework with python to make different kind of machine learning website?

  • @sjatin1842
    @sjatin1842 3 роки тому +1

    For the same code I am getting this error "No module named 'sklearn.linear_model.base' ". Can anyone help me solving this

  • @nasiksami2351
    @nasiksami2351 4 роки тому +2

    Thank you so much Krish Bhai for this! I have some queries, what are the benefits of using ec2 rather than Heroku? Heroku seemed easier to deploy and what is the free storage for both of them?

  • @AqibMughal007
    @AqibMughal007 3 роки тому

    Wonderful.
    Can I deploy a Django website using the same procedure and softwares?

  • @iambhushan418
    @iambhushan418 3 роки тому +1

    use python3-pip in that pip update command sudp apt one. This is updated one

  • @shivammishra2524
    @shivammishra2524 3 роки тому

    great video!

  • @prajwalparab2435
    @prajwalparab2435 5 років тому +1

    How to link two python files of same code??,but separation is done of a huge code. How to combine them sir.??

  • @mk8800
    @mk8800 4 роки тому

    If you are getting any error while deploying just check your requirements(versions) file and change your port from "8080" to "8008".

  • @sahilwake8368
    @sahilwake8368 2 роки тому

    Thank You ❤️

  • @tharinduekanayake3862
    @tharinduekanayake3862 4 роки тому

    This is great. Thank you

  • @parasvarshney
    @parasvarshney 4 роки тому +1

    Sir, please make a video where this tutorial is done on ubuntu because we generally work on the Linux environment in the real industry, and windows have this software like putty and WinSCP so how to do deployment complete from the command line in ubuntu? please make a video on that too!

  • @cli_ninja
    @cli_ninja 5 років тому

    Why is the zone as us-east? Isnt it better to keep it close? Like ap-south?

  • @chaturvedifamily6052
    @chaturvedifamily6052 5 років тому +1

    I tried deploying the CNN model it is working fine on localhost also seems good on ec2 instance but I am not able to see anything on that IP ... I have taken all the steps the same as your videos.

  • @anilb1076
    @anilb1076 4 роки тому

    May i know ,whats the difference between this approach and deploying with sagemaker

  • @extcresources531
    @extcresources531 3 роки тому

    I am unable to connect using ec2-public ipv4. Even tried to connect using the ipv4 address .. doesnt work.curl localhost is giving correct results. I have used dockerfile to run the fastapi, can someone help me here?

  • @sumitkeshav4718
    @sumitkeshav4718 4 роки тому

    Hi Sir, Can we also create a flask app, which takes input in the form of json (having only one data instance on which predictions are to be made). And if we deploy this app on EC2, will we have the cloud interact with our local system to upload that instance. Need Help Sir on this Please!

  • @oldrunnerstepx2638
    @oldrunnerstepx2638 4 роки тому

    Krish, this video is fantastic. I have used Jupyter Notebook etc on AWS but have never deployed a bespoke API like this.
    One thing that isn't clear, how would you be able to host multiple services in the same instance. The URL for the instance contains no content that points to a particular web service.

    • @oldrunnerstepx2638
      @oldrunnerstepx2638 4 роки тому

      Is it the port number 8080 that routes to the API we have installed? So if we required another we would use a different port number perhaps? Or can the URL be qualified?

  • @seshasivasankar6765
    @seshasivasankar6765 4 роки тому

    I have a doubt for the web to start and run the python3 aap.py is to be written.
    but can we not host this permanently so that we can run it without writing this statement???

  • @rohitranjan7055
    @rohitranjan7055 4 роки тому +2

    When i trt to deploy my own code , and when i press predict button is shows internal server error. Please anyone help me..

  • @niharkashyap3897
    @niharkashyap3897 4 роки тому

    Is the file storage system of EC2 ephemeral like Heroku?

  • @kudaykumar1261
    @kudaykumar1261 3 роки тому

    While deployment pipe install -r requirements.txt all the packages going to download but at the end
    (Permission denied: '/usr/local/lib/python3.7') on EC2 instance
    got this type of error. I tried in the various blogs but i didn't get the answer. So please help me how to solve this error

  • @siminfan9300
    @siminfan9300 2 роки тому

    Hi Krish, thanks for the video with great content! One question: what could be the problem if my EC2 instance runs normally while my website have no response (show nothing)?

  • @RAMAYATRI
    @RAMAYATRI 3 роки тому

    Hi Krish , great help ...
    my question is how to keep my app active , if I close my ubuntu server through putty it will close the services .

    • @pruthvipatel7368
      @pruthvipatel7368 3 роки тому

      !Hi @Kunal, were you able to find a solution for this? I am also looking to keep my app active but if I close my ubuntu server through putty, it is closing the services. Please let me know.

    • @pruthvipatel7368
      @pruthvipatel7368 3 роки тому

      Just found the solution. Search on google using "closing the putty console shuts down the site" and refer to the digitalocean website in the search result for the solution. You need to use the screen command in putty cmd. I hope this helps!

    • @saurabhkhanolkar5017
      @saurabhkhanolkar5017 3 роки тому

      @@pruthvipatel7368 Thank Pruthvi ! this helped immensely for my project

  • @gautam135481
    @gautam135481 4 роки тому

    Hi Krish
    I have 2 questions
    1) DO we have to keep putty open all the time and keep running our server?
    2) When we are giving user the URL of our app. Do we need to give amazon url followed by port 8080?

    • @harryfeng4199
      @harryfeng4199 2 роки тому

      Hey, I had the same question. Have u figured out if others can use that url to access the demo as well?

  • @avinashshah355
    @avinashshah355 4 роки тому

    Traceback (most recent call last):
    File "app.py", line 6, in
    model = pickle.load(open('model.pkl', 'rb'))
    ModuleNotFoundError: No module named 'sklearn.linear_model.base'

    • @rahulbsadyanth8745
      @rahulbsadyanth8745 3 роки тому

      same problem

    • @lokeshkaturi4040
      @lokeshkaturi4040 3 роки тому

      @@rahulbsadyanth8745 please import scikit learn(latest version) in model.py ,build a new pkl file and change the version of scikit learn in requirements.txt file. It will work

  • @manassrivastava6452
    @manassrivastava6452 4 роки тому

    Sir I'm deploying another project, In putty it is showing me no module name tensorflow, but it is already installed during requirement.txt installation. What can I do?

  • @penchofficial1
    @penchofficial1 5 років тому

    When you started new batch regarding data science classes... please provide me clear information

  • @rounakbachwani2963
    @rounakbachwani2963 2 роки тому

    Hey Krish, great video. Just had a small doubt, can this be considered as DevOps?

  • @subhamchoudhary4091
    @subhamchoudhary4091 2 роки тому

    I encountered an error while installing requirements.txt file in putty.
    ERROR: Could not find a version that satisfies the requirement altair==4.2.0
    Can anyone help me with this ?

    • @jaikishank
      @jaikishank 2 роки тому

      Please use only these packages which are mentioned in the github link and it will work.
      Flask==1.1.1
      gunicorn==19.9.0
      itsdangerous==1.1.0
      Jinja2==2.10.1
      MarkupSafe==1.1.1
      Werkzeug==0.15.5
      numpy>=1.9.2
      scipy>=0.15.1
      scikit-learn>=0.18
      matplotlib>=1.4.3
      pandas>=0.19

    • @subhamchoudhary4091
      @subhamchoudhary4091 2 роки тому

      @@jaikishank I'm using streamlit. And now streamlit-webrtc is causing error. The error says unable to find wheel for 'some dependencies'.
      I felt irritated and tried deploying on streamlit cloud but there the video doesn't appear after deployment. These things are getting me crazy.

    • @jaikishank
      @jaikishank 2 роки тому +1

      @@subhamchoudhary4091 .Ok I understand. I had similar problem when used with streamlit to deploy in Heroku and then dropped.

  • @surajsoren637
    @surajsoren637 4 роки тому

    What is the main difference between AWS EC2 instance and Heroku Cloud Deployment ?

  • @shubhambaghel219
    @shubhambaghel219 5 років тому

    as we using putty to connect to linux terminal . as our connection lost our application also goes down. any workaround to this to make app running.

  • @abhishekprakash9803
    @abhishekprakash9803 5 років тому +1

    hi, can you help me Krish ,somone ask me :: how do you know the cost function go to the global minimum,

  • @prashantjha488
    @prashantjha488 4 роки тому

    Hi Krish, don't you think having a single instance for a model is a costly operation for an enterprise, can we launch multiple models in a single EC2 instance.

  • @abhyudaydaharwal1589
    @abhyudaydaharwal1589 5 років тому +1

    Thank you sir

  • @TheNayan20
    @TheNayan20 5 років тому +2

    Thank you

  • @joshuaokhiria7347
    @joshuaokhiria7347 4 роки тому +3

    Hi, you have done a great job with this playlist. However can you do a
    ML deployment video where a categorical variable is treated with ONE
    HOT ENCODING. Deployment of ML algorithm with ONE HOT ENCODING is harder
    compared to models where all of the inputs are numerical. There are
    lot's of people out there who will benefit from this including me.

  • @fasirahman7405
    @fasirahman7405 4 роки тому

    Please can you make video on Deploy of Ansys Model in AWS EC2 .

  • @BiranchiNarayanNayak
    @BiranchiNarayanNayak 5 років тому +1

    Any tutorial on using Python flask on Docker running on Ubuntu ?

  • @AkibKhan-dc4no
    @AkibKhan-dc4no 4 роки тому

    Hi krish , Bhai problem ye arhy ha model up hogya ha lekin machine bht heavy ha billing bht jyda arhy hmko ney 3 ya 4 images test ki thy beginning mey billing arhy usme bht jyda agr kissi user 1000 images 1 folder mey dalkar process kiya tho bht badh jahegya billing a sakty cost kese reduce Kare

  • @spicytuna08
    @spicytuna08 3 роки тому

    wow. i will never be able to figure this one out on my own. is it just me who has a hard time figuring out AWS deployment? how do you figure it out so easily?

  • @Vinothvipin
    @Vinothvipin 5 років тому +1

    How to serve python code in Apache server ?

  • @prelimsiscoming
    @prelimsiscoming 4 роки тому

    SIR plz make a video on IBM cloud.

  • @remrem6681
    @remrem6681 3 роки тому

    Very quick

  • @SoftwareDevelopmentEnginner
    @SoftwareDevelopmentEnginner 4 роки тому

    What if I have a Linux environment, what's the alternative to Putty?

  • @amitjaiswal8073
    @amitjaiswal8073 5 років тому

    Hi krish, can u make a video on how to deployed same model on production based env.

  • @hokapokas
    @hokapokas 5 років тому

    Hi krish i have a small question, the pip install is a one time thing right?? It needs not to be repeated for every instance. Amazing video as usual 😀

  • @suryapakalapati9198
    @suryapakalapati9198 4 роки тому

    Hello Sir, thanks for the video, I learned a lot from this video.
    And I have a question on deploying multiple models in single server. Can we add 2 ML models in 1 server?
    Like configuring 2 endpoints in app.py file.
    Example:
    For 1st model- 100.0.0.0:4000/predict_model1
    For 2nd model- 100.0.0.0:4000/predict_model2
    Here, predict_model1 predicts value using ML model 1 and predict_model2 predicts value using ML model 2. Will this create any problem in production environment? Because we are using only 1 single server instead of spinning up new server for each new model.