Skip to content

Commit

Permalink
[Docs] [Data] Update Batch Inference end-to-end guide (ray-project#36018
Browse files Browse the repository at this point in the history
)

Updates batch inference end-to-end guide per offline discussion:

Abridges the guide to make it more consumable
Now that we've decided to keep the guide in the Ray Data docs, removes some of the duplicated information
Cleans up configuration section
Link out to the appropriate examples
Adds more information on competitive analysis and why you should use Ray Data for batch inference.

---------

Signed-off-by: amogkam <[email protected]>
  • Loading branch information
amogkam authored Jun 6, 2023
1 parent 68ec6f8 commit a66a0f2
Show file tree
Hide file tree
Showing 8 changed files with 381 additions and 1,068 deletions.
4 changes: 4 additions & 0 deletions .buildkite/pipeline.gpu_large.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@
- pip install -Ur ./python/requirements/ml/requirements_ml_docker.txt
- ./ci/env/install-horovod.sh
- ./ci/env/env_info.sh
# Test examples with newer version of `transformers`
# TODO(amogkam): Remove when https://github.com/ray-project/ray/issues/36011
# is resolved.
- pip install -U transformers
- bazel test --config=ci $(./scripts/bazel_export_options)
--test_tag_filters=doctest,-cpu python/ray/... doc/...

Expand Down
11 changes: 10 additions & 1 deletion doc/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ py_test_run_all_subdirectory(
exclude = [
"source/ray-air/doc_code/predictors.py",
"source/data/doc_code/loading_data_untested.py",
"source/data/doc_code/torch_image_batch_trained.py"
],
extra_srcs = [],
tags = ["exclusive", "team:data"],
Expand Down Expand Up @@ -317,8 +316,18 @@ doctest(
"source/ray-observability/user-guides/cli-sdk.rst",
"source/rllib/rllib-env.rst",
"source/rllib/rllib-sample-collection.rst",
"source/data/batch_inference.rst"
]
),
size = "large",
tags = ["team:none"]
)


doctest(
files = glob(
include=["source/data/batch_inference.rst"],
),
tags = ["team:data"],
gpu = True
)
1,085 changes: 366 additions & 719 deletions doc/source/data/batch_inference.rst

Large diffs are not rendered by default.

100 changes: 0 additions & 100 deletions doc/source/data/doc_code/hf_quick_start.py

This file was deleted.

101 changes: 0 additions & 101 deletions doc/source/data/doc_code/pytorch_quick_start.py

This file was deleted.

86 changes: 0 additions & 86 deletions doc/source/data/doc_code/tf_quick_start.py

This file was deleted.

60 changes: 0 additions & 60 deletions doc/source/data/doc_code/torch_image_batch_trained.py

This file was deleted.

2 changes: 1 addition & 1 deletion doc/source/data/user-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ show you how achieve several tasks.
loading-data
transforming-data
consuming-data
batch_inference
working-with-tensors
data-internals
performance-tips
batch_inference

0 comments on commit a66a0f2

Please sign in to comment.