Skip to content

Commit

Permalink
[docs/air] Refactor AIR documentation -- orphan examples (1/n) (ray-p…
Browse files Browse the repository at this point in the history
…roject#37741)

* orphan all examples

* orphan examples

* add getting-started-for-serve

* update-reference
  • Loading branch information
richardliaw authored Jul 25, 2023
1 parent a298595 commit 5f1e274
Show file tree
Hide file tree
Showing 29 changed files with 98 additions and 71 deletions.
26 changes: 0 additions & 26 deletions doc/source/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,32 +54,6 @@ parts:
- file: ray-air/predictors
- file: ray-air/computer-vision
- file: ray-air/deployment
- file: ray-air/examples/index
sections:
- file: ray-air/examples/torch_detection
- file: ray-air/examples/convert_existing_pytorch_code_to_ray_air
- file: ray-air/examples/convert_existing_tf_code_to_ray_air
- file: ray-air/examples/tfx_tabular_train_to_serve
- file: ray-air/examples/huggingface_text_classification
- file: ray-air/examples/sklearn_example
- file: ray-air/examples/xgboost_example
- file: ray-air/examples/analyze_tuning_results
- file: ray-air/examples/lightgbm_example
- file: ray-air/examples/torch_incremental_learning
- file: ray-air/examples/rl_online_example
- file: ray-air/examples/rl_offline_example
- file: ray-air/examples/upload_to_comet_ml
- file: ray-air/examples/upload_to_wandb
- file: ray-air/examples/feast_example
- file: ray-air/examples/automl_with_ray_air
- file: ray-air/examples/batch_tuning
- file: ray-air/examples/batch_forecasting
- file: ray-air/examples/stablediffusion_batch_prediction
- file: ray-air/examples/gptj_deepspeed_fine_tuning
- file: ray-air/examples/gptj_batch_prediction
- file: ray-air/examples/gptj_serving
- file: ray-air/examples/dreambooth_finetuning
- file: ray-air/examples/dolly_lightning_fsdp_finetuning
- file: ray-air/api/api
- file: ray-air/benchmarks

Expand Down
1 change: 1 addition & 0 deletions doc/source/ray-air/api/checkpoint.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.. _air-checkpoint-ref:
.. _checkpoint-api-ref:

Ray AIR Checkpoint
==================
Expand Down
3 changes: 3 additions & 0 deletions doc/source/ray-air/examples/analyze_tuning_results.ipynb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"id": "c62191af",
"metadata": {},
Expand All @@ -17,6 +18,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "41abda7b",
"metadata": {},
Expand Down Expand Up @@ -521,6 +523,7 @@
"pygments_lexer": "ipython3",
"version": "3.8.13"
},
"orphan": true,
"vscode": {
"interpreter": {
"hash": "d5dd028e96f79d2f61f5c3b3bf6330a93e2dda8cb8a37b822da28d8c3a299e7a"
Expand Down
20 changes: 19 additions & 1 deletion doc/source/ray-air/examples/automl_with_ray_air.ipynb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"id": "596e2463",
"metadata": {},
Expand All @@ -9,6 +10,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "676f0ada",
"metadata": {},
Expand All @@ -21,7 +23,7 @@
"2. Perform temporal cross-validation on each model configuration in parallel.\n",
"3. Pick the best performing model as the output of the AutoML system.\n",
"\n",
"We see that these steps fit into the framework of a hyperparameter optimization problem that can be tackled with the [Ray AIR Tuner](air-tuner)!\n",
"We see that these steps fit into the framework of a hyperparameter optimization problem that can be tackled with [Ray Tune](tune-main)!\n",
"\n",
"In this notebook, we will show how to:\n",
"1. **Create an AutoML system with Ray AIR** for time series forecasting.\n",
Expand All @@ -32,6 +34,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "9e01bef8",
"metadata": {},
Expand All @@ -53,6 +56,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "aff15de3",
"metadata": {},
Expand Down Expand Up @@ -94,6 +98,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "d38cba4c-3984-4c2a-9a01-aefb610b92ce",
"metadata": {},
Expand All @@ -104,6 +109,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "01ee6bbe",
"metadata": {},
Expand Down Expand Up @@ -263,6 +269,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "af8b9544",
"metadata": {},
Expand Down Expand Up @@ -387,6 +394,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "cfbaf59f",
"metadata": {},
Expand All @@ -413,6 +421,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "64c9e1f6",
"metadata": {},
Expand Down Expand Up @@ -458,6 +467,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "36848e64",
"metadata": {},
Expand Down Expand Up @@ -501,6 +511,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "bb8074dc",
"metadata": {},
Expand All @@ -519,6 +530,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "fc695a89",
"metadata": {},
Expand Down Expand Up @@ -554,6 +566,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "3a4e68f5",
"metadata": {},
Expand Down Expand Up @@ -583,6 +596,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "482fd99f",
"metadata": {},
Expand Down Expand Up @@ -611,6 +625,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "cd6099cd",
"metadata": {},
Expand Down Expand Up @@ -677,6 +692,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "cf72f95d",
"metadata": {},
Expand Down Expand Up @@ -739,6 +755,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "6b9af73a",
"metadata": {},
Expand Down Expand Up @@ -836,6 +853,7 @@
"pygments_lexer": "ipython3",
"version": "3.8.13"
},
"orphan": true,
"vscode": {
"interpreter": {
"hash": "31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6"
Expand Down
19 changes: 17 additions & 2 deletions doc/source/ray-air/examples/batch_forecasting.ipynb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"id": "16a0b509",
"metadata": {},
Expand All @@ -9,6 +10,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "74d5d891",
"metadata": {},
Expand All @@ -25,6 +27,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "82c2a39a",
"metadata": {
Expand All @@ -42,6 +45,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "a8033e35",
"metadata": {},
Expand Down Expand Up @@ -71,6 +75,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "649ba4c9",
"metadata": {},
Expand Down Expand Up @@ -276,6 +281,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "e6e47315",
"metadata": {
Expand All @@ -286,6 +292,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "b8d29ea0",
"metadata": {},
Expand Down Expand Up @@ -465,6 +472,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "d2358421",
"metadata": {},
Expand All @@ -473,6 +481,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "94eb28a7",
"metadata": {},
Expand All @@ -482,7 +491,7 @@
"Inside this trainable function:\n",
"- 📖 The input must include a `config` argument. \n",
"- 📈 Inside the function, the tuning metric (a model's loss or error) must be calculated and reported using `session.report()`.\n",
"- ✔️ Optionally [checkpoint](air-checkpoints-doc) (save) the model for fault tolerance and easy deployment later.\n",
"- ✔️ Optionally [checkpoint](checkpoint-api-ref) (save) the model for fault tolerance and easy deployment later.\n",
"\n",
"```{tip}\n",
"Ray Tune has two ways of [defining a trainable](tune_60_seconds_trainables), namely the Function API and the Class API. Both are valid ways of defining a trainable, but *the Function API is generally recommended*.\n",
Expand Down Expand Up @@ -603,6 +612,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "139008ea",
"metadata": {},
Expand All @@ -611,6 +621,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "100f5e98",
"metadata": {},
Expand Down Expand Up @@ -866,6 +877,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "0cafe75d",
"metadata": {},
Expand Down Expand Up @@ -1134,6 +1146,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "aec846be",
"metadata": {},
Expand All @@ -1142,6 +1155,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "a23cf01e",
"metadata": {},
Expand Down Expand Up @@ -1348,7 +1362,8 @@
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
}
},
"orphan": true
},
"nbformat": 4,
"nbformat_minor": 5
Expand Down
Loading

0 comments on commit 5f1e274

Please sign in to comment.