Home

Awesome

<p align="center"> <img src="_static/sagemaker-studio-lab-banner.svg" width="300px"> </p>

SageMaker Studio Lab Examples

Example Jupyter notebooks that demonstrate how to build AI/ML learning environment using Amazon SageMaker Studio Lab.

:books: Background

SageMaker Studio Lab is a service for individual data scientist who wants to develop the career toward AI/ML practitioner. You can start your ML journey for free.

This repository introduces you to the way to set up Studio Lab according to your interest area, such as computer vision, natural language processing, etc. And also, we show how to deploy your project to the Amazon SageMaker to become the AI/ML practitioner.

:hammer_and_wrench: Setup

Please follow the Onboard to Amazon SageMaker Studio Lab.

  1. Request a Studio Lab account
  2. Create a Studio Lab account
  3. Sign in to Studio Lab

If you would like to localize the user interface, please follow the instruction for user interface localization.

:computer: Usage

  1. Read: You can read the notebook in Studio Lab without Studio Lab account. Please feel free to click Open in Studio Lab button in Examples section.
  2. Run: You can run the notebook by copying the notebook or git clone the repository to your Studio Lab project.
  3. Share: You can share the notebooks through the Git repository such as GitHub. If you add Open in Studio Lab button, the readers can copy the notebook or clone the repository by clicking button.

:notebook: Examples

Computer Vision

NoTitleOpen in Studio Lab
1Train an image classification model with PyTorchOpen in SageMaker Studio Lab
2Weather Classification for Disaster Risk Reduction with DenseNet-161Open in SageMaker Studio Lab

Natural Language Processing

NoTitleOpen in Studio Lab
1Finetune T5 locally for machine translation on COVID-19 Health Service Announcements with Hugging FaceOpen in SageMaker Studio Lab

Geospatial Data Science

NoTitleOpen in Studio Lab
1Getting Started With Geospatial Data AnalysisOpen in SageMaker Studio Lab
2Exploratory Analysis for NOAA Weather and Climate DatasetOpen in SageMaker Studio Lab

Generative Deep Learning

NoTitleOpen in Studio Lab
1Introduction to JumpStart - Text to ImageOpen in SageMaker Studio Lab
2Prompting Mistral 7B InstructOpen in SageMaker Studio Lab

Connect To AWS

NoTitleOpen in Studio Lab
1Using SageMaker Studio Lab with AWS ResourcesOpen in SageMaker Studio Lab
2Deploy A Hugging Face Pretrained Model to Amazon SageMaker Serverless Endpoint - Boto3Open in SageMaker Studio Lab

Custom Environments

We provide .yml files to set up various programming language / framework environments. To use the .yml file, please proceed with the following instruction.

  1. Click this button right here --> Open in SageMaker Studio Lab
  2. Click the Copy to Project button
    • Sign-in and Start runtime is needed before it.
  3. When prompted, select Clone Entire Repo
  4. Click Clone after confirming Open README files. is checked.
    • When No Conda environment file found shown, please Dismiss.
  5. Once opening README.md preview, please move to Custom Environments section and click the programming language / specific framework environment link as you need to open .yml file.
  6. Right click the opened .yml file tab and select Show in File Browser.
  7. Right click the .yml file in the file browser and select Build Conda Environment.
  8. Once command completed, please run notebook in the same folder to check the environment. When prompted Select Kearnel, please select the created environment.

Programming language environment

Specific framework environment

Community contents

Here are some more examples from the community.

Studio Lab Examples in GitHub.

Please add amazon-sagemaker-lab tag to your repositories that use Studio Lab! We will pick up the popular repositories in here or our blog.

:balance_scale: License

This project is licensed under the Apache-2.0 License.

:handshake: Contributing

Although we're extremely excited to receive contributions from the community, we're still working on the best mechanism to take in examples from external sources. Please bear with us in the short-term if pull requests take longer than expected or are closed.

Please read our contributing guidelines if you'd like to open an issue or submit a pull request.

🔎 References