This workshop shows AWS users how to use Amazon SageMaker and other associated services to build, train, and deploy generative AI models. These labs go through data science topics such as data processing at scale, model fine-tuning, real-time model deployment, and MLOps practices all through a generative AI lens.
In this workflow, we will use the Amazon Customer Reviews Dataset for labs related to data processing as it contains a very large corpus of ~150 million customer reviews. This is useful for showcasing SageMaker's distributed processing abilities which can be extended to many large datasets.
After the data processing sections, we will build our FLAN-T5 based NLP model using the dialogsum dataset from HuggingFace which contains ~15k examples of dialogue with associated summarizations.
- 00a. Lab overview
- 00b. Setup workshop dependencies
- 01a. Register parquet data in S3 using AWS Glue and Amazon Athena
- 01b. Visualize data with serverless distributed PySpark on SageMaker notebooks using Glue interactive sessions
- 01c. Analyze data quality with distributed PySpark on SageMaker Processing Jobs
- 02a. Analyze the impact of prompt engineering using a HuggingFace model
- 02b. Perform feature engineering on a raw text dataset using HuggingFace (Studio Notebook)
- 02c. Fine-tune a HuggingFace model for dialogue summarization (Studio Notebook)
- 03a. Perform feature engineering on a raw text dataset using HuggingFace (SageMaker Processing Job)
- 03b. Fine-tune a HuggingFace model for dialogue summarization (SageMaker Training Job)
- 04a. Create an automated end-to-end ML MLOps workflow with SageMaker Pipelines
- 04b. Deploy a fine-tuned generative AI model to a real-time SageMaker Endpoint
- 04c. Run inference on a SageMaker Endpoint in real time
- 05a. Parameter-efficient fine-tuning with LoRA
- 05b. Fine-tuning for human alignment using reinforcement learning with human feedback (RLHF)
This workshop is based on the O'Reilly Book, "Data Science on AWS", by Chris Fregly and Antje Barth @ AWS.
- Website: https://datascienceonaws.com
- Meetup: https://meetup.datascienceonaws.com
- GitHub Repo: https://github.com/data-science-on-aws/
- YouTube: https://youtube.datascienceonaws.com
- O'Reilly Book: https://www.amazon.com/dp/1492079391/
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.