AI Cloud Architect

Accelerating LLM fine-tuning with unstructured data using SageMaker Unified Studio and S3

AWSHow-to by Hazim QudahAWS Artificial Intelligence Blog

Last year, AWS announced an integration between Amazon SageMaker Unified Studio and Amazon S3 general purpose buckets. This integration makes it straightforward for teams to use unstructured data stored in Amazon Simple Storage Service (Amazon S3) for machine learning (ML) and data analytics use cases. In this post, we show how to integrate S3 general purpose buckets with Amazon SageMaker Catalog to fine-tune Llama 3.2 11B Vision Instruct for visual question answering (VQA) using Amazon…

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Shows how to catalog an S3 dataset in SageMaker Unified Studio and use it to fine-tune Llama 3.2 11B Vision Instruct for document visual question answering, tracked with MLflow.

Who it is for

Teams using SageMaker and S3 that want to fine-tune a vision LLM on their own unstructured documents.

Key points

  • Base model scores 0.853 ANLS on DocVQA; the best fine-tuned variant (10k training images) scores 0.902, per the post.
  • Training uses ml.p4de.24xlarge instances, which need a service quota increase; some runs take about 4 hours.
  • The post uses a 50-image validation sample, a small test set.