-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added readme to the aot_mlp example #266
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# AOT MLP Example | ||
|
||
This example demonstrates export, compilation, and inference of | ||
a simple Multi-Layer Perceptron (MLP) model. | ||
The model is a four-layer neural network. | ||
|
||
To run this example, you should clone the repository to your local device and | ||
install the requirements in a virtual environment: | ||
|
||
```bash | ||
git clone https://github.com/iree-org/iree-turbine.git | ||
cd iree-turbine/examples/aot_mlp | ||
python -m venv mlp.venv | ||
source ./mlp.venv/bin/activate | ||
pip install -r requirements.txt | ||
``` | ||
|
||
Once the requirements are installed, you should be able to run the example. | ||
|
||
```bash | ||
python mlp_export_simple.py | ||
``` | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
numpy | ||
torch | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might want to suggest https://github.com/iree-org/iree-turbine/tree/main?tab=readme-ov-file#install-pytorch-for-your-system for some users rather than the stock |
||
iree-turbine | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pre-commit link checks found a few minor style issues in this file and the README: https://github.com/iree-org/iree-turbine/actions/runs/11811883913/job/33237529472?pr=266
Docs: https://github.com/iree-org/iree-turbine?tab=readme-ov-file#optional-pre-commits-and-developer-settings
If you could fix those, that would be great. A maintainer could also push those fixes for you.