Code Monkey home page Code Monkey logo

ss2024_deploy_app's Introduction

Hi! PARIS Summer School 2024 - Exploring Machine Learning Deployment from beginner to advance level 🚀

Alt text

This repository contains the demos for the Hi! PARIS Summer School 2024 session on Exploring Machine Learning Deployment from beginner to advance level 🚀.

The repository is divided into three folders, one for each practical demo:

  • streamlit-app/ for the Streamlit demo
  • sagemaker-deployment/ for the AWS SageMaker demo
  • docker-app/ for the Docker + AWS Lambda demo

The session was hosted by Awais SANI, Senior Machine Learning engineer @ Hi! PARIS and Laurène DAVID, Machine Learning engineer @ Hi! PARIS.

To learn more about the Hi! PARIS Engineering Team, here are some useful links:


Demo 1: Deploy a Sentiment Analysis app using Streamlit

Alt text

1. Streamlit tutorials


2. Terminal commands

Launch the streamlit app locally

streamlit run streamlit-app/app.py

Build a requirements.txt file to deploy the app via Streamlit Cloud

pip3 freeze > requirements.txt


Demo 2: Deploy pre-trained sklearn models with AWS SageMaker

1. How to launch a SageMaker notebook instance

Step 1: Create an AWS account

First, you will need to create an AWS account if you don't already have one.
https://aws.amazon.com/?nc1=h_ls

Step 2: Go to the Amazon SageMaker console and create a notebook instance.

Go to the Amazon SageMaker console and select the Notebooks option on the console's left tab. To create the notebook, click on Create notebook instance.

...

Step 3: Configure the SageMaker notebook instance.

  • Select a notebook instance name
  • Select a notebook instance type
  • Select a platform type for the notebook instance, for example the JupyterLab version you want to use
  • For the IAM role, click on Create a new role option then create a role associed to the instance's S3 bucket.

Most of these configuration can be left with their default value. Only the creation of a new IAM role is mandatory to access the S3 bucket.

Step 4: Launch the notebook instance

Once you've provided all the required information, you can now launch the notebook (this can take a couple of minutes). To stop the instance from running, click on the notebook instance then select Stop. This will be prevent additional costs.


2. SageMaker documentation/tutorials

ss2024_deploy_app's People

Contributors

laudavid avatar yohila avatar

Stargazers

Gloire LINVANI avatar Eric Felipe Moreira avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.