Skip to content

Releases: ray-project/ray

Ray-1.6.0

23 Aug 20:22
Compare
Choose a tag to compare

Highlights

  • Runtime Environments are ready for general use! This feature enables you to dynamically specify per-task, per-actor and per-job dependencies, including a working directory, environment variables, pip packages and conda environments. Install it with pip install -U 'ray[default]'.
  • Ray Dataset is now in alpha! Dataset is an interchange format for distributed datasets, powered by Arrow. You can also use it for a basic Ray native data processing experience. Check it out here.
  • Ray Lightning v0.1 has been released! You can install it via pip install ray-lightning. Ray Lightning is a library of PyTorch Lightning plugins for distributed training using Ray. Features:
  • pip install ray now has a significantly reduced set of dependencies. Features such as the dashboard, the cluster launcher, runtime environments, and observability metrics may require pip install -U 'ray[default]' to be enabled. Please report any issues on Github if this is an issue!

Ray Autoscaler

🎉 New Features:

  • The Ray autoscaler now supports TPUs on GCP. Please refer to this example for spinning up a simple TPU cluster. (#17278)

💫Enhancements:

🔨 Fixes:

  • Code clean up and corrections to downscaling policy (#17352)
  • Docker file sync fix (#17361)

Ray Client

💫Enhancements:

  • Updated docs for client server ports and ray.init(ray://) (#17003, #17333)
  • Better error handling for deserialization failures (#17035)

🔨 Fixes:

  • Fix for server proxy not working with non-default redis passwords (#16885)

Ray Core

🎉 New Features:

  • Runtime Environments are ready for general use!
    • Specify a working directory to upload your local files to all nodes in your cluster.
    • Specify different conda and pip dependencies for your tasks and actors and have them installed on the fly.

🔨 Fixes:

🏗 Architecture refactoring:

  • Plasma store refactor for better testability and extensibility. (#17332, #17313, #17307)

Ray Data Processing

Ray Dataset is now in alpha! Dataset is an interchange format for distributed datasets, powered by Arrow. You can also use it for a basic Ray native data processing experience. Check it out here.

RLLib

🎉 New Features:

  • Support for RNN/LSTM models with SAC (new agent: "RNNSAC"). Shoutout to ddworak94! (#16577)
  • Support for ONNX model export (tf and torch). (#16805)
  • Allow Policies to be added to/removed from a Trainer on-the-fly. (#17566)

🔨 Fixes:

🏗 Architecture refactoring:

  • CV2 to Skimage dependency change (CV2 still supported). Shoutout to Vince Jankovics. (#16841)
  • Unify tf and torch policies wrt. multi-GPU handling: PPO-torch is now 33% faster on Atari and 1 GPU. (#17371)
  • Implement all policy maps inside RolloutWorkers to be LRU-caches so that a large number of policies can be added on-the-fly w/o running out of memory. (#17031)
  • Move all tf static-graph code into DynamicTFPolicy, such that policies can be deleted and their tf-graph is GC'd. (#17169)
  • Simplify multi-agent configs: In most cases, creating dummy envs (only to retrieve spaces) are no longer necessary. (#16565, #17046)

📖Documentation:

  • Examples scripts do-over (shoutout to Stefan Schneider for this initiative).
  • Example script: League-based self-play with "open spiel" env. (#17077)
  • Other doc improvements: #15664 (shoutout to kk-55), #17030, #17530

Tune

🎉 New Features:

  • Dynamic trial resource allocation with ResourceChangingScheduler (#16787)
  • It is now possible to use a define-by-run function to generate a search space with OptunaSearcher (#17464)

💫Enhancements:

  • String names of searchers/schedulers can now be used directly in tune.run (#17517)
  • Filter placement group resources if not in use (progress reporting) (#16996)
  • Add unit tests for flatten_dict (#17241)

🔨Fixes:

  • Fix HDFS sync down template (#17291)
  • Re-enable TensorboardX without Torch installed (#17403)

📖Documentation:

SGD

🎉 New Features:

💫Enhancements:

  • Placement Group support for TorchTrainer (#17037)

Serve

🎉 New Features:

  • Add Ray API stability annotations to Serve, marking many serve.\* APIs as Stable (#17295)
  • Support runtime_env's working_dir for Ray Serve (#16480)

🔨Fixes:

  • Fix FastAPI's response_model not added to class based view routes (#17376)
  • Replace backend with deployment in metrics & logging (#17434)

🏗Stability Enhancements:

Thanks

Many thanks to all who contributed to this release:

@suquark, @xwjiang2010, @clarkzinzow, @kk-55, @mGalarnyk, @pdames, @Souphis, @edoakes, @sasha-s, @iycheng, @stephanie-wang, @antoine-galataud, @scv119, @ericl, @amogkam, @ckw017, @wuisawesome, @krfricke, @vakker, @qingyun-wu, @Yard1, @juliusfrost, @DmitriGekhtman, @clay4444, @mwtian, @corentinmarek, @matthewdeng, @simon-mo, @pcmoritz, @qicosmos, @architkulkarni, @rkooo567, @navneet066, @dependabot[bot], @jovany-wang, @kombuchafox, @thomasjpfan, @kimikuri, @Ivorforce, @franklsf95, @MissiontoMars, @lantian-xu, @duburcqa, @ddworak94, @ijrsvt, @sven1977, @kira-lin, @SongGuyang, @kfstorm, @Rohan138, @jamesmishra, @amavilla, @fyrestone, @lixin-wei, @stefanbschneider, @jiaodong, @richardliaw, @WangTaoTheTonic, @chenk008, @Catch-Bull, @Bam4d

Ray-1.5.2

12 Aug 19:24
Compare
Choose a tag to compare

Cherrypick release to address RLlib issue, no library or core changes included.

Ray-1.5.1

31 Jul 01:47
Compare
Choose a tag to compare

Cherrypick release to address a few external integration and documentation issues, no library or core changes included.

Ray-1.5.0

26 Jul 18:43
Compare
Choose a tag to compare

Ray 1.5.0 Release Note

Highlight

Ray Autoscaler

🎉 New Features:

💫 Enhancements:

  • [Kubernetes] Operator refactored to use Kopf package (#15787)
  • Flag to control config bootstrap for rsync (#16667)
  • Prometheus metrics for Autoscaler (#16066, #16198)
  • Allows launching in subnets where public IP assignments off by default (#16816)

🔨 Fixes:

  • [Kubernetes] Fix GPU=0 resource handling (#16887)
  • [Kubernetes] Release docs updated with K8s test instructions (#16662)
  • [Kubernetes] Documentation update (#16570)
  • [Kubernetes] All official images set to rayproject/ray:latest (#15988 #16205)
  • [Local] Fix bootstrapping ray at a given static set of ips (#16202, #16281)
  • [Azure] Fix Azure Autoscaling Failures (#16640)
  • Handle node type key change / deletion (#16691)
  • [GCP] Retry GCP BrokenPipeError (#16952)

Ray Client

🎉 New Features:

💫 Enhancements:

  • Better support for multi-threaded client-side applications (#16731, #16732)
  • Improved error messages and warnings when misusing Ray Client (#16454, #16508, #16588, #16163)
  • Made Client Object & Actor refs a subclass of their non-client counterparts (#16110)

🔨 Fixes:

Ray Core

🎉 New Features:

  • Ray dataset alpha is available!

🔨 Fixes:

🏗 Architecture refactoring:

  • From Ray 1.5.0, liveness of Ray jobs are guaranteed as long as there’s enough disk space in machines with the “fallback allocator” mechanism which allocates plasma objects to the disk directly when objects cannot be created in memory or spilled to the disk.

RLlib

🎉 New Features:

  • Support for adding/deleting Policies to a Trainer on-the-fly (#16359, #16569, #16927).
  • Added new “input API” for customizing offline datasets (shoutout to Julius F.). (#16957)
  • Allow for external env PolicyServer to listen on n different ports (given n rollout workers); No longer require creating an env on the server side to get env’s spaces. (#16583).

🔨 Fixes:

📖 Documentation and testing:

🏗 Architecture refactoring:

  • All RLlib algos operating on Box action spaces now operate on normalized actions by default (ranging from -1.0 to 1.0). This enables PG-style algos to learn in skewed action spaces. (#16531)

Tune

🎉 New Features:

💫 Enhancements:

  • Pass in configurations that have already been evaluated separately to Searchers. This is useful for warm-starting or for meta-searchers, for example (#16485)
  • Sort trials in reporter table by metric (#16576)
  • Add option to keep random values constant over grid search (#16501)
  • Read trial results from json file (#15915)

🔨 Fixes:

📖 Documentation and testing:

SGD

🎉 New Features:

  • Torch native mixed precision is now supported! (#16382)

🔨 Fixes:

  • Use target label count for training batch size (#16400)

📖 Documentation and testing:

Serve

💫 Enhancements: UX improvements (#16227, #15909), Improved logging (#16468)
🔨 Fixes: Fix shutdown logic (#16524), Assorted bug fixes (#16647, #16760, #16783)
📖 Documentation and testing: #16042, #16631, #16759, #16786

Thanks

Many thanks to all who contributed to this release:

@Tonyhao96, @simon-mo, @scv119, @Yard1, @llan-ml, @xcharleslin, @jovany-wang, @ijrsvt, @max0x7ba, @annaluo676, @rajagurunath, @zuston, @amogkam, @yorickvanzweeden, @mxz96102, @chenk008, @Bam4d, @mGalarnyk, @kfstorm, @crdnb, @suquark, @ericl, @marload, @jiaodong, @Thexiang, @ellimac54, @qicosmos, @mwtian, @jkterry1, @sven1977, @howardlau1999, @mvindiola1, @stefanbschneider, @juliusfrost, @krfricke, @matthewdeng, @zhuangzhuang131419, @brandonJY, @Eleven1Liu, @nikitavemuri, @richardliaw, @iycheng, @stephanie-wang, @HuangLED, @clarkzinzow, @fyrestone, @asm582, @qingyun-wu, @ckw017, @yncxcw, @DmitriGekhtman, @benjamindkilleen, @Chong-Li, @kathryn-zhou, @pcmoritz, @rodrigodelazcano, @edoakes, @dependabot[bot], @pdames, @frenkowski, @loicsacre, @gabrieleoliaro, @achals, @thomasjpfan, @rkooo567, @dibgerge, @clay4444, @architkulkarni, @lixin-wei, @ConeyLiu, @WangTaoTheTonic, @AnnaKosiorek, @wuisawesome, @gramhagen, @zhisbug, @franklsf95, @vakker, @jenhaoyang, @liuyang-my, @chaokunyang, @SongGuyang, @tgaddair

Ray-1.4.1

30 Jun 18:16
Compare
Choose a tag to compare

Release 1.4.1 Notes

Ray Python Wheels

Python 3.9 wheels (Linux / MacOS / Windows) are available (#16347 #16586)

Ray Autoscaler

🔨 Fixes: On-prem bug resolved (#16281)

Ray Client

💫Enhancements:

  • Add warnings when many tasks scheduled (#16454)
  • Better error messages (#16163)

🔨 Fixes:

  • Fix gRPC Timeout Options (#16554)
  • Disconnect on dataclient error (#16588)

Ray Core

🔨 Fixes:

  • Runtime Environments
  • Fix race condition leading to failed imports #16278
  • Don't broadcast empty resources data (#16104)
  • Fix async actor lost object bug (#16414)
  • Always report job timestamps in milliseconds (#16455, #16545, #16548)
  • Multi-node placement group and job config bug fixes (#16345)
  • Fix bug in task dependency management for duplicate args (#16365)
  • Unify Python and core worker ids (#16712)

Dask

💫Enhancements: Dask 2021.06.1 support (#16547)

Tune

💫Enhancements: Support object refs in with_params (#16753)

Serve

🔨Fixes: Ray serve shutdown goes through Serve controller (#16524)

Java

🔨Fixes: Upgrade dependencies to fix CVEs (#16650, #16657)

Documentation

  • Runtime Environments (#16290)
  • Feature contribution [Tune] (#16477)
  • Ray design patterns and anti-patterns (#16478)
  • PyTorch Lightning (#16484)
  • Ray Client (#16497)
  • Ray Deployment (#16538)
  • Dask version compatibility (#16595)

CI

Move wheel and Docker image upload from Travis to Buildkite (#16138 #16241)

Thanks

Many thanks to all those who contributed to this release!

@rkooo567, @clarkzinzow, @WangTaoTheTonic, @ckw017, @stephanie-wang, @Yard1, @mwtian, @jovany-wang, @jiaodong, @wuisawesome, @krfricke, @architkulkarni, @ijrsvt, @simon-mo, @DmitriGekhtman, @amogkam, @richardliaw

Ray-1.4.0

07 Jun 19:10
Compare
Choose a tag to compare

Release 1.4.0 Notes

Ray Autoscaler

🎉 New Features:

  • Support Helm Chart for deploying Ray on Kubernetes
  • Key Autoscaler metrics are now exported via Prometheus!

💫Enhancements

  • Better error messages when a node fails to come online

🔨 Fixes:

  • Stability and interface fixes for Kubernetes deployments.
  • Fixes to Azure NodeProvider

Ray Client

🎉 New Features:

  • Complete API parity with non-client mode
  • Experimental ClientBuilder API (docs here)
  • Full Asyncio support

💫Enhancements

  • Keep Alive for Messages for long lived connections
  • Improved pickling error messages

🔨 Fixes:

  • Client Disconnect can be called multiple times
  • Client Reference Equality Check
  • Many bug fixes and tests for the complete ray API!

Ray Core

🎉 New Features:

  • Namespaces (check out the docs)! Note: this may be a breaking change if you’re using detached actors (set ray.init(namespace=””) for backwards compatible behavior).

🔨 Fixes:

  • Support increment by arbitrary number with ray.util.metrics.Counter
  • Various bug fixes for the placement group APIs including the GPU assignment bug (#15049).

🏗 Architecture refactoring:

  • Increase the efficiency and robustness of resource reporting

Ray Data Processing

🔨 Fixes:

🏗 Architecture refactoring:

  • Ray 100TB shuffle results: #15770
  • More robust memory management subsystem is in progress (#15157, #15027)

RLlib

🎉 New Features:

  • PyTorch multi-GPU support (#14709, #15492, #15421).
  • CQL TensorFlow support (#15841).
  • Task-settable Env/Curriculum Learning API (#15740).
  • Support for native tf.keras Models (no ModelV2 required) (#14684, #15273).
  • Trainer.train() and Trainer.evaluate() can run in parallel (optional) (#15040, #15345).

💫Enhancements and documentation:

  • CQL: Bug fixes and confirmed MuJoCo benchmarks (#15814, #15603, #15761).
  • Example for differentiable neural computer (DNC) network (#14844, 15939).
  • Added support for int-Box action spaces. (#15012)
  • DDPG/TD3/A[23]C/MARWIL/BC: Code cleanup and type annotations. (#14707).
  • Example script for restoring 1 agent out of n
  • Examples for fractional GPU usage. (15334)
  • Enhanced documentation page describing example scripts and blog posts (15763).
  • Various enhancements/test coverage improvements: 15499, 15454, 15335, 14865, 15525, 15290, 15611, 14801, 14903, 15735, 15631,

🔨 Fixes:

  • Memory Leak in multi-agent environment (#15815). Shoutout to Bam4d!
  • DDPG PyTorch GPU bug. (#16133)
  • Simple optimizer should not be used by default for tf+MA (#15365)
  • Various bug fixes: #15762, 14843, 15042, 15427, 15871, 15132, 14840, 14386, 15014, 14737, 15015, 15733, 15737, 15736, 15898, 16118, 15020, 15218, 15451, 15538, 15610, 15326, 15295, 15762, 15436, 15558, 15937

🏗 Architecture refactoring:

  • Remove atari dependency (#15292).
  • Trainer._evaluate() renamed to Trainer.evaluate() (backward compatible); Trainer.evaluate() can be called even w/o evaluation worker set, if create_env_on_driver=True (#15591).

Tune

🎉 New Features:

  • ASHA scheduler now supports save/restore. (#15438)
  • Add HEBO to search algorithm shim function (#15468)
  • Add SkoptSearcher/Bayesopt Searcher restore functionality (#15075)

💫Enhancements:

  • We now document scalability best practices (k8s, scalability thresholds). You can find this here (#14566)
  • You can now set the result buffer_length via tune.run - this helps with trials that report too frequently. (#15810)
  • Support numpy types in TBXlogger (#15760)
  • Add max_concurrent option to BasicVariantGenerator (#15680)
  • Add seed parameter to OptunaSearch (#15248)
  • Improve BOHB/ConfigSpace dependency check (#15064)

🔨Fixes:

  • Reduce default number of maximum pending trials to max(16, cluster_cpus) (#15628)
  • Return normalized checkpoint path (#15296)
  • Escape paths before globbing in TrainableUtil.get_checkpoints_paths (#15368)
  • Optuna Searcher: Set correct Optuna TrialState on trial complete (#15283)
  • Fix type annotation in tune.choice (#15038)
  • Avoid system exit error by using del when cleaning up actors (#15687)

Serve

🎉 New Features:

  • As of Ray 1.4, Serve has a new API centered around the concept of “Deployments.” Deployments offer a more streamlined API and can be declaratively updated, which should improve both development and production workflows. The existing APIs have not changed from Ray 1.4 and will continue to work until Ray 1.5, at which point they will be removed (see the package reference if you’re not sure about a specific API). Please see the migration guide for details on how to update your existing Serve application to use this new API.
  • New serve.deployment API: @serve.deployment, serve.get_deployments, serve.list_deployments (#14935, #15172, #15124, #15121, #14953, #15152, #15821)
  • New serve.ingress(fastapi_app) API (#15445, 15441, 14858)
  • New @serve.batch decorator in favor of legacy max_batch_size in backend config (#15065)
  • serve.start() is now idempotent (#15148)
  • Added support for handle.method_name.remote() (#14831)

🔨Fixes:

  • Rolling updates for redeployments (#14803)
  • Latency improvement by using pickle (#15945)
  • Controller and HTTP proxy uses num_cpus=0 by default (#15000)
  • Health checking in the controller instead of using max_restarts (#15047)
  • Use longest prefix matching for path routing (#15041)

Dashboard

🎉New Features:

🔨Fixes:

  • Add object store memory column (#15697)
  • Add object store stats to dashboard API. (#15677)
  • Remove disk data from the dashboard when running on K8s. (#14676)
  • Fix reported dashboard ip when using 0.0.0.0 (#15506)

Thanks

Many thanks to all those who contributed to this release!

@clay4444, @Fabien-Couthouis, @mGalarnyk, @smorad, @ckw017, @ericl, @antoine-galataud, @pleiadesian, @DmitriGekhtman, @robertnishihara, @Bam4d, @fyrestone, @stephanie-wang, @kfstorm, @wuisawesome, @rkooo567, @franklsf95, @micahtyong, @WangTaoTheTonic, @krfricke, @hegdeashwin, @devin-petersohn, @qicosmos, @edoakes, @llan-ml, @ijrsvt, @richardliaw, @Sertingolix, @ffbin, @simjay, @AmeerHajAli, @simon-mo, @tom-doerr, @sven1977, @clarkzinzow, @mxz96102, @SebastianBo1995, @amogkam, @iycheng, @sumanthratna, @Catch-Bull, @pcmoritz, @architkulkarni, @stefanbschneider, @tgaddair, @xcharleslin, @cthoyt, @fcardoso75, @Jeffwan, @mvindiola1, @michaelzhiluo, @rlan, @mwtian, @SongGuyang, @YeahNew, @kathryn-zhou, @rfali, @jennakwon06, @Yeachan-Heo

Ray-1.3.0

22 Apr 22:28
Compare
Choose a tag to compare

Release v1.3.0 Notes

Highlights

Ray Cluster Launcher

💫Enhancements:

  • Observability improvements (#14816, #14608)
  • Worker nodes no longer killed on autoscaler failure (#14424)
  • Better validation for min_workers and max_workers (#13779)
  • Auto detect memory resource for AWS and K8s (#14567)
  • On autoscaler failure, propagate error message to drivers (#14219)
  • Avoid launching GPU nodes when the workload only has CPU tasks (#13776)
  • Autoscaler/GCS compatibility (#13970, #14046, #14050)
  • Testing (#14488, #14713)
  • Migration of configs to multi-node-type format (#13814, #14239)
  • Better config validation (#14244, #13779)
  • Node-type max workers defaults infinity (#14201)

🔨 Fixes:

Ray Client

💫Enhancements:

🔨 Fixes:

  • Hook runtime context (#13750)
  • Fix mutual recursion (#14122)
  • Set gRPC max message size (#14063)
  • Monitor stream errors (#13386)
  • Fix dependencies (#14654)
  • Fix ray.get ctrl-c (#14425)
  • Report error deserialization errors (#13749)
  • Named actor refcounting fix (#14753)
  • RayTaskError serialization (#14698)
  • Multithreading fixes (#14701)

Ray Core

🎉 New Features:

🔨 Fixes:

  • Ray is now using c++14.
  • Fixed high CPU breaking raylets with heartbeat missing errors (#13963, #14301)
  • Fixed high CPU issues from raylet during object transfer (#13724)
  • Improvement in placement group APIs including better Java support (#13821, #13858, #13582, #15049, #13821)

Ray Data Processing

🎉 New Features:

  • Object spilling is turned on by default. Check out the documentation.
  • Dask-on-Ray and Spark-on-Ray are fully ready to use. Please try them out and give us feedback!
  • Dask-on-Ray is now compatible with Dask 2021.4.0.
  • Dask-on-Ray now works natively with dask.persist().

🔨 Fixes:

🏗 Architecture refactoring:

  • Various architectural improvements in object spilling and memory management. For more details, check out the whitepaper.
  • Locality-aware scheduling is turned on by default.
  • Moved from centralized GCS-based object directory protocol to decentralized owner-to-owner protocol, yielding better cluster scalability.

RLlib

🎉 New Features:

  • R2D2 implementation for torch and tf. (#13933)
  • PlacementGroup support (all RLlib algos now return PlacementGroupFactory from Trainer.default_resource_request). (#14289)
  • Multi-GPU support for tf-DQN/PG/A2C. (#13393)

💫Enhancements:

  • Documentation: Update documentation for Curiosity's support of continuous actions (#13784); CQL documentation (#14531)
  • Attention-wrapper works with images and supports prev-n-actions/rewards options. (#14569)
  • rllib rollout runs in parallel by default via Trainer’s evaluation worker set. (#14208)
  • Add env rendering (customizable) and video recording options (for non-local mode; >0 workers; +evaluation-workers) and episode media logging. (#14767, #14796)
  • Allow SAC to use custom models as Q- or policy nets and deprecate "state-preprocessor" for image spaces. (#13522)
  • Example Scripts: Add coin game env + matrix social dilemma env + tests and examples (shoutout to Maxime Riché!). (#14208); Attention net (#14864); Serve + RLlib. (#14416); Env seed (#14471); Trajectory view API (enhancements and tf2 support). (#13786); Tune trial + checkpoint selection. (#14209)
  • DDPG: Add support for simplex action space. (#14011)
  • Others: on_learn_on_batch callback allows custom metrics. (#13584); Add TorchPolicy.export_model(). (#13989)

🔨 Fixes:

🏗 Architecture refactoring:

  • Remove all non-trajectory view API code. (#14860)
  • Obsolete UsageTrackingDict in favor of SampleBatch. (#13065)

Tune

🎉 New Features:

  • We added a new searcher HEBOSearcher (#14504, #14246, #13863, #14427)
  • Tune is now natively compatible with the Ray Client (#13778, #14115, #14280)
  • Tune now uses Ray’s Placement Groups underneath the hood. This will enable much faster autoscaling and training (for distributed trials) (#13906, #15011, #14313)

💫Enhancements:

  • Checkpointing improvements (#13376, #13767)
  • Optuna Search Algorithm improvements (#14731, #14387)
  • tune.with_parameters now works with Class API (#14532)

🔨Fixes:

SGD

  • Add fault tolerance during worker startup (#14724)

Serve

🎉 New Features:

  • Added metadata to default logger in backend replicas (#14251)
  • Added more metrics for ServeHandle stats (#13640)
  • Deprecated system-level batching in favor of @serve.batch (#14610, #14648)
  • Beta support for Serve with Ray client (#14163)
  • Use placement groups to bypass autoscaler throttling (#13844)
  • Deprecate client-based API in favor of process-wide singleton (#14696)
  • Add initial support for FastAPI ingress (#14754)

🔨 Fixes:

  • Fix ServeHandle serialization (#13695)

🏗 Architecture refactoring:

  • Refactor BackendState to support backend versioning and add more unit testing (#13870, #14658, #14740, #14748)
  • Optimize long polling to be per-key (#14335)

Dashboard

🎉 New Features:

  • Dashboard now supports being served behind a reverse proxy. (#14012)
  • Disk and network metrics are added to prometheus. (#14144)

💫Enhancements:

Thanks

Many thanks to all those who contributed to this release:
@geraint0923, @iycheng, @yurirocha15, @brian-yu, @harryge00, @ijrsvt, @wumuzi520, @suquark, @simon-mo, @clarkzinzow, @RaphaelCS, @FarzanT, @ob, @ashione, @ffbin, @robertnishihara, @SongGuyang, @zhe-thoughts, @rkooo567, @ezra-h, @acxz, @clay4444, @QuantumMecha, @jirkafajfr, @wuisawesome, @Qstar, @guykhazma, @devin-petersohn, @jeroenboeye, @ConeyLiu, @dependabot[bot], @fyrestone, @micahtyong, @javi-redondo, @Manuscrit, @mxz96102, @EscapeReality846089495, @WangTaoTheTonic, @stanislav-chekmenev, @architkulkarni, @Yard1, @tchordia, @zhisbug, @Bam4d, @niole, @yiranwang52, @thomasjpfan, @DmitriGekhtman, @gabrieleoliaro, @jparkerholder, @kfstorm, @andrew-rosenfeld-ts, @erikerlandson, @Crissman, @raulchen, @sumanthratna, @Catch-Bull, @chaokunyang, @krfricke, @raoul-khour-ts, @sven1977, @kathryn-zhou, @AmeerHajAli, @jovany-wang, @amogkam, @antoine-galataud, @tgaddair, @randxie, @ChaceAshcraft, @ericl, @cassidylaidlaw, @TanjaBayer, @lixin-wei, @lena-kashtelyan, @cathrinS, @qicosmos, @richardliaw, @rmsander, @jCrompton, @mjschock, @pdames, @barakmich, @michaelzhiluo, @stephanie-wang, @edoakes

Release ray-1.2.0

13 Feb 01:42
Compare
Choose a tag to compare

Release v1.2.0 Notes

Highlights

Ray Autoscaler

🎉 New Features:

  • A new autoscaler output format in monitor.log (#12772, #13561)
  • Piping autoscaler events to driver logs (#13434)

💫Enhancements

🔨 Fixes:

RLLib

🎉 New Features:

  • Fast Attention Nets (using the trajectory view API) (#12753).
  • Attention Nets: Full PyTorch support (#12029).
  • Attention Nets: Support auto-wrapping around default- or custom models by specifying “use_attention=True” in the model’s config. * * * This works completely analogously now to “use_lstm=True”. (#11698)
  • New Offline RL Algorithm: CQL (based on SAC) (#13118).
  • MAML: Discrete actions support (added CartPole mass test case).
  • Support Atari framestacking via the trajectory view API (#13315).
  • Support for D4RL environments/benchmarks (#13550).
  • Preliminary work on JAX support (#13077, #13091).

💫 Enhancements:

  • Rollout lengths: Allow unit to be configured as “agent_steps” in multi-agent settings (default: “env_steps”) (#12420).
  • TFModelV2: Soft-deprecate register_variables and unify var names wrt TorchModelV2 (#13339, #13363).

📖 Documentation:

  • Added documentation on Model building API (#13260, #13261).
  • Added documentation for the trajectory view API. (#12718)
  • Added documentation for SlateQ (#13266).
  • Readme.md documentation for almost all algorithms in rllib/agents (#12943, #13035).
  • Type annotations for the “rllib/execution” folder (#12760, #13036).

🔨 Fixes:

Tune

🎉 New Features:

💫 Enhancements

  • Ray Tune now uses ray.cloudpickle underneath the hood, allowing you to checkpoint large models (>4GB) (#12958).
  • Using the 'reuse_actors' flag can now speed up training for general Trainable API usage. (#13549)
  • Ray Tune will now automatically buffer results from trainables, allowing you to use an arbitrary reporting frequency on your training functions. (#13236)
  • Ray Tune now has a variety of experiment stoppers (#12750)
  • Ray Tune now supports an integer loguniform search space distribution (#12994)
  • Ray Tune now has an initial support for the Ray placement group API. (#13370)
  • The Weights and Bias integration (WandbLogger) now also accepts wandb.data_types.Video (#13169)
  • The Hyperopt integration (HyperoptSearch) can now directly accept category variables instead of indices (#12715)
  • Ray Tune now supports experiment checkpointing when using grid search (#13357)

🔨Fixes and Updates

  • The Optuna integration was updated to support the 2.4.0 API while maintaining backwards compatibility (#13631)
  • All search algorithms now support points_to_evaluate (#12790, #12916)
  • PBT Transformers example was updated and improved (#13174, #13131)
  • The scikit-optimize integration was improved (#12970)
  • Various bug fixes (#13423, #12785, #13171, #12877, #13255, #13355)

SGD

🔨Fixes and Updates

  • Fix Docstring for as_trainable (#13173)
  • Fix process group timeout units (#12477)
  • Disable Elastic Training by default when using with Tune (#12927)

Serve

🎉 New Features:

  • Ray Serve backends now accept a Starlette request object instead of a Flask request object (#12852). This is a breaking change, so please read the migration guide.
  • Ray Serve backends now have the option of returning a Starlette Response object (#12811, #13328). This allows for more customizable responses, including responses with custom status codes.
  • [Experimental] The new Ray Serve MLflow plugin makes it easy to deploy your MLflow models on Ray Serve. It comes with a Python API and a command-line interface.
  • Using “ImportedBackend” you can now specify a backend based on a class that is installed in the Python environment that the workers will run in, even if the Python environment of the driver script (the one making the Serve API calls) doesn’t have it installed (#12923).

💫 Enhancements:

  • Dependency management using conda no longer requires the driver script to be running in an activated conda environment (#13269).
  • Ray ObjectRef can now be used as argument to serve_handle.remote(...). (#12592)
  • Backends are now shut down gracefully. You can set the graceful timeout in BackendConfig. (#13028)

📖 Documentation:

  • A tutorial page has been added for integrating Ray Serve with your existing FastAPI web server or with your existing AIOHTTP web server (#13127).
  • Documentation has been added for Ray Serve metrics (#13096).

ray-1.1.0

24 Dec 10:07
Compare
Choose a tag to compare

Ray 1.1.0

Ray Core

🎉 New Features:

  • Progress towards supporting a Ray client
  • Descendent tasks are cancelled when the calling task is cancelled

🔨 Fixes:

  • Improved object broadcast robustness
  • Improved placement group support

🏗 Architecture refactoring:

  • Progress towards the new scheduler backend

RLlib

🎉 New Features:

  • SUMO simulator integration (rllib/examples/simulators/sumo/). Huge thanks to Lara Codeca! (#11710)
  • SlateQ Algorithm added for PyTorch. Huge thanks to Henry Chen! (#11450)
  • MAML extension for all Models, except recurrent ones. (#11337)
  • Curiosity Exploration Module for tf1.x/2.x/eager. (#11945)
  • Minimal JAXModelV2 example. (#12502)

🔨 Fixes:

  • Fix RNN learning for tf2.x/eager. (#11720)
  • LSTM prev-action/prev-reward settable separately and prev-actions are now one-hot’d. (#12397)
  • PyTorch LR schedule not working. (#12396)
  • Various PyTorch GPU bug fixes. (#11609)
  • SAC loss not using prio. replay weights in critic’s loss term. (#12394)
  • Fix epsilon-greedy Exploration for nested action spaces. (#11453)

🏗 Architecture refactoring:

  • Trajectory View API on by default (faster PG-type algos by ~20% (e.g. PPO on Atari)). (#11717, #11826, #11747, and #11827)

Tune

🎉 New Features:

  • Loggers can now be passed as objects to tune.run. The new ExperimentLogger abstraction was introduced for all loggers, making it much easier to configure logging behavior. (#11984, #11746, #11748, #11749)
  • The tune verbosity was refactored into four levels: 0: Silent, 1: Only experiment-level logs, 2: General trial-level logs, 3: Detailed trial-level logs (default) (#11767, #12132, #12571)
  • Docker and Kubernetes autoscaling environments are detected automatically, automatically utilizing the correct checkpoint/log syncing tools (#12108)
  • Trainables can now easily leverage Tensorflow DistributedStrategy! (#11876)

💫 Enhancements

  • Introduced a new serialization debugging utility (#12142)
  • Added a new lightweight Pytorch-lightning example (#11497, #11585)
  • The BOHB search algorithm can be seeded with a random state (#12160)
  • The default anonymous metrics can be used automatically if a mode is set in tune.run (#12159).
  • Added HDFS as Cloud Sync Client (#11524)
  • Added xgboost_ray integration (#12572)
  • Tune search spaces can now be passed to search algorithms on initialization, not only via tune.run (#11503)
  • Refactored and added examples (#11931)
  • Callable accepted for register_env (#12618)
  • Tune search algorithms can handle/ignore infinite and NaN numbers (#11835)
  • Improved scalability for experiment checkpointing (#12064)
  • Nevergrad now supports points_to_evaluate (#12207)
  • Placement group support for distributed training (#11934)

🔨 Fixes:

  • Fixed with_parameters behavior to avoid serializing large data in scope (#12522)
  • TBX logger supports None (#12262)
  • Better error when metric or mode unset in search algorithms (#11646)
  • Better warnings/exceptions for fail_fast='raise' (#11842)
  • Removed some bottlenecks in trialrunner (#12476)
  • Fix file descriptor leak by syncer and Tensorboard (#12590, #12425)
  • Fixed validation for search metrics (#11583)
  • Fixed hyperopt randint limits (#11946)

Serve

🎉 New Features:

🔨Fixes:

  • Set serve.start(http_host=None) to disable HTTP servers. If you are only using ServeHandle, this option lowers resource usage. (#11627)
  • Flask requests will no longer create reference cycles. This means peak memory usage should be lower for high traffic scenarios. (#12560)

🏗 Architecture refactoring:

Ray Cluster Launcher (Autoscaler)

🎉 New Features:

💫 Enhancements

  • Containers do not run with root user as the default (#11407)
  • SHM-Size is auto-populated when using the containers (#11953)

🔨 Fixes:

SGD

🎉 New Features:

  • Easily customize your torch.DistributedDataParallel configurations by passing in a ddp_args field into TrainingOperator.register (#11771).

🔨 Fixes:

  • TorchTrainer now properly scales up to more workers if more resources become available (#12562)

📖 Documentation:

  • The new callback API for using Ray SGD with Tune is now documented (#11479)
  • Pytorch Lightning + Ray SGD integration is now documented (#12440)

Dashboard

🔨 Fixes:

  • Fixed bug that prevented viewing the logs for cluster workers
  • Fixed bug that caused "Logical View" page to crash when opening a list of actors for a given class.

🏗 Architecture refactoring:

  • Dashboard runs on a new backend architecture that is more scalable and well-tested. The dashboard should work on ~100 node clusters now, and we're working on lifting scalability to constraints to support even larger clusters.

Thanks

Many thanks to all those who contributed to this release:
@bartbroere, @SongGuyang, @gramhagen, @richardliaw, @ConeyLiu, @weepingwillowben, @zhongchun, @ericl, @dHannasch, @timurlenk07, @kaushikb11, @krfricke, @desktable, @bcahlit, @rkooo567, @amogkam, @micahtyong, @edoakes, @stephanie-wang, @clay4444, @ffbin, @mfitton, @barakmich, @pcmoritz, @AmeerHajAli, @DmitriGekhtman, @iamhatesz, @raulchen, @ingambe, @allenyin55, @sven1977, @huyz-git, @yutaizhou, @suquark, @ashione, @simon-mo, @raoul-khour-ts, @Leemoonsoo, @maximsmol, @alanwguo, @kishansagathiya, @wuisawesome, @acxz, @gabrieleoliaro, @clarkzinzow, @jparkerholder, @kingsleykuan, @InnovativeInventor, @ijrsvt, @lasagnaphil, @lcodeca, @jiajiexiao, @heng2j, @wumuzi520, @mvindiola1, @aaronhmiller, @robertnishihara, @WangTaoTheTonic, @chaokunyang, @nikitavemuri, @kfstorm, @roireshef, @fyrestone, @viotemp1, @yncxcw, @karstenddwx, @hartikainen, @sumanthratna, @architkulkarni, @michaelzhiluo, @UWFrankGu, @oliverhu, @danuo, @lixin-wei

ray-1.0.1.post1

19 Nov 22:43
Compare
Choose a tag to compare

Patch release containing the following changes:

  • bcc92f5 Fix dashboard crashing on multi-node clusters.
  • #11600 Add the cluster_name to docker file mounts directory prefix.