Downloads · 30 days
0
kruuusher13/gptnl-energy-models
gptnl-energy-models is a tabular regression model from kruuusher13. Use it for the tabular regression task on the model card, and read the license before you ship it in a product. It is set up for gptnl-energy. The card lists the license as apache-2.0.
Trained energy prediction models for the GPT-NL data curation pipeline. These models estimate the energy consumption of each pipeline stage (data splitting → string normalization → heuristic filtering → toxic language…
Downloads · 30 days
0
Access
Public
Updated Jul 2, 2026
Repo size
1 MB
Likes
0
Public
Click a slice to open those files.
.joblib802 KB · 78%
From the Hugging Face model README
Trained energy prediction models for the GPT-NL data curation pipeline. These models estimate the energy consumption of each pipeline stage (data splitting → string normalization → heuristic filtering → toxic language detection → deduplication) running on the Snellius supercomputer.
pip install git+https://github.com/kruuusher13/gptnl-energy-estimation-ekf.git huggingface_hub
# Download and use a model
from huggingface_hub import hf_hub_download
from gptnl_energy.models import get_model
model_path = hf_hub_download('GPT-NL/gptnl-energy-models', 'linear_energy.joblib')
model = get_model('linear')
model.load_fits(model_path)
# Predict energy for 400k documents
result = model.predict(n=400000, corpus='american_stories')
print(f'{result["total_j"]/1e6:.2f} MJ')
| File | Type | Target | Description |
|---|---|---|---|
ols_fits_with_dedup.json | sklearn | energy_j (Joules) | Calibrated per-stage OLS coefficients (production calibration incl. deduplication) — the default fits used by gptnl-energy forecast and monitor |
linear_energy.joblib | sklearn | energy_j (Joules) | Per-stage OLS linear model (physics baseline): E = c0 + c1*n per pipeline stage |
linear_time.joblib | sklearn | — | — |
ridge_energy.joblib | sklearn | — | — |
ridge_time.joblib | sklearn | — | — |
gbm_energy.joblib | sklearn | energy_j (Joules) | Histogram Gradient Boosting — best ML model for cross-corpus energy transfer |
gbm_time.joblib | sklearn | — | — |
mlp_energy.joblib | sklearn | — | — |
mlp_time.joblib | sklearn | — | — |
ftt_energy.pt | PyTorch | energy_j (Joules) | FT-Transformer — neural tabular model with feature tokenization + stage embedding |
ftt_time.pt | PyTorch | — | — |
kalman_transformer_energy.pt | PyTorch | total_energy_j (whole pipeline, cold start) | FT-Transformer trained on Kalman filter trajectories for cold whole-run prediction |
Three prediction layers:
See the GPT-NL Energy repo for the full pipeline.
paper/thesis.pdf)All coefficients and evaluation numbers are regenerable from the measurement data with the scripts in paper/code/.