Ray-2.53.0
Ray 2.55.0
⚠️ Breaking Changes
- Pydantic V1 support ending: Ray will drop Pydantic V1 in version 2.56.0 (see RFC #58876)
Unclaimed project
Are you a maintainer of ray? Claim this project to take control of your public changelog and roadmap.
Changelog
Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.
Last updated about 18 hours ago
read_parquet_bulk APIadd_command_alias CLI commandNew Features
RAY_DATA_CLUSTER_AUTOSCALER=V2)Dataset.summary() API for quick dataset inspectionshould_continue_on_error parameter for graceful error handling in batch inferencewith_column expressionsDefaultCollateFn, arrow_batch_to_tensors)Improvements
iter_batches; configurable batching for resolve_block_refsApproximateTopK aggregator now supports non-string itemsread_lance() now supports versioningtime_to_first_batch, get_ref_bundles, percentile histograms, iter_prefetched_bytesFixes
get_parquet_datasetNew Features
external_scaler_enabled flag)@serve.batch (e.g., token counts in LLM inference)ray_serve_deployment_target_replicas, ray_serve_autoscaling_decision_replicas, batching stats, router queue latencyImprovements
__qualname__, __module__, __doc__, __annotations__)DeploymentHandle, DeploymentResponse, DeploymentResponseGeneratorGET, PUT, etc.)Fixes
AggregationFunction enum in autoscaling configDeploymentResponse objects across event loops🎉 New Features
Dataset.summary() API for quick dataset inspection (#58862)should_continue_on_error for graceful error handling in batch inference (#59212)with_column expressions: Enable expressions for grouped with_column in Ray Data (#58231)DefaultCollateFn, arrow_batch_to_tensors (#58821)💫 Enhancements
__init__ (#59105)iter_batches (#58657)HashShuffleAggregator breaks down blocks on finalize (#58603)ApproximateTopK aggregator (#58659)read_lance() (#58895)time_to_first_batch and get_ref_bundles metrics to data dashboard (#58912)iter_prefetched_bytes statistics tracking (#58900)iter_batches: Add configurable batching for resolve_block_refs to speed up iter_batches (#58467)read_parquet_bulk API (#58970)🔨 Fixes
obj_store_mem_max_pending_output_per_task reporting (#58864)get_parquet_dataset (#57047)📖 Documentation
vision_preprocess and vision_postprocess in VLM docs (#59012)huggingface_hub instruction (#59109)🎉 New Features
external_scaler_enabled flag to application config, enabling third-party autoscalers to control replica counts. (#57727, #57698)@serve.batch, useful when batch items have varying weights (e.g., token counts in LLM inference). (#59059)ray_serve_deployment_target_replicas, ray_serve_autoscaling_decision_replicas), batching statistics, and router queue latency for improved observability. (#59220, #59232, #59233)💫 Enhancements
GET, PUT) corresponding to a route. (#58927)@ingress now preserve original class metadata (__qualname__, __module__, __doc__, __annotations__). (#58478)DeploymentHandle, DeploymentResponse, and DeploymentResponseGenerator for better IDE support and type inference. Adds .result() stub to DeploymentResponseGenerator to fix static typing errors. (#59363, #58522)🔨 Fixes
RepresenterError when using serve build with AggregationFunction enum values in autoscaling config. (#58509)last_scale_up_time and last_scale_down_time on autoscaling context. (#59057)DeploymentResponse objects in a chain of deployment calls from different event loops. (#59385)make_fastapi_class_based_view to properly handle inherited methods. (#59410)📖 Documentation
🎉 New Features
label_selector to ScalingConfig. This allows users to control worker placement by targeting specific labeled nodes in the cluster. (#58845, #59414)JaxTrainer running on GPU machines. (#58322)CheckpointConsistencyMode to get_all_reported_checkpoints, providing options for handling checkpoint retrieval consistency. (#58271)DataConfig now supports setting execution_options on a per-dataset basis for finer-grained control over data loading. (#58717)💫 Enhancements
Result.get_best_checkpoint now supports nested metrics, allowing for more flexible metric tracking and checkpoint selection. (#58537)get_all_reported_checkpoints no longer blocks when only metrics are reported. (#58870)🔨 Fixes
setup_mlflow API to ensure full compatibility with Ray Train V2. (#58705)ValueError is now raised if checkpoint_upload_fn fails to return a valid checkpoint. (#58863)📖 Documentation
ray.train.get_all_reported_checkpoints method. (#58946)💫 Enhancements:
Result.get_best_checkpoint now supports nested metrics, allowing for more flexible metric tracking and checkpoint selection. (#58537)💫 Enhancements
transformers to 4.57.3 (#58980)vllm_engine.py to check for VLLM_USE_V1 attribute (#58820)VLLM_RAY_PER_WORKER_GPUS from fractional placement-group bundles automatically (#58949)🔨 Fixes
🎉 New Features
num_env_runners \> 0 (#58495)💫 Enhancements
MetricsLogger tweaks+ Stats rewrite (#56838)EnvRunner (#56750)AlgorithmConfig deprecated argument with incorrect behavior/semantics (#59138)examples/ (#58893)/component/tests (#58890)pytest_runtest_makereport) across tests (#59003)asv.conf.json (#58934)byod_rllib.sh (#59157)🔨 Fixes
📖 Documentation
🎉 New Features
RAY_ENABLE_ZERO_COPY_TORCH_TENSORS (#57639).rayignore file support for controlling cluster uploads (#58500)AuthenticationError exception (#58737)X-Ray-Authorization fallback header for auth token in dashboard (#58819)💫 Enhancements
RAY_core_worker_num_server_call_thread (#58771)OtlpGrpcMetricExporter wrapper to log export failures (#58929)get_if_exists=True for actor lookup (#58628)AuthenticationError from Python for token loading errors (#59031)secrets.token_hex(32) to generate auth tokens (#58818)AUTH_MODE=token check in get-auth-token CLI (#58848)🔨 Fixes
grpc_authentication_server_interceptors streaming response handling (#59104)IsProcessAlive on Windows (#59106)RAY_enable_open_telemetry (#59095)RAY_DISABLE_FAILURE_SIGNAL_HANDLER option (#58984)RayletClient causing driver crash (use-after-free) (#58660)shared_ptr for pins_in_flight_ to prevent use-after-free (#58744)add_command_alias (#58719)cluster_full_of_actors_detected_* fields (unused in autoscaler v2) (#59052)📖 Documentation
token-auth.md documentation page (#58829)💫 Enhancements
time_to_first_batch and get_ref_bundles metrics to data dashboard (#58912)rich, cupy-cuda12x, and memray (#58983)lxml to 6.0.2 (#58808)requests from 2.32.3 to 2.32.5 (#58724)openlineage-python in the dependency set (#58724)Thank you to everyone who contributed to this release! @xinyuangui2, @harshit-anyscale, @Sparks0219, @israbbani, @siyuanfoundation, @robertnishihara, @thomasdesr, @spencer-p, @aslonnie, @ZacAttack, @soodoshll, @marosset, @simeetnayan81, @soffer-anyscale, @abrarsheikh, @400Ping, @richo-anyscale, @as-jding, @rueian, @kshanmol, @yancanmao, @zzchun, @coqian, @matthewdeng, @Future-Outlier, @YoussefEssDS, @ykdojo, @pseudo-rnd-thoughts, @lowdy1, @ArturNiederfahrenhorst, @myandpr, @komikndr, @machichima, @RisinT96, @curiosity-hyf, @alanwguo, @CaiZhanqi, @Aydin-ab, @MengjinYan, @suzuri-lollipop, @jeffreyjeffreywang, @rushikeshadhav, @alexeykudinkin, @meAmitPatil, @zcin, @teddygood, @elliot-barn, @dayshah, @srinathk10, @XLC127, @simonsays1980, @kevin85421, @bveeramani, @kunling-anyscale, @khluu, @andrew-anyscale, @KaisennHu, @kouroshHakha, @ryankert01, @pavitrabhalla, @jjyao, @dragongu, @SolitaryThinker, @justinrmiller, @wxwmd, @Haustle-v, @TimothySeah, @goutamvenkat-anyscale, @liulehui, @raulchen, @HassamSheikh, @Priya-753, @vaishdho1, @dancingactor, @daiping8, @eloaf, @JasonLi1909, @rayci-bot, @richardliaw, @SheldonTsen, @Yicheng-Lu-llll, @ktyxx, @pschmutz, @iamjustinhsu, @ahao-anyscale, @cem-anyscale, @eicherseiji, @edoakes, @rajeshg007, @arki05, @andrewsykim, @nrghosh, @ryanaoleary, @kyuds, @Daraan, @can-anyscale, @sampan-s-nayak, @xyuzh, @owenowenisme