sustainable-computing-io / kepler-model-server

Model Server for Kepler
Apache License 2.0
25 stars 25 forks source link

apply energy source param on train-model flow #331

Closed sunya-ch closed 3 months ago

sunya-ch commented 3 months ago

This PR is to fix the issue in retrain-model workflow: https://github.com/sustainable-computing-io/kepler-model-server/actions/runs/10137095697/job/28026878134.

The issue is that the ENERGY_SOURCE parameter is not used by train target and the default of original train task is acpi,rapl-sysfs. ec2 does not have acpi source so it throws an error.

Here is result of temporary workflow I tested locally in my repo: https://github.com/sunya-ch/kepler-model-server/actions/runs/10139182692

Signed-off-by: Sunyanan Choochotkaew sunyanan.choochotkaew1@ibm.com