Commit graph

13417 commits

Author SHA1 Message Date
Amog Kamsetty
3a345a470c
[AIR/Docs] Add Predictor Docs (#25833) 2022-07-16 21:14:21 -07:00
Jiao
77e2ef2eb6
[AIR] Update Torch benchmarks with documentation (#26631)
Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
2022-07-16 17:58:21 -07:00
Eric Liang
ef091c382e
[data] Add warnings when DatasetPipelines are under-parallelized or using too much memory (#26592)
Currently, it's not very easy to figure out why a DatasetPipeline may be underperforming. Add some warnings to help guide the user. As a next step, we can try to default to a good pipeline setting based on these constraints.
2022-07-16 17:38:52 -07:00
Eric Liang
0855bcb77e
[air] Use SPREAD strategy by default and don't special case it in benchmarks (#26633) 2022-07-16 17:37:06 -07:00
M Waleed Kadous
7c32993c15
[core/docs]Add a new section under Ray Core called Ray Gotchas (#26624)
Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
2022-07-16 16:53:01 -07:00
Antoni Baum
fb6f3cf708
[AIR/Docs] Small improvements to Train user guide (#26577)
Co-authored-by: matthewdeng <matthew.j.deng@gmail.com>
2022-07-16 16:51:17 -07:00
Eric Liang
6217138eb0
[docs] Move AIR benchmarks to top level (#26632) 2022-07-16 15:34:31 -07:00
Nikita Vemuri
3a3e6bb60b
[tune] Add external hooks in WandbLoggerCallback (#26617)
This is an experimental feature, so the following changes are added only to the WandbLoggerCallback. We are planning to collect feedback about usage and accordingly update or add these changes to the other W&B integration interfaces.

    Allow reading the W&B project name and group name from environment variable if not already passed to callback
    Add external hooks to fetch W&B API key, and to process any information about W&B run


Signed-off-by: Nikita Vemuri <nikitavemuri@gmail.com>
2022-07-16 22:35:53 +01:00
truelegion47
5bd8d121b2
Add type validation for ray.autoscaler.sdk.request_resources()(#26626)
Adds type validation to ray.autoscaler.sdk.request_resources().
2022-07-16 12:40:05 -07:00
Philipp Moritz
081bbfbff1
[Examples] Test OCR example in documentation tests (#26482)
Make sure the OCR example is tested in documentation after we discovered that example notebooks are not tested in CI.

Signed-off-by: Philipp Moritz <pcmoritz@gmail.com>
2022-07-16 10:51:28 -07:00
Eric Liang
605bc29f11
[air/predictors] Allow creating Predictor directly from a UDF (#26603) 2022-07-16 10:48:09 -07:00
Richard Liaw
799311b2f7
[air/docs] update examples to remove pandas again (#26598) 2022-07-16 08:40:44 -07:00
Jiao
196e52ad7c
[AIR][CUJ] E2E Pytorch training (#26621) 2022-07-16 08:23:19 -07:00
Jiao
988ffd494b
[AIR][CUJ] Add GPU bench prediction benchmark (#26614) 2022-07-16 08:22:37 -07:00
Clark Zinzow
fb54679a23
[Datasets] Refactor split_at_indices() to minimize number of split tasks and data movement. (#26363)
The current Dataset.split_at_indices() implementation suffers from O(n^2) memory usage in the small-split case (see issue) due to recursive splitting of the same blocks. This PR implements a split_at_indices() algorithm that minimizes the number of split tasks and data movement while ensuring that at most one block is used in each split task, for the sake of memory stability. Co-authored-by: scv119 <scv119@gmail.com>
2022-07-16 04:48:44 -07:00
SangBin Cho
0f0102666a
[Core] Support max cpu allocation per node for placement group scheduling (#26397)
The PR adds a new experimental flag to the placement group API to avoid placement group taking all cpus on each node. It is used internally by Air to avoid placement group (created by Tune) is using all CPU resources which are needed for dataset
2022-07-16 01:47:30 -07:00
Balaji Veeramani
34cf1f17ea
[Datasets] Add ImageFolderDatasource (#24641)
Co-authored-by: matthewdeng <matthew.j.deng@gmail.com>
Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
2022-07-15 22:43:23 -07:00
matthewdeng
e3a096f412
[air] add bulk ingest benchmarks (#26618) 2022-07-15 22:01:23 -07:00
matthewdeng
9256668b90
Revert "[Datasets] Explicitly define Dataset-like APIs in DatasetPipeline class (#26394)" (#26625) 2022-07-15 21:10:59 -07:00
Eric Liang
cf980c3020
[data] Refactor all to all op implementations into a separate file (#26585) 2022-07-15 18:17:48 -07:00
Cheng Su
fea94dc976
[Datasets] Explicitly define Dataset-like APIs in DatasetPipeline class (#26394)
This PR is to resolve #20888, where users have concern for the dataset-like methods used in dataset pipeline (such as map_batches, random_shuffle_each_window, etc). The reason is currently we define those dataset-like methods implicitly through Python setattr/getattr, to delegate the real work from dataset pipelien to dataset. This does not work very well with external developers/users if they want to navigate to the definition of method, or determine the method's return value data type.

So this PR is to explicitly define every dataset-like APIs in dataset pipeline class. This gives us a view of how much code we need to duplicate in upper bound. If we go with this direction, this means whenever we update or add a new method in Dataset, we need to update or add the same in DatasetPipeline.
2022-07-15 16:12:27 -07:00
Sihan Wang
09a6e5336a
[Serve][Part2] Migrate the tests to use deployment graph api (#26507) 2022-07-15 15:48:43 -07:00
Simon Mo
63d3ccf81e
[Serve] Default to EveryNode when starting Serve from REST API (#26588) 2022-07-15 15:47:54 -07:00
Chen Shen
fe9a12aa92
Revert "[KubeRay][Autoscaler][Core] Add a flag to disable ray status version check (#26584)" (#26597)
Reverts #26584

Seems it breaking test_advanced_4
2022-07-15 15:47:28 -07:00
Richard Liaw
5ad4e75831
[air] Add initial benchmark section (#26608) 2022-07-15 15:33:48 -07:00
Siyuan (Ryans) Zhuang
964bc90e09
[Workflow] Remove workflow execution module (#26504)
* remove workflow execution module

Signed-off-by: Siyuan <suquark@gmail.com>
2022-07-15 14:52:03 -07:00
xwjiang2010
a241e6a0f5
[air] Add xgboost release test for silver tier(10-node case). (#26460)
Co-authored-by: Antoni Baum <antoni.baum@protonmail.com>
Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
2022-07-15 13:21:10 -07:00
Edward Oakes
0ecc7dad74
Revert "Revert "[serve] Use soft constraint for pinning controller on head node (#25091)" (#25857)" (#25858) 2022-07-15 14:07:24 -05:00
Artur Niederfahrenhorst
4ce9686d94
[RLlib] Fixes MARWIL release tests (#26586) 2022-07-15 11:13:15 -07:00
Cheng Su
5a95e11e1e
[Datasets] Improve read_xxx experience of HTTP file (#26454) 2022-07-15 10:39:39 -07:00
Qing Wang
e301f9b543
Cleanup ActorContext due to multi actor instances got removed. (#26497) 2022-07-15 23:30:09 +08:00
michalsustr
ca3d272c3e
Print newest_ckpt_path when resuming trial. (#26561)
When trail is resumed, it is useful for the user to know from which checkpoint it happened.

Signed-off-by: sustr-equi <sustr@equilibretechnologies.com>
Co-authored-by: sustr-equi <sustr@equilibretechnologies.com>
2022-07-15 10:52:50 +01:00
Hao Chen
8fd0d39f06
Fix test_serialization_error_message for pytest 6.x (#26591) 2022-07-15 17:37:14 +08:00
Ishant Mrinal
57244aeee3
[RLlib] Make DQN update_target use only trainable variables. (#25226) 2022-07-15 09:17:06 +02:00
mgerstgrasser
f0e9d1a9bb
[RLlib] In env check, step only expected agents. (#26425) 2022-07-15 09:16:09 +02:00
Sven Mika
4aea24c8a8
[RLlib] restart_failed_sub_environments now works for MA cases and crashes during reset(); +more tests and logging; add eval worker sub-env fault tolerance test. (#26276) 2022-07-15 08:55:14 +02:00
Guyang Song
1949f35901
[runtime env] plugin refactor[4/n]: remove runtime env protobuf (#26522) 2022-07-15 13:56:12 +08:00
Clark Zinzow
5a81871820
Improve streaming read performance for default configuration. (#26587)
Signed-off-by: Clark Zinzow <clarkzinzow@gmail.com>
2022-07-14 21:25:21 -07:00
brucez-anyscale
d98a2482de
[Dashboard] Fix test dashboard flaky by catch an expected exception (#26555) 2022-07-14 20:57:46 -07:00
Simon Mo
df9f891416
[Serve] User custom class name for replica class (#26574) 2022-07-14 20:10:56 -07:00
Dmitri Gekhtman
a304d1c145
[KubeRay][Autoscaler][Core] Add a flag to disable ray status version check (#26584)
Adds a flag that disables the version check in ray health-check.
2022-07-14 19:56:16 -07:00
Tao Wang
6ddbdaa81a
[CI]Split C++, Java tests in MacOS from the big one (#26434) 2022-07-14 18:33:47 -07:00
Simon Mo
ef1d5c9a97
[Serve][AIR] Fix pandas_read_json compatibility issue (#26494) 2022-07-14 15:29:14 -07:00
Jiao
469ec195be
fix lint (#26569)
e9f6ffc broke it with logs
2022-07-14 15:07:02 -07:00
Jiao
647e12b6c7
[AIR] Fix convert_existing_pytorch_code_to_ray_air notebook (#26523) 2022-07-14 14:30:55 -07:00
Kai Fricke
213a96e239
[air/benchmarks] Add distributed Tensorflow benchmarks (CPU only) (#26519)
Following up from #26436, this PR adds a distributed benchmark test for Tensorflow FashionMNIST training. It compares training with Ray AIR with training with vanilla PyTorch.

Signed-off-by: Kai Fricke <kai@anyscale.com>
2022-07-14 22:08:43 +01:00
Antoni Baum
7cc6542205
[AIR/Train] HuggingFacePredictor improvements (#26531)
Co-authored-by: Amog Kamsetty <amogkam@users.noreply.github.com>
2022-07-14 13:20:31 -07:00
Antoni Baum
4273d2235e
[AIR] Improve to_air_checkpoint with path (#26532) 2022-07-14 13:20:21 -07:00
Eric Liang
40be6904a5
[data] Avoid under-parallelization regressions and add better testing for parallelism detection (#26543)
In the previous PR #25883, a subtle regression was introduced in the case where data sizes blow up significantly.

For example, suppose you're reading jpeg-image files from a Dataset, which increase in size substantially on decompression. On a small-core cluster (e.g., 4 cores), you end up with 4-8 blocks of ~200MiB each when reading a 1GiB dataset. This can blow up to OOM the node when decompressed (e.g., 25x size increase).

Previously the heuristic to use parallelism=200 avoids this small-node problem. This PR avoids this issue by (1) raising the min parallelism back to 200. As an optimization, we also introduce the min block size threshold, which allows using fewer blocks if the data size is really small (<100KiB per block).
2022-07-14 13:02:52 -07:00
Tim Gates
e42dc7943e
docs: Fix a few typos (#26556)
There are small typos in:
- doc/source/data/faq.rst
- python/ray/serve/replica.py

Fixes:
- Should read `successfully` rather than `succssifully`.
- Should read `pseudo` rather than `psuedo`.
2022-07-14 12:38:33 -07:00