Skip to content

Commit 3d6754d

Browse files
Fixed demo links (#182)
1 parent e1acfdd commit 3d6754d

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ Strategies to train policies. Currently, this repository only support Policy
1515
Gradient training. The release of Evolution Strategies training is on our
1616
roadmap.
1717

18-
Check out this [demo](docs/demo/demo.md) for an end-to-end demonstration of how
18+
Check out this [demo](docs/inlining-demo/demo.md) for an end-to-end demonstration of how
1919
to train your own inlining-for-size policy from the scratch with Policy
20-
Gradient.
20+
Gradient, or check out this [demo](docs/regalloc-demo/demo.md) for a demonstration of how
21+
to train your own regalloc-for-performance policy.
2122

2223
For more details about MLGO, please refer to our paper
2324
[MLGO: a Machine Learning Guided Compiler Optimizations Framework](https://arxiv.org/abs/2101.04808).

docs/adding_features.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ For each policy we train, there should be a `config.py`, e.g. `compiler_opt/rl/i
2727

2828
First and foremost, **you must regenerate the vocabulary** - technically you
2929
just need a vocab file for the new feature, but it's simpler to regenerate it
30-
all. See the [demo section](demo/demo.md#collect-trace-and-generate-vocab)
30+
all. See the [demo section](inlining-demo/demo.md#collect-trace-and-generate-vocab)
3131

3232
**Note:** You only need to regenerate the vocabulary if the feature is going
3333
to be normalized by a preprocessing layer for your model. If your feature does
@@ -36,7 +36,7 @@ to regenerate the vocabulary and that your feature is added to the list
3636
returned by `get_nonnormalized_features()` in `config.py`. In either case,
3737
it is still quite simple and fast to just call the vocab generation again.
3838

39-
After that, retrain from [scratch](demo/demo.md#train-a-new-model).
39+
After that, retrain from [scratch](inlining-demo/demo.md#train-a-new-model).
4040

4141
## Notes
4242

docs/contributing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
We'd love to accept your patches and contributions to this project. A good
44
starting step to get familiar with the project and set up a development
5-
enviroment as per [demo](docs/demo/demo.md). After running through the demo, a
6-
good second step is to pick up an open
5+
enviroment as per the inlining [demo](inlining-demo/demo.md). After running
6+
through the demo, a good second step is to pick up an open
77
[issue](https://github.com/google/ml-compiler-opt/issues) or create one that you
88
would like to work on and submit a patch for. Please make sure that your patch
99
adheres to all the guidelines given below.

0 commit comments

Comments
 (0)