Buckets:

|
download
raw
2.81 kB

๐Ÿš€ Tutorials: How To Fine-tune & Run LLMs

Learn how to run and fine-tune models for optimal performance with AWS Trainium.

<h3 style="margin: 0 0 8px 0 !important; font-size: 18px !important;

font-weight: 600 !important; color: #24292e !important;"> Llama 3.1

<p style="margin: 0 !important;

font-size: 14px !important; color: #586069 !important; line-height: 1.4 !important;"> Instruction Fine-tuning of Llama 3.1 8B with LoRA on the Dolly dataset

<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/optimum/neuron/training_tutorials/qwen3-logo.png" alt="Qwen3" style="width: 100% !important;

height: 100% !important; object-fit: cover !important; border: none !important; border-radius: 8px 8px 0 0 !important;" />

<h3 style="margin: 0 0 8px 0 !important; font-size: 18px !important;

font-weight: 600 !important; color: #24292e !important;"> Qwen3

<p style="margin: 0 !important;

font-size: 14px !important; color: #586069 !important; line-height: 1.4 !important;"> Fine-tune Qwen3 8B with LoRA on the Simple Recipes dataset

<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/optimum/neuron/training_tutorials/sagemaker-logo.png" alt="SageMaker Hyperpod" style="width: 100% !important;

height: 100% !important; object-fit: cover !important; border: none !important; border-radius: 8px 8px 0 0 !important;" />

<h3 style="margin: 0 0 8px 0 !important; font-size: 18px !important;

font-weight: 600 !important; color: #24292e !important;"> Llama 3.2 on SageMaker

<p style="margin: 0 !important;

font-size: 14px !important; color: #586069 !important; line-height: 1.4 !important;"> Continuous Pretraining of Llama 3.2 1B on SageMaker Hyperpod

What you'll learn

These tutorials will guide you through the complete process of fine-tuning large language models on AWS Trainium:

  • ๐Ÿ“Š Data Preparation: Load and preprocess datasets for supervised fine-tuning
  • ๐Ÿ”ง Model Configuration: Set up LoRA adapters and distributed training parameters
  • โšก Training Optimization: Leverage tensor parallelism, gradient checkpointing, and mixed precision
  • ๐Ÿ’พ Checkpoint Management: Consolidate and merge model checkpoints for deployment
  • ๐Ÿš€ Model Deployment: Export and test your fine-tuned models for inference

Choose the tutorial that best fits your use case and start fine-tuning your LLMs on AWS Trainium today!

Xet Storage Details

Size:
2.81 kB
ยท
Xet hash:
a87fb542dbfc9678cfa24c2626a72d506d410c04e3038efd19ba34b2ee6a7e1e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.