You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: model_training/cmd_instruction.md
+20-18Lines changed: 20 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,22 @@
1
1
# Manual Metric Collection and Training with Entrypoint
2
2
3
3
## 1. Collect metrics
4
-
Without benchmark/pipeline automation, kepler metrics can be collected by `query` function by either one of the following options.
5
-
### 1.1. by defining start time and end time
4
+
Without benchmark/pipeline automation, kepler metrics can be collected by `query` function by setting `BENCHMARK`, `PROM_URL`, `COLLECT_ID` and either one of the following time options.
5
+
6
+
> It is recommend to set BENCHMARK name as a part of the pod name such as `stressng` to filter the validated results. BENCHMARK name will be also used by the TrainerIsolator to filter the target pods. If the BENCHMARK cannot be used to filter the target pods, the validated results will show result from all pods.
6
7
7
8
```bash
8
-
# value setting
9
9
BENCHMARK= # name of the benchmark (will generate [BENCHMARK].json to save start and end time for reference)
@@ -47,31 +50,30 @@ DATAPATH=/path/to/workspace MODEL_PATH=/path/to/workspace python cmd/main.py tra
47
50
```
48
51
49
52
## 3. Export models
50
-
Export function is to archive the model that has an error less than threshold from the trained pipeline and make a report in the format that is ready to push to kepler-model-db.
51
-
52
-
### 3.1. exporting the trained pipeline with BENCHMARK
53
-
54
-
The benchmark file is created by CPE operator or by step 1.1. or 1.2..
53
+
Export function is to archive the model that has an error less than threshold from the trained pipeline and make a report in the format that is ready to push to kepler-model-db. To use export function, need to set `EXPORTER_PATH` and `PUBLISHER`, and collect date option.
55
54
56
55
```bash
57
-
# value setting
58
56
EXPORT_PATH= # /path/to/kepler-model-db/models
59
57
PUBLISHER= # github account of publisher
58
+
```
60
59
60
+
### 3.1. extracting collect date from benchmark file
61
+
62
+
The benchmark file is created by CPE operator or by query function from step 1.
0 commit comments