Skip to main content

Model Metrics

Notice: Model metrics are enabled only when the execution pipeline is in the Running status and at the Training stage.

Alt text

Model metrics are collected to track the training performance of AI models during and after the fine-tuning process. These metrics help detect training anomalies, guide hyperparameter adjustments and improve model performance. Training metrics:

MetricWhat it evaluates
lossMeasures how well the model is learning. A high loss means poor prediction; a low loss means the model is fitting the data well.
learning_rateControls how fast the model learns. A learning rate that’s too high can cause instability; too low can slow down training.
grad_normsIndicates the magnitude of gradients. Helps detect issues like vanishing or exploding gradients, which affect learning.
epochTracks how many full passes the model has made over the training data. Useful for monitoring learning progress over time.
Evaluation metrics:
Notice: Only shown when evaluation data is used.
MetricWhat it evaluates
------
eval_runtimeMeasures how long the evaluation process takes. Useful for performance benchmarking.
eval_samples_per_secondIndicates evaluation throughput. Higher is better for faster model validation.
eval_steps_per_secondMeasures how many evaluation steps are completed per second. Reflects evaluation efficiency.
eval_lossMeasures how well the model generalizes to unseen data. Helps detect overfitting or underfitting.
Training performance metrics:
MetricWhat it evaluates
------
train_runtimeTotal time spent training. Useful for estimating training cost and efficiency.
train_samples_per_secondMeasures training throughput. Higher values indicate faster training.
train_steps_per_secondIndicates how many training steps are completed per second. Reflects training speed.
total_flosTotal floating point operations used. Helps estimate computational cost and model complexity.
train_lossMeasures how well the model fits the training data. Should decrease over time if training is effective.