What changed
AWS has introduced the Fine-Tuning FLOPs Meter, an open-source toolkit integrated into Amazon SageMaker AI, to assist organizations in tracking training compute for large language model (LLM) fine-tuning. This tool helps users determine whether their fine-tuning activities may trigger new regulatory obligations under the EU AI Act.
What this means in practice
The Fine-Tuning FLOPs Meter enables users to measure the training compute of a fine-tuning job using a single configuration flag. It integrates into existing SageMaker AI pipelines and provides a JSON record of results. The tool helps users compare their training compute against thresholds outlined in the European Commission’s guidelines, which are used to determine if an organization may become a provider of the modified model.
The tool supports three scenarios based on pretraining compute: if pretraining compute is known and ≥ 10²³ FLOPs, the threshold is 30% of the actual pretraining compute. If pretraining compute is unknown or < 10²³ FLOPs, the default threshold is 3.3×10²² FLOPs. For models with pretraining compute ≥ 10²⁵ FLOPs, the threshold is 3.3×10²⁴ FLOPs.
Limitations and availability
The Fine-Tuning FLOPs Meter is available as an open-source toolkit in the Amazon SageMaker Generative AI recipes repository. It integrates with Hugging Face training workflows on Amazon SageMaker AI and tracks computational resources across the entire fine-tuning lifecycle. The tool is designed to address challenges in manual FLOPs tracking, including complex formulas and the lack of published pretraining compute figures. The tool automatically determines the applicable scenario based on whether the user provides the PRETRAIN_FLOPS environment variable.
