# How AWS tracks fine-tuning compute on SageMaker AI

- Source: MechNext — https://mechnext.eu/en/article/87-how-aws-tracks-fine-tuning-compute-on-sagemaker-ai
- Published: 2026-12-01
- Updated: 2026-12-01
- Category: Industry News
- Language: en (Markdown in other languages: ?lang=de, ?lang=sk, ?lang=pl, ?lang=zh, ?lang=ru)

> AWS shows how to estimate fine-tuning FLOPs, record which threshold applies, and use that information in a case-by-case assessment under the EU AI Act.

AWS’s machine learning blog explains how to track the compute used to fine-tune large language models on Amazon SageMaker AI in floating-point operations (FLOPs). AWS says it reviewed and updated the post in November 2026. The workflow covers estimating compute before a job, tracking it during training, and recording the result alongside the threshold used for comparison.

### How AWS treats the thresholds

AWS says the European Commission’s July 2025 guidelines use modification compute as an indicative criterion when assessing whether a change significantly alters a general-purpose AI (GPAI) model’s generality, capabilities, or systemic risk. Whether a party modifying a model qualifies as a provider requires a case-by-case assessment. AWS’s decision flow uses the base model’s pretraining compute to select a threshold.

- If pretraining compute is unknown or below 10²³ FLOPs, the threshold is 3.3 × 10²² FLOPs.
- If known pretraining compute is at least 10²³ FLOPs and below 10²⁵ FLOPs, the threshold is 30% of that compute.
- If pretraining compute is at least 10²⁵ FLOPs, the threshold is 3.3 × 10²⁴ FLOPs.

The post also describes an indicative benchmark of more than one-third of original training compute. How that benchmark relates to the 30% figure in the decision flow remains unclear.

According to AWS, obligations for GPAI model providers began applying on August 2, 2025, and Commission enforcement began on August 2, 2026. Providers of models placed on the market before August 2, 2025 have until August 2, 2027 to comply. AWS reports that Article 101 allows the Commission to fine GPAI model providers, from August 2, 2026, up to €15 million or 3% of worldwide annual turnover, whichever is higher.

### What the meter records

The open-source Fine-Tuning FLOPs Meter is available in the Amazon SageMaker Generative AI recipes repository and integrates with Hugging Face training workflows on SageMaker AI. The recipe setting `compute_flops: true` turns on tracking. If the base model’s pretraining compute is known, the optional `PRETRAIN_FLOPS` environment variable passes that figure to the toolkit for threshold selection. An optional standalone estimator compares expected FLOPs for LoRA, Spectrum, and full fine-tuning before the job launches.

During training, the Hugging Face callback tracks model parameter counts and counts tokens excluding padding. For distributed jobs it aggregates token counts across GPUs. The analytical estimate multiplies the number of processed tokens by the sum of four times the total parameter count and twice the trainable parameter count. AWS calls this estimate `Flops_architecture` and uses it as the primary reporting metric. The toolkit also calculates `Flops_hardware`, a conservative upper bound based on NVIDIA Management Library monitoring and an assumption of 100% GPU utilization.

When the job finishes, the callback writes `flops_meter.json` to `/opt/ml/output/`. The pipeline AWS describes uploads the results to Amazon S3 and stores them in Amazon DynamoDB. The report records which type of threshold was applied, a true-or-false value for whether the threshold was exceeded, and the original pretraining FLOPs. If pretraining FLOPs were omitted, the report records `null` for that field.

### Two examples from AWS

The walkthrough uses Llama-3.2-3B-Instruct, listed at 3.21 billion parameters, with a demonstration dataset of 2,150 tokens. The default threshold applies because exact pretraining FLOPs were unavailable for the walkthrough. In a separate example with one million tokens and Llama-3.2-3B, AWS gives approximate figures of 6.7 × 10¹⁸ FLOPs for LoRA and 1.9 × 10¹⁹ FLOPs for full fine-tuning. [AWS Machine Learning Blog](https://aws.amazon.com/blogs/machine-learning/navigating-eu-ai-act-requirements-for-llm-fine-tuning-on-amazon-sagemaker-ai)
