Skip to content

Commit 6f31336

Browse files
authored
Add basic overview flowchart of tuning algorithm (#1269)
Add basic overview flowchart of tuning algorithm
1 parent 05fcaa9 commit 6f31336

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tuner/examples/simple/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,19 @@ python -m examples.simple <model_file_path> <benchmark_file_path> \
5353
--num-candidates=<num_generated_candidates> \
5454
--codegen-pipeline=<codegen_pipeline>
5555
```
56+
57+
## Algorithm of tuner
58+
### Tuning algorithm
59+
1. Generate Candidate specs
60+
2. Compile candidate
61+
3. Benchmark for candidates
62+
- Baseline benchmark for candidates (now serially over all the given devices)
63+
- Candidate benchmark (parallel over all the given devices)
64+
- Second baseline run to check for any regression.
65+
- Return top candidates
66+
4. Compile models
67+
5. Benchmark for models
68+
- Baseline benchmark for models (now serially over all the given devices)
69+
- Model benchmark (parallel over all the given devices)
70+
- Second baseline run to check for any regression.
71+
- Return top model candidates

0 commit comments

Comments
 (0)