Navigating EU AI Act requirements for LLM fine-tuning on Amazon SageMaker AI
In this post, we show you how to set up FLOPs tracking during LLM fine-tuning using the open source Fine-Tuning FLOPs Meter toolkit on Amazon SageMaker AI. You learn how to determine your compliance status with a single configuration flag and generate audit-ready documentation.
First seen by Oriel on .
AI summary
This AWS post presents Fine-Tuning FLOPs Meter, an open source toolkit for tracking LLM fine-tuning compute on Amazon SageMaker AI against EU AI Act guidance thresholds.
- The toolkit integrates with Hugging Face Trainer workflows and activates with compute_flops: true in a SageMaker recipe.
- It calculates analytical FLOPs using model parameters and non-padding tokens, while NVML monitoring provides a conservative hardware-based upper bound.
- Thresholds include 3.3×10²² FLOPs by default, 30% of known pretraining compute above 10²³ FLOPs, and 3.3×10²⁴ FLOPs for systemic-risk models.
- Enhanced formulas account for full fine-tuning, LoRA, and Spectrum by distinguishing total from trainable parameters.
- Results are written to flops_meter.json and can be persisted in Amazon S3 or Amazon DynamoDB for audit trails; the example requires an ml.g5.4xlarge quota increase.
#eu ai act #llm fine-tuning #amazon sagemaker #compliance
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| AWS Machine Learning Blog | 540dba46045344eff31cc9473cc6f6f34abb6aae | https://aws.amazon.com/blogs/machine-learning/navigating-eu-ai-act-requirements-for-llm-fine-tuning-on-amazon-sagemaker-ai/ Read discussion |