Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aws/studio-lab-examples
Example notebooks for working with SageMaker Studio Lab. Sign up for an account at the link below!
https://github.com/aws/studio-lab-examples
amazon-sagemaker-lab aws deep-learning deploy huggingface inference machine-learning sagemaker sagemaker-studio-lab training
Last synced: 6 days ago
JSON representation
Example notebooks for working with SageMaker Studio Lab. Sign up for an account at the link below!
- Host: GitHub
- URL: https://github.com/aws/studio-lab-examples
- Owner: aws
- License: apache-2.0
- Created: 2021-11-23T00:24:14.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-24T05:18:00.000Z (4 months ago)
- Last Synced: 2024-11-29T17:05:53.537Z (13 days ago)
- Topics: amazon-sagemaker-lab, aws, deep-learning, deploy, huggingface, inference, machine-learning, sagemaker, sagemaker-studio-lab, training
- Language: Jupyter Notebook
- Homepage: https://studiolab.sagemaker.aws
- Size: 33.9 MB
- Stars: 654
- Watchers: 21
- Forks: 193
- Open Issues: 71
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-studio-lab-jp - aws/studio-lab-examples
README
## 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](https://github.com/aws/amazon-sagemaker-examples) to become the AI/ML practitioner.
## :hammer_and_wrench: Setup
Please follow the [Onboard to Amazon SageMaker Studio Lab](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-lab-onboard.html).
1. Request a Studio Lab account
2. Create a Studio Lab account
3. Sign in to Studio LabIf you would like to localize the user interface, please follow [the instruction for user interface localization](custom-environments/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](open-in-studio-lab), the readers can copy the notebook or clone the repository by clicking button.## :notebook: Examples
### [Computer Vision](computer-vision/)
| No | Title | Open in Studio Lab |
|----|-------|--------------------|
| 1|Train an image classification model with PyTorch | [![Open in SageMaker Studio Lab](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/aws/studio-lab-examples/blob/main/computer-vision/kmnist/cv-kminst.ipynb) |
| 2| Weather Classification for Disaster Risk Reduction with DenseNet-161 | [![Open in SageMaker Studio Lab](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/aws/studio-lab-examples/blob/main/computer-vision/weather-data/weather-image-classification-pytorch.ipynb) |### [Natural Language Processing](natural-language-processing/)
| No | Title | Open in Studio Lab |
|----|-------|--------------------|
| 1|Finetune T5 locally for machine translation on COVID-19 Health Service Announcements with Hugging Face | [![Open in SageMaker Studio Lab](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/aws/studio-lab-examples/blob/main/natural-language-processing/NLP_Disaster_Recovery_Translation.ipynb) |### [Geospatial Data Science](geospatial-data-science/)
| No | Title | Open in Studio Lab |
|----|-------|--------------------|
| 1|Getting Started With Geospatial Data Analysis | [![Open in SageMaker Studio Lab](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/aws/studio-lab-examples/blob/main/geospatial-data-science/CA_data/geospatial_analysis.ipynb) |
| 2|Exploratory Analysis for NOAA Weather and Climate Dataset | [![Open in SageMaker Studio Lab](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/aws/studio-lab-examples/blob/main/geospatial-data-science/NOAA_Exploratory_Analysis/EDA_weather_climate.ipynb) |### [Generative Deep Learning](generative-ai/)
| No | Title | Open in Studio Lab |
|----|-------|--------------------|
| 1|Introduction to JumpStart - Text to Image | [![Open in SageMaker Studio Lab](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/aws/studio-lab-examples/blob/main/generative-ai/stable-diffusion-finetune/Amazon_JumpStart_Text_To_Image.ipynb) |
| 2|Prompting Mistral 7B Instruct | [![Open in SageMaker Studio Lab](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/aws/studio-lab-examples/blob/main/generative-ai/mistral/prompting-mistral7B.ipynb) |### [Connect To AWS](connect-to-aws/)
| No | Title | Open in Studio Lab |
|----|-------|--------------------|
| 1|Using SageMaker Studio Lab with AWS Resources | [![Open in SageMaker Studio Lab](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/aws/studio-lab-examples/blob/main/connect-to-aws/Access_AWS_from_Studio_Lab.ipynb) |
| 2|Deploy A Hugging Face Pretrained Model to Amazon SageMaker Serverless Endpoint - Boto3 | [![Open in SageMaker Studio Lab](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/aws/studio-lab-examples/blob/main/connect-to-aws/Access_AWS_from_Studio_Lab_Deployment.ipynb)### [Custom Environments](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](https://studiolab.sagemaker.aws/studiolab.svg)](https://studiolab.sagemaker.aws/import/github/aws/studio-lab-examples/blob/main/custom-environments/custom_environment.ipynb)
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
* [R environment](custom-environments/R/R.yml)
* [Julia environment](custom-environments/julia/1-install-julia.ipynb)#### Specific framework environment
* [AutoGluon (CPU) environment](custom-environments/AutoGluon/autogluon_cpu.yml)
* [AutoGluon](https://auto.gluon.ai/stable/index.html) is AutoML library for quick prototype by state-of-the-art method without expert knowledge.
* [fast.ai environment](custom-environments/fastai/fastai.yml)
* [fast.ai](https://www.fast.ai/) is deep learning library which provides state-of-the-art results with high-level API for practitioners and low-level API for expert.
* [SciPy environment](custom-environments/SciPy/scipy.yml)
* [SciPy](https://scipy.org/) is an open-source software for mathematics, science, and engineering.
* [Diffusers environment](custom-environments/diffusers/diffusers.yml)
* [diffusers](https://github.com/huggingface/diffusers) provides pretrained diffusion models across multiple modalities, such as vision and audio, and serves as a modular toolbox for inference and training of diffusion models.
* [RAPIDS environment](https://studiolab.sagemaker.aws/import/github/rapidsai-community/rapids-smsl/blob/main/rapids-smsl.ipynb) (external link)
* [RAPIDS](https://rapids.ai/index.html) provides GPU accelerated data science libraries.
* [Geospatial environment](custom-environments/Geospatial/geospatial.yml)
* Geospatial environment is built from basic libraries for geospatial analysis such as [geopandas](https://geopandas.org/en/stable/), [shapely](https://github.com/shapely/shapely), and [folium](https://python-visualization.github.io/folium/quickstart.html#Getting-Started), etc.
* [Medical image AI environment](https://github.com/aws/studio-lab-examples/blob/main/custom-environments/medical-image-ai/environment.yml)
* Medial image AI environment is built from basic libraries for medical image analysis such as [itkwidgets](https://github.com/InsightSoftwareConsortium/itkwidgets), [monai](https://monai.io/).
* [Gradio environment](https://github.com/aws/studio-lab-examples/blob/main/custom-environments/Gradio/environment.yml)
* [Gradio](https://www.gradio.app/) is an application that is suitable for demonstrating your model through an interactive interface.### Community contents
Here are some more examples from the community.
[Studio Lab Examples in GitHub](https://github.com/topics/amazon-sagemaker-lab).
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](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](CONTRIBUTING.md) if you'd like to open an issue or submit a pull request.
## 🔎 References
* [SageMaker Studio Lab](https://studiolab.sagemaker.aws/)
* [SageMaker Studio Lab document](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-lab.html)
* [Stack Overflow](https://stackoverflow.com/questions/tagged/amazon-sagemaker)
* Regional examples
* :jp: [SageMaker Studio Lab Community Japan](https://github.com/aws-sagemaker-jp/awesome-studio-lab-jp)