Teams that fine-tune a large language model on Amazon SageMaker AI can use the open-source Fine-Tuning FLOPs Meter to record how much computation a training run used. That record helps answer one part of a regulatory question: has the team changed the model enough to become the provider of the modified model under the EU AI Act?
The European Commission’s July 2025 guidelines use training compute, measured in floating-point operations (FLOPs), as an indicator. The underlying test is whether the modification significantly changes the model’s generality, capabilities or systemic risk. Crossing a compute threshold does not, by itself, make the team a model provider. The guidelines call for a case-by-case assessment. They are not legally binding, but the Commission says it will base enforcement on them.
What the meter records
The toolkit is part of the Amazon SageMaker Generative AI recipes repository. Setting compute_flops: true in a supported Hugging Face training recipe enables a callback that counts non-padding tokens during training, including across GPUs in a distributed job.
The meter produces two estimates. The first uses the token count and distinguishes between all model parameters and those the training job actually updates. That distinction matters for methods such as LoRA, which leave most weights frozen but still perform calculations through frozen layers. AWS recommends this architecture-based estimate as the primary figure. The second estimate uses GPU specifications and training duration, assuming 100% utilization. It is an upper bound, not a measurement of actual utilization.
At the end of the run, the meter writes both estimates, the threshold it applied and the comparison result to flops_meter.json. The SageMaker pipeline can retain those records in Amazon S3 and DynamoDB. A separate planning utility estimates compute before a run so teams can compare LoRA, Spectrum and full fine-tuning.
How to read the threshold flag
The Commission’s guidelines describe modification compute above one-third of the original training compute as an indicative criterion. The AWS implementation shown in the walkthrough uses 30% of the supplied pretraining figure when it is at least 10²³ FLOPs. When that figure is unknown or below 10²³ FLOPs, the code uses a default of 3.3 × 10²² FLOPs. AWS also discusses a separate 3.3 × 10²⁴ FLOPs benchmark for systemic-risk models; the code excerpt shows only the default and 30% branches. These benchmarks come from guidance, not from a numerical test in the Act itself.
In AWS’s Llama-3.2-3B-Instruct example, the team left PRETRAIN_FLOPS unset because Meta had not published an exact pretraining figure. The sample record shows an architecture-based estimate of 1.45 × 10¹³ FLOPs for 2,150 tokens, below the default threshold. The result documents the run and the basis for comparison; it does not establish the model’s legal status.
The distinction matters because general-purpose AI model providers have obligations that include technical documentation, information for downstream providers, a copyright policy and a public summary of training content. Those obligations have applied since August 2, 2025, with Commission enforcement powers, including fines, from August 2, 2026. Providers of models placed on the market before August 2, 2025, have until August 2, 2027, to comply.
