blob: 01f59260f14cd537dfe7f97025b91f4673f6f6c4 [file] [log] [blame] [view]
Scott Todd619c4202019-11-26 17:50:31 -08001# Google Colaboratory (Colab) Notebooks
2
Scott Toddb3cd60a2023-10-12 09:40:30 -07003These [Colab](https://colab.google/) notebooks contain interactive sample
4applications using IREE's Python bindings and ML framework integrations.
5
Scott Todd619c4202019-11-26 17:50:31 -08006## Notebooks
7
Scott Toddb3cd60a2023-10-12 09:40:30 -07008Framework | Notebook file | Description | Link
9-------- | ------------- | ----------- | ----
Scott Todd3f51a552024-04-19 11:00:27 -070010Generic | [low_level_invoke_function](low_level_invoke_function.ipynb) | Shows low level IREE python binding concepts | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/iree-org/iree/blob/main/samples/colab/low_level_invoke_function.ipynb)
Scott Todd8aae2942024-06-07 14:14:22 -070011PyTorch | [pytorch_aot_advanced](pytorch_aot_advanced.ipynb) | Uses [Turbine](https://github.com/iree-org/iree-turbine) to export a PyTorch program | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/iree-org/iree/blob/main/samples/colab/pytorch_aot_advanced.ipynb)
12PyTorch | [pytorch_aot_simple](pytorch_aot_simple.ipynb) | Uses [Turbine](https://github.com/iree-org/iree-turbine) to export a simple PyTorch program | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/iree-org/iree/blob/main/samples/colab/pytorch_aot_simple.ipynb)
13PyTorch | [pytorch_jit](pytorch_jit.ipynb) | Uses [Turbine](https://github.com/iree-org/iree-turbine) for eager execution in a PyTorch session | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/iree-org/iree/blob/main/samples/colab/pytorch_jit.ipynb)
Scott Toddd12291f2024-04-22 14:40:50 -070014PyTorch | [pytorch_huggingface_whisper](pytorch_huggingface_whisper.ipynb) | Imports the [Whisper](https://huggingface.co/openai/whisper-small) model from [Hugging Face](https://huggingface.co/) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/iree-org/iree/blob/main/samples/colab/pytorch_huggingface_whisper.ipynb)
Scott Todd3f51a552024-04-19 11:00:27 -070015TensorFlow | [tensorflow_edge_detection](tensorflow_edge_detection.ipynb) |Performs image edge detection | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/iree-org/iree/blob/main/samples/colab/tensorflow_edge_detection.ipynb)
16TensorFlow | [tensorflow_hub_import](tensorflow_hub_import.ipynb) | Imports a [MobileNet V2](https://tfhub.dev/google/tf2-preview/mobilenet_v2/classification) model from [TensorFlow Hub](https://tfhub.dev/) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/iree-org/iree/blob/main/samples/colab/tensorflow_hub_import.ipynb)
17TensorFlow | [tensorflow_mnist_training](tensorflow_mnist_training.ipynb) | Compiles, trains, and executes a neural network | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/iree-org/iree/blob/main/samples/colab/tensorflow_mnist_training.ipynb)
Scott Toddd12291f2024-04-22 14:40:50 -070018TensorFlow | [tensorflow_resnet](tensorflow_resnet.ipynb) | Runs a pretrained [ResNet50](https://www.tensorflow.org/api_docs/python/tf/keras/applications/ResNet50) model | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/iree-org/iree/blob/main/samples/colab/tensorflow_resnet.ipynb)
19TFLite | [tflite_text_classification](tflite_text_classification.ipynb) | Runs a pretrained [text classification](https://www.tensorflow.org/lite/examples/text_classification/overview) model | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/iree-org/iree/blob/main/samples/colab/tflite_text_classification.ipynb)
not-jennia07a1122021-06-02 01:46:08 -070020
Scott Todd619c4202019-11-26 17:50:31 -080021## Working with GitHub
22
23Refer to
Jacques Pienaara4b8ccb2023-11-08 09:55:22 -080024[Colab's GitHub demo](https://colab.research.google.com/github/googlecolab/colabtools/blob/main/notebooks/colab-github-demo.ipynb)
Scott Todd619c4202019-11-26 17:50:31 -080025for general information about using Colab with GitHub.
26
27To make changes to a notebook in this repository, one possible workflow is:
28
29* Open or create the notebook in Colab
Scott Todd982db732021-01-08 10:16:25 -080030* Connect to a hosted or local runtime
Scott Todd619c4202019-11-26 17:50:31 -080031* Make your changes, run the notebook, etc.
32* Download the modified notebook using `File > Download .ipynb`
33* Move the downloaded notebook file into a clone of this repository and submit
34 a pull request
Scott Toddb3cd60a2023-10-12 09:40:30 -070035
36## Testing
37
38This notebooks are tested continuously by the samples.yml CI job.