Overview
From Energy and Carbon Considerations of Fine-Tuning BERT: We find that pre-training BERT is equivalent to anywhere from 400 (MNLI) to 45,000 (RTE) fine-tuning runs depending on the dataset size, and that number of training tokens is a reasonable heuristic for estimating fine-tuning energy use. The “true” number of training tokens seen, accounting for dynamic padding of sequences to the maximum length in a batch, is a better predictor than relying on to mean or median number of tokens per example. Further comparison of fine-tuning inference energy intensity across tasks confirms that example sequence length holds a much stronger influence on energy intensity in the fine-tuning phase than in the inference phase, in alignment with expectations from previous work. We find that, controlling for hardware, energy consumption scales most predictably with wall clock time and number of tokens encountered during training (including the pad tokens added to sequences to match the maximum sequence length in a batch).Disclosure of fine-tuning costs
To assess the environmental impact of fine-tuning a model, developers should disclose the technical infrastructure used for fine-tuning and the duration of this training process. Infrastructure data:- Fine-tuning cluster details
- Managed service used (eg AWS Bedrock)
- Physical location of the datacenter where the fine-tuning occurred
- Based model
- Total fine-tuning time
- GPU and CPU utilization during fine-tuning
- Total fine-tuning tokens, including padding, if total time not available, for instance if using a managed service
- Start time
- Expected use life in days
- Expected inferences per day
Example disclosure
Normalization of disclosed data
When disclosed data is not present or not complete, we need to use predictive or heuristic data to fill in the gaps.Example normalization: AWS Bedrock fine-tuning
When a managed service is used, we need to make some assumptions about the underlying execution.
TODO - model a standard AWS instance for this use case & doco the token->time prediction