Skip to content

maufadel/wattgpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WattGPU

WattGPU is a framework for predicting the energy and latency characteristics of Large Language Model (LLM) inference on GPUs without requiring profiling or hardware access.

The repository contains the code, data processing pipeline, and models from the paper WattGPU: Predicting Inference Power and Latency on Unseen GPUs and LLMs, presented at the 1st Workshop on Sustainability and Resource-Efficiency of Artificial Intelligence @ IJCAI 2026.

WattGPU predicts:

  • Mean GPU power draw during inference
  • Inter-Token Latency (ITL)

using only:

  • Public GPU specifications
  • Public LLM metadata

The models generalize to unseen GPUs and unseen LLMs, enabling energy-aware deployment decisions before running experiments.

If you use our work, please cite it.


Repository Contents

  • WattGPU.ipynb — Main notebook containing:

    • Data preprocessing
    • Feature engineering
    • Model training
    • Evaluation
    • Reproduction of the paper results
  • requirements.txt — Python dependencies

  • Data used in the experiments, including the subset of Watt Counts used for training and evaluation.


Installation

1. Clone the repository

git clone <repository-url>
cd wattgpu

2. Create a Python environment with uv

We recommend Python 3.12.

uv venv --python 3.12

3. Activate the environment

Linux / macOS

source .venv/bin/activate

Windows

.venv\Scripts\activate

4. Install dependencies

uv pip install -r requirements.txt

Running the Project

Start Jupyter Lab:

jupyter lab

Then open:

WattGPU.ipynb

The notebook contains the complete pipeline used in the paper.


License

Apache 2.0.

About

WattGPU predicts the energy and latency of Large Language Model (LLM) inference on GPUs without requiring profiling or hardware access.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors