Skip to content

Commit

Permalink
Merge pull request #329 from sunya-ch/bump-kepler-0.7.11
Browse files Browse the repository at this point in the history
change default pipeline name to std_v0.7.11
  • Loading branch information
sthaha authored Jul 29, 2024
2 parents e3e797f + 9c9796e commit 6c2eff4
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/collect-train.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
instance_type: [i3.metal]
uses: ./.github/workflows/train-model.yml
with:
pipeline_name: std_v0.7
pipeline_name: std_v0.7.11
instance_type: ${{ matrix.instance_type }}
ami_id: 'ami-0e4d0bb9670ea8db0'
github_repo: ${{ github.repository }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ jobs:
docker_secret: ${{ needs.check-secret.outputs.docker-secret }}
image_repo: ${{ vars.IMAGE_REPO || 'docker.io/library' }}
image_tag: ${{ needs.check-branch.outputs.tag }}
pipeline_name: std_v0.7
pipeline_name: std_v0.7.11

integration-test-internal-only:
needs: [check-secret, check-branch, check-change, base-image]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
instance_type: [i3.metal]
uses: ./.github/workflows/train-model.yml
with:
pipeline_name: std_v0.7
pipeline_name: std_v0.7.11
instance_type: ${{ matrix.instance_type }}
ami_id: 'ami-0e4d0bb9670ea8db0'
github_repo: ${{ github.repository }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/train.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
instance_type: [i3.metal]
uses: ./.github/workflows/train-model.yml
with:
pipeline_name: std_v0.7
pipeline_name: std_v0.7.11
instance_type: ${{ matrix.instance_type }}
ami_id: 'ami-0e4d0bb9670ea8db0'
github_repo: ${{ github.repository }}
Expand Down
2 changes: 1 addition & 1 deletion hack/aws_helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ HOST_MNT_PATH="${HOST_MNT_PATH:-/mnt}"
MACHINE_SPEC_DIR="machine_spec"
MACHINE_ID=""

PIPELINE_NAME="${PIPELINE_NAME:-std_v0.7}"
PIPELINE_NAME="${PIPELINE_NAME:-std_v0.7.11}"
POWER_SOURCE="${POWER_SOURCE:-rapl-sysfs}"
MODEL_TYPE="${MODEL_TYPE:-AbsPower}"
FEATURE_NAME="${FEATURE_NAME:-BPFOnly}"
Expand Down
2 changes: 1 addition & 1 deletion manifests/base/patch/patch-estimator-sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
data:
MODEL_CONFIG: |
NODE_COMPONENTS_ESTIMATOR=true
NODE_COMPONENTS_INIT_URL=https://raw.githubusercontent.com/sustainable-computing-io/kepler-model-db/main/models/v0.7/ec2/intel_rapl/AbsPower/BPFOnly/GradientBoostingRegressorTrainer_0.zip
NODE_COMPONENTS_INIT_URL=https://raw.githubusercontent.com/sustainable-computing-io/kepler-model-db/main/models/v0.7/ec2-0.7.11/rapl-sysfs/AbsPower/BPFOnly/GradientBoostingRegressorTrainer_0.zip
NODE_TOTAL_ESTIMATOR=true
NODE_TOTAL_INIT_URL=https://raw.githubusercontent.com/sustainable-computing-io/kepler-model-db/main/models/v0.7/specpower/acpi/AbsPower/BPFOnly/GradientBoostingRegressorTrainer_0.zip
---
Expand Down
4 changes: 2 additions & 2 deletions manifests/test/patch-estimator-sidecar.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data:
MODEL_CONFIG: |
NODE_COMPONENTS_ESTIMATOR=true
NODE_COMPONENTS_INIT_URL=http://model-db.kepler.svc.cluster.local:8110/std_v0.7/intel_rapl/AbsPower/BPFOnly/GradientBoostingRegressorTrainer_0.zip
NODE_COMPONENTS_INIT_URL=http://model-db.kepler.svc.cluster.local:8110/std_v0.7.11/rapl-sysfs/AbsPower/BPFOnly/GradientBoostingRegressorTrainer_0.zip
NODE_TOTAL_ESTIMATOR=true
NODE_TOTAL_INIT_URL=http://model-db.kepler.svc.cluster.local:8110/std_v0.7/acpi/AbsPower/BPFOnly/GradientBoostingRegressorTrainer_0.zip
NODE_TOTAL_INIT_URL=http://model-db.kepler.svc.cluster.local:8110/std_v0.7.11/acpi/AbsPower/BPFOnly/GradientBoostingRegressorTrainer_0.zip
2 changes: 1 addition & 1 deletion model_training/tekton/examples/single-train/dyn-power.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# example-dyn-train-pipeline:
# running pipelines with all default value to train DynPower model (intel_rapl, BPFOnly)
# running pipelines with all default value to train DynPower model (rapl-sysfs, BPFOnly)
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
Expand Down
7 changes: 4 additions & 3 deletions src/util/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
import requests
import codecs

version = 0.7
major_version = "0.7"
version = "0.7.11"

FILTER_ITEM_DELIMIT = ';'
VALUE_DELIMIT = ':'
Expand All @@ -24,10 +25,10 @@
## default_train_output_pipeline: a default pipeline name which is output from the training pipeline
default_train_output_pipeline = "std_v{}".format(version)
default_pipelines = {
"rapl-sysfs": "ec2-0.7.11",
"rapl-sysfs": "ec2-{}".format(version),
"acpi": "specpower"
}
base_model_url = "https://raw.githubusercontent.com/sustainable-computing-io/kepler-model-db/main/models/v{}".format(version)
base_model_url = "https://raw.githubusercontent.com/sustainable-computing-io/kepler-model-db/main/models/v{}".format(major_version)
def get_pipeline_url(model_topurl, pipeline_name):
file_ext = ".zip"
return os.path.join(model_topurl, pipeline_name + file_ext)
Expand Down
2 changes: 1 addition & 1 deletion tests/estimator_model_request_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
os.environ['MODEL_SERVER_URL'] = 'http://localhost:8100'
model_topurl = 'http://localhost:{}'.format(file_server_port)
os.environ['MODEL_TOPURL'] = model_topurl
os.environ['INITIAL_PIPELINE_URL'] = os.path.join(model_topurl, "std_v0.7")
os.environ['INITIAL_PIPELINE_URL'] = os.path.join(model_topurl, "std_v0.7.11")

server_path = os.path.join(os.path.dirname(__file__), '../src')
util_path = os.path.join(os.path.dirname(__file__), '../src/util')
Expand Down

0 comments on commit 6c2eff4

Please sign in to comment.