Skip to content

Releases

Ray-2.60.1

Choose a tag to compare

@sai-miduthuri sai-miduthuri released this 23 Nov 18:48
35e67f6

Security fixes

brotli

  • CVE-2026-111497 (GHSA-9v8h-qqgm-4m35): an out-of-bounds write in the Brotli decoder in brotli 1.0.3 through 1.2.0, fixed in 1.2.1. It is listed in CISA KEV.
  • Python requirements: brotli, which Ray gets through gradio, moves to 1.2.1 in the compiled requirements and in the image, CI and release lock files. Ray's security requirements now set a brotli>=1.2.1 floor (#67789, pick #67998).
  • Docker images: the Miniforge base environment in base-deps and base-slim shipped brotli-python 1.1.0, which no pip lock managed, so every ray, ray-ml and ray-llm image carried the vulnerable decoder. The images now install brotli-python>=1.2.1 from conda on Python 3.11+, and Brotli==1.2.1 from PyPI on Python 3.10 (#67596, pick #67997).

ray (token authentication)

  • Group- or world-readable auth token file: ray.init() starting a new local cluster with token authentication, and ray get-auth-token --generate, wrote the cluster auth token to ~/.ray/auth_token with the default umask (typically 0644), so other local users could read it.
  • Ray now creates the token file as 0600 and a new ~/.ray directory as 0700 (#66581, pick #67993). A token file created by an earlier version keeps its permissions; run chmod 600 ~/.ray/auth_token to restrict it.

Bug fixes

Ray Data

  • Reject column-mapped Delta tables in read_delta and write_delta, which silently produced null columns (#67895, #67898, picks #68213, #68231)
  • Return None for null tensor rows instead of another row's value or an error, and merge them across blocks (#67579, #67806, picks #67999, #68019; closes #67200)
  • Stop writing Unity Catalog vended AWS credentials to the environment, where they replaced the job's own AWS identity and broke writes to its other buckets with ACCESS_DENIED. AWS Parquet reads through Unity Catalog now require region (#67899, pick #68232)
  • Keep every element of nested-null columns, such as list<null>, in Arrow-backed to_pandas(), which dropped elements or raised ArrowInvalid (#67566, pick #67994)
  • Fix a TypeError when a nested field is null in one block and a struct in another, and keep list types when unifying with null (#66521, pick #67995)
  • Take read_delta file sizes from the Delta log instead of making one get_file_info request per file, and add partition_filters to read only matching partitions (#67900, pick #68214)

Ray Core

  • Fix a spurious RecursionError that crashed async actor workers on Python 3.14 (#67132, pick #67996; closes #66399)

Thanks

Many thanks to all those who contributed to this release!

@ronaldosaheki, @MortalHappiness, @sai-miduthuri, @abhishekverma-ray, @rayo5o, @elliot-barn, @dragongu, @marwan116, @Kunchd

Ray-2.59.2

Choose a tag to compare

@sai-miduthuri sai-miduthuri released this 23 Nov 18:45
5afc0f4

Security fixes

brotli

  • CVE-2026-111497 (GHSA-9v8h-qqgm-4m35): an out-of-bounds write in the Brotli decoder in brotli 1.0.3 through 1.2.0, fixed in 1.2.1. It is listed in CISA KEV.
  • Python requirements: brotli, which Ray gets through gradio, moves to 1.2.1 in the compiled requirements and in the image, CI and release lock files. Ray's security requirements now set a brotli>=1.2.1 floor (#67789, pick #68027). The large_image_embedding release-test lock, which exists only on this branch, also moves from 1.1.0 to 1.2.1 (#68035).
  • Docker images: the Miniforge base environment in base-deps and base-slim shipped brotli-python 1.1.0, which no pip lock managed, so every ray, ray-ml and ray-llm image carried the vulnerable decoder. The images now install brotli-python>=1.2.1 from conda on Python 3.11+, and Brotli==1.2.1 from PyPI on Python 3.10 (#67596, pick #68028).

Bug fixes

Ray Data

  • Return None for null tensor rows instead of another row's value or an error, and merge them across blocks (#67579, #67806, picks #68025, #68026; closes #67200)
  • Keep every element of nested-null columns, such as list<null>, in Arrow-backed to_pandas(), which dropped elements or raised ArrowInvalid (#67566, pick #68022)
  • Fix a TypeError when a nested field is null in one block and a struct in another, and keep list types when unifying with null (#66521, pick #68024)

Ray Core

  • Fix a spurious RecursionError that crashed async actor workers on Python 3.14 (#67132, pick #68023; closes #66399)

Thanks

Many thanks to all those who contributed to this release!

@Kunchd, @ronaldosaheki, @elliot-barn, @rayo5o, @marwan116, @sai-miduthuri, @dragongu

Ray-2.58.2

Choose a tag to compare

@elliot-barn elliot-barn released this 18 Nov 23:44
e9825a2

Security fixes

eMudhra intermediate CA compromise

The eMudhra intermediate CA keys were reported compromised on October 20, 2026. pip trusts its own vendored certifi bundle in addition to the system store, so updating OS ca-certificates alone doesn't protect pip. This release moves every place Ray installs or bundles a CA bundle to the fixed releases, the same as 2.59.1.

  • Docker images: pip 26.2.2 on every Python version, conda and site-packages certifi 2026.10.19, uv 0.13.4 (#67295, #67350, pick #67962).
  • virtualenv 21.14.12, which bundles pip 26.2.2 for runtime_env virtualenvs. This also moves packaging, typing-extensions, distlib and python-discovery to the versions virtualenv requires (#67301, pick #67962).
  • certifi>=2026.10.19 floor in Ray's security requirements (#67305, pick #67962).

aiohttp

Brotli

  • Brotli 1.2.1 in the Docker images and in Ray's pinned dependencies. Fixes CVE-2026-111497. The images get conda brotli-python>=1.2.1, or PyPI Brotli==1.2.1 on Python 3.10, where conda-forge has no 1.2.1 build (#67596, #67789, pick #67962).

idna

  • idna 3.15 or newer in the remaining dependency locks, including the ones that feed the TPU images. Fixes CVE-2026-45409, a denial of service in idna before 3.15 (pick #68051).

Contributors

@elliot-barn, @ronaldosaheki

Ray-2.60.0

Choose a tag to compare

@sai-miduthuri sai-miduthuri released this 04 Nov 02:08
ad7245f

Highlights

  • Ray Data shuffle and Parquet reads: In this Ray release, shuffle v2 is the default shuffle strategy for joins, aggregations (#66260). Parquet reads now size read tasks from the row-group metadata in each file's footer instead of estimating from file size, so read tasks are packed to an accurate byte budget (#65596, #65806, #65821).
  • Ray Serve rolling updates: We've added max_surge_percent, which starts replacement replicas before stopping old ones so a rolling update doesn't reduce serving capacity (#66267). A rolling update whose new replicas keep failing now stops at DEPLOY_FAILED and leaves the remaining old replicas routable, instead of replacing every healthy replica (#66252, #66290).
  • Security: Ray Data now rejects pickled-object columns in every reader that deserializes Arrow data from external input, closing a remote code execution path in the LeRobot, Databricks, Iceberg, Hugging Face, ClickHouse, BigQuery, and Delta Sharing readers (#66042, #65769). Ray images and wheel builds pin certifi 2026.10.19 and pip 26.2.2 after the eMudhra CA compromise, and aiohttp moves to 3.14.4 for CVE-2026-111064 and CVE-2026-111066 (#67295, #67298, #67301, #67304, #67305, #67350).

Ray Data

🎉 New Features

  • Add Dataset.write_orc() for writing ORC files (#65453)
  • Add an unnest() expression that expands a struct-valued expression or column into one column per field (#65241)
  • Add min_bytes_per_file to write_parquet to combine small blocks toward a target output file size (#65636)
  • Support nested schema evolution in write_delta through schema_mode (#65858)
  • Support appending a subset of columns to an existing Lance dataset (#64474)
  • Add a rate-based cluster autoscaler that scales from measured operator throughput, now the default (#65954)
  • Add a backlog-aware actor-pool autoscaler, now the default; RAY_DATA_ACTOR_AUTOSCALER=DEFAULT restores the old one (#66035)
  • Make checkpoint restore pluggable through CheckpointConfig.checkpoint_manager_cls and checkpoint_filter_cls (#65676)
  • Add the ray.data.list_stats_summaries() developer API for execution stats of completed datasets (#66294)
  • Add a logical memory usage chart to the Ray Data dashboard (#66044)

💫 Enhancements

  • Keep pandas metadata on Arrow blocks parsable by pandas (#67576)
    Make shuffle v2 the default, add task-based shuffle v2 for sort, and rename external shuffle to disk shuffle (#66260, #64875, #66367)
  • Read Parquet footers to bin-pack read tasks by row group, and use one reader thread per fragment (#65596, #65806, #65821, #65169)
  • Use Polars streaming joins for in-partition joins with one Polars thread per reducer, and Polars in hash_partitions (#66075, #66341, #66269)
  • Make actor pools node-aware: skip actors on draining nodes and refresh actor locations after restarts (#66109)
  • Count lineage reconstruction tasks in task-pool resource usage so Data doesn't over-submit under object loss (#66217)
  • Default GPU map operators to num_cpus=1 when num_cpus is unspecified; set num_cpus=0 to opt out (#66202)
  • Speed up aggregations, sorts, row access, and tensor-to-pandas conversion by cutting per-row work and copies (#66194, #66120, #66246, #66254, #66116, #66219, #64961, #66122, #65796)
  • Break ds.stats() UDF time into input prep, function body, and output build, optionally per fused stage (#65807, #65810)
  • Warn when an operator's configured memory is below 1.25x its observed max USS (#65512)
  • Add an opt-in per-operator release interval for OutputBackpressureGuard (#65202)
  • Track autoscaling coordinator reservations per node (#66001, #66370)
  • Defer loading pyarrow.dataset on import ray.data (#66463)
  • Fetch only each read task's root bundles in read_lerobot (#65284)
  • Clearer errors for S3 ACCESS_DENIED writes, partition value casts, and V1 reads that find no files (#66033, #66078, #65256)
  • Deprecate RandomAccessDataset (#61287)
  • Groundwork for Data fault tolerance: lineage tracking for fan-out and fan-in tasks (#65642, #66136)
  • Reorganize DataSourceV2 so non-Parquet and catalog-backed sources such as Iceberg can build on it (#65908, #66244, #66066, #66312, #66357, #66390, #66398, #66450, #66478, #66497)

🔨 Fixes

  • Fix silent data loss when a file read retries partway through a file (#66011)
  • Fix ResourceBudget backpressure stalling a pipeline indefinitely (#64601)
  • Stop pushing filters past limit(), which changed the rows limit().filter() returned (#66143)
  • Fix partition pruning: keep pushed-down limits correct, raise on unevaluable filters, handle fully pruned manifests (#66010, #65990, #65955)
  • Return a result for global aggregations over an empty dataset, and fix duplicate aggregation column names (#66218)
  • Preserve anti-join rows when the other side is empty and its schema is unknown (#66126)
  • Fix hash shuffle after workers scale to zero (#66043)
  • Don't fuse a MapOperator with non-zero concurrency into a following AllToAllOperator (#66350)
  • Respect target_max_block_size=None in shuffle reduce (#66451)
  • Fix double-counted UDF time in fused map operators (#65776)
  • Fix preprocessors that broke on missing values in Arrow-backed pandas batches (#65272)
  • Preserve nested TorchInference outputs on device-to-host transfer (#65997)
  • Reject unknown LeRobot delta_timestamps keys and a zero height or width in read_images (#65857, #65967)

📖 Documentation

  • Document disk-based shuffle in the Ray Data internals guide (#66488)
  • Fix the write_webdataset docs and encoder typing, and a broken PyArrow link in write_parquet (#65278, #66154)
  • Add community connectors for Apache Doris and Kinetica (#65844)
  • Convert the Ray Data docs to MyST Markdown with a style and grammar pass (#66352, #66375, #66381, #66412, #66413)

Ray Serve

🎉 New Features

  • Columnar autoscaling metrics. Routers now send handle metric reports as flat numeric arrays instead of pickled Python objects by default, and the controller merges them in one vectorized pass, cutting controller loop cost by 2.8x–13.5x at 64–4,096 replicas per handle; set RAY_SERVE_COLUMNAR_AUTOSCALING_METRICS=0 to revert (#64281, #66104, #66105, #66070, #66240). The controller health schema also reports how much of each control loop goes to ingesting metrics (#66106).
  • Surge rolling updates. The new max_surge_percent deployment option starts new replicas before stopping old ones, keeping capacity at the target during a rolling update; the default of 0 keeps the existing stop-then-start behavior (#66267).
  • Node compaction for pack scheduling. With RAY_SERVE_USE_PACK_SCHEDULING_STRATEGY=1, once all deployments are stable the controller migrates replicas off a partially used node so the autoscaler can release it, starting replacements before stopping the originals so capacity never dips; tune it with RAY_SERVE_NODE_COMPACTION_DELAY_S and related settings (#66108).
  • gRPC server reflection. Tools such as grpcurl, grpcui, and Postman can now discover and call Serve gRPC services through the gRPC proxy without local proto files; reflection is on by default and can be disabled with gRPCOptions(enable_reflection=False) or --grpc-disable-reflection (#65854).
  • Model multiplexing for direct ingress and RoundRobinRouter. Direct-ingress deployments accept multiplexed model IDs over both HTTP and gRPC (#65678), and RoundRobinRouter prefers replicas that already host the requested model (#65679).
  • Custom autoscaling policies reach beta. The feature graduates from experimental (#66058), and a new alpha PrometheusQueryMixin lets policies scale on Prometheus metrics by keeping PromQL query results fresh in a background thread, so reads never block on network calls (#65884).

💫 Enhancements

  • Sync methods run in a thread pool by default. Blocking synchronous I/O in sync deployment methods no longer stalls the replica's event loop; deployments whose shared state isn't thread-safe can restore the old behavior with RAY_SERVE_RUN_SYNC_IN_THREADPOOL=0 (#66436).
  • Non-blocking _to_object_ref(). DeploymentResponse._to_object_ref() now returns as soon as the request is assigned to a replica instead of waiting for the replica's result (#65243).
  • Safer failed rolling updates. When a rolling update fails, surviving old replicas keep serving traffic (#66252), and the update stops at the startup-failure threshold and stays DEPLOY_FAILED (including across controller restarts) instead of replacing every healthy old replica; opt out with RAY_SERVE_STOP_FAILED_ROLLING_UPDATES=0 (#66290).
  • Production HAProxy defaults. Connection attempts are now bounded at 5s and live traffic marks dead replicas down without waiting for a health check, so retries reach a healthy replica sooner ([#65729](https://github.com/ray-pro...
Read more

Ray-2.59.1

Choose a tag to compare

@elliot-barn elliot-barn released this 04 Nov 08:13
7bdaad7

Security fixes

eMudhra intermediate CA compromise

The eMudhra intermediate CA keys were reported compromised on October 20, 2026. pip trusts its own vendored certifi bundle in addition to the system store, so updating OS ca-certificates alone doesn't protect pip. This release moves every place Ray installs or bundles a CA bundle to the fixed releases:

  • Docker images: pip 26.2.2 on every Python version, conda and site-packages certifi 2026.10.19, uv 0.13.4 (#67295, #67350, pick #67487).
  • virtualenv 21.14.12, which bundles pip 26.2.2 for runtime_env virtualenvs. This also moves packaging to 26.3, typing-extensions to 4.16.0, distlib to 0.4.3 and python-discovery to 1.6.1 (#67301, pick #67487).
  • certifi>=2026.10.19 floor in Ray's security requirements (#67305, pick #67487).
  • pip 26.2.2 and uv 0.13.4 in the Windows and macOS wheel builds (#67298, pick #67487). The shipped wheels don't vendor a CA bundle and are unaffected.

aiohttp

Bug fixes

Ray Data

  • Keep the pandas metadata on Arrow blocks readable by pandas. Dtype names that pandas can't parse are now written as `object`, so converting those blocks or files back to pandas no longer fails (#67576, pick #67649).

Ray Serve

  • Ingress request router deployments no longer keep proxies on the nodes they run on. Those nodes can now scale down normally (#65824, pick #67633).

Contributors

Thanks to everyone who contributed to this release!

@sai-miduthuri, @elliot-barn, @ramannanda9, @marwan116

Ray-2.58.1

Choose a tag to compare

@elliot-barn elliot-barn released this 21 Oct 00:57
4c7892e

Fixes

Ray Data

  • Fix out-of-scope block callbacks being registered on blocks passed through from input to output (#66369, cherry-pick #66404). Fixes spurious callback errors on passthrough datasets.

Images

  • google-cloud-cli is now installed in the base-extra images (#65757, pick #66611).

Contributors

Thanks to everyone who contributed to this release!
@marwan116, @jeffreywang88, @dstrodtman, @owenowenisme, @elliot-barn

Ray-2.57.1

Choose a tag to compare

@elliot-barn elliot-barn released this 21 Oct 00:57
a31dca1

Fixes

Ray Data

  • Fix out-of-scope block callbacks being registered on blocks passed through from input to output (#66369, cherry-pick #66403). Fixes spurious callback errors on passthrough datasets.

Images

  • google-cloud-cli is now installed in the base-extra images (#65757, pick #66610).

Contributors

Thanks to everyone who contributed to this release!
@marwan116, @jeffreywang88, @elliot-barn

Ray-2.59.0

Choose a tag to compare

@elliot-barn elliot-barn released this 02 Oct 07:04
dd83c3a

Highlights

  • Ray Data LLM & Ray Serve LLM are GA/Stable: the LLM APIs graduate to general availability this release (#65194), alongside an upgrade to vLLM 0.27.0 (#65351).
  • Ray Data external shuffle (shuffle_v2): the new shuffle backend gains an external, disk-backed mode — a new external shuffle runtime library and task/operator set (#64828, #65144), planner integration (#65499), and Join & Aggregation support on external shuffle (#65897). The strategy was renamed from hash_shuffle_v2 to shuffle_v2 (#65411) and the compression setting from hash_shuffle_compression to shuffle_compression (#65590).
  • Token authentication: Ray now turns on token authentication by default for local clusters. ray.init() without an address enables authentication and generates a token at ~/.ray/auth_token when none exists. ray start --head enables authentication when a token is already available, and otherwise warns that it started an unauthenticated cluster. Remote and multi-node clusters are unchanged in this release. Set RAY_AUTH_MODE=disabled to opt out (#64755).
  • Security hardening: the dashboard redacts runtime_env values (which routinely carry credentials) in browser-facing endpoints (#65226), and read_hudi gained an unpickling guard preventing remote code execution (#65780).
  • Ray Core at scale: removed the GCS resource-view reset that caused placement-group retry storms on large clusters (#65271), hardened the worker-lease protocol (at most one CancelWorkerLease per pending lease, lease-id tombstones — #65613, #65420), and batched local object frees (#65000, #64037).
  • New Data sources: native ORC file reading (#64600), multi-path read_lance (#64560), and fps/resize parameters for read_videos (#64120).

Ray Data

🎉 New Features

  • Add support for reading ORC files (#64600)
  • Introduce external disk shuffle: runtime library, tasks and operators, planner integration, and Join & Aggregations on external shuffle (#64828, #65144, #65499, #65897)
  • Support reading multiple paths in read_lance (#64560)
  • Add fps and resize parameters to read_videos() (#64120)
  • Add max_concurrent_calls_per_actor to ActorPoolStrategy (#65534)
  • Introduce reporting for task USS distribution metrics (#65666)

💫 Enhancements

  • Iceberg: deduplicate read-task state, better decoded-size estimation, and bounded read-task memory (#64811, #65042, #64813)
  • Count materialized data as downstream capacity, and return external consumer bytes for downstream-capacity backpressure (#66226, #65474)
  • Disable throttling for Union and Mix operators (#65242)
  • Pin the fused map function for shuffle tasks (#65480)
  • Chunk DataFrame emission in WebDatasetDatasource._read_stream and detect non-contiguous keys in read_webdataset (#65394, #63407)
  • Expose read-task resource args in read_webdataset (#65623)
  • Auto-detect AzureFileSystem for Blob HTTPS URLs in download() (#63648)
  • Groundwork for footer-based Parquet reads: footer types and online bin packer, FooterReader actor pool, and ListFiles pushdown state derived from the ReadFiles scanner (#65210, #65273, #65214)
  • Groundwork for Data fault tolerance (1/n): add a linear application-layer lineage tracker (#65519)

🔨 Fixes

  • Add an unpickling guard to prevent RCE when reading Hudi (#65780)
  • Fix Iceberg Dataset.count() returning wrong row counts (#65175)
  • Fix LeRobot delta windows for multidimensional features (#65165)
  • OpTask._cancel never passed force=True (#65389)
  • Fix an incorrect timeout value in the autoscaler shutdown warning (#65317)
  • Correct the physical-to-logical operator mapping type (#61790)
  • Don't register out-of-scope callbacks on blocks passed through from input to output (#66369)
  • Fix crash in preprocessors due to stale metadata in Arrow-backed Pandas dataframes (#66578)

📖 Documentation

  • Style and accuracy passes on the shuffle, join/save, and OOM-prevention pages (#65374, #65372, #65525, #65509)
  • Clarify num_workers in the PyTorch docs and iter_torch_batches collate_fn usage (#65311, #64535)
  • Deprecations: ray_remote_args for read APIs (#65501) and for Dataset transformations (#65228); min_rows_per_file with partitioned Parquet writes (#63368)
  • Rename the shuffle strategy from hash_shuffle_v2 to shuffle_v2 (#65411) and hash_shuffle_compression to shuffle_compression (#65590)

Ray Serve

🎉 New Features:

  • Configurable backpressure responses. A new per-deployment BackpressureConfig lets you return 429 instead of 503 when a request is rejected for exceeding max_queued_requests, and optionally attach a Retry-After header. This separates deliberate load shedding from "the deployment is broken" for load balancers, retry policies, and availability SLOs, and brings the HTTP path to parity with gRPC's RESOURCE_EXHAUSTED. Defaults are unchanged (#65193).
  • Declarative tracing configuration. A new TracingConfig model (enabled, exporter_import_path, sampling_ratio) can be passed to serve.start(tracing_config=...) or set in a Serve config file, replacing environment-variable-only setup and wiring tracing through the proxy and replica paths. Setup errors now fail fast instead of being silently swallowed (#63273).
  • Scale-to-zero for gang-scheduled deployments. Gang-scheduled deployments can now set min_replicas=0; the autoscaler preserves the final 1 → 0 transition instead of rounding it back up to a full gang (#65575).

💫 Enhancements:

  • Faster unary gRPC on direct ingress. Unary calls now take a dedicated fast path instead of being funneled through an async generator, recovering most of the throughput lost when the handlers were unified (~4684 vs. 4601 avg RPS in the release benchmark) (#65398).
  • Application builds respect node label selectors. The build task now inherits a label selector derived from deployment actor options when all deployments agree on one, so the application import runs on a node pool with the right image instead of landing on an incompatible head node (#65180).
  • Layer-4 mark-down for HAProxy servers, behind an environment-variable gate, so draining backends are observed at the connection level (#65267).
  • Token authentication is on by default for local clusters, and Serve's client and API calls propagate the token end to end (#64755, #66248).
  • Lighter imports. jinja2 is now imported lazily and declared in the serve extra, so it is no longer pulled in on every Serve import (#65542, #65988).
  • Deprecated APIs removed. deploy_mode / ServeDeployMode, use_new_handle_api on DeploymentHandle.options, and the RAY_AGENT_ADDRESS deprecation path are gone, and a # in a deployment name is now a hard ValueError since it is the replica ID delimiter (#65215).
  • Explicit public surface for request routers. ray.serve.request_router now declares __all__, making the custom-router extension API visible to the API consistency checks (#65485).

🔨 Fixes:

  • Controller no longer crashes during RayService incremental upgrades. Shutting down a proxy pinned to a node that no longer exists raised an uncaught ActorUnschedulableError and killed the controller loop; the handle is now cleaned up gracefully. This showed up with GCS fault tolerance backed by Redis, where the new cluster restores proxy actors pinned to pre-upgrade node IDs (#65076).
  • Global tracing config no longer leaks between tests. A config test left tracing enabled at sampling ratio 1.0 for every subsequent test in the session (#65432).
  • Controller benchmark stability at scale. The sweep now extends to 8K replicas with a flat peak-CPU budget and a larger head node, and reserves per-replica memory to stop OOM kills at the 8K checkpoint (#65371, #65847, #65987).
  • Test suite deflaking across the CLI, GCS failure, cluster, proxy, gRPC, cancellation, and crashed-replica tests, mostly by replacing fixed request counts and inherited 10s timeouts with explicit deadlines (#65464, #65488, #65537, #65560, #65617, #65619, #65624).

📖 Documentation:

  • Documented the # restriction on deployment names and why it exists, so the new ValueError has something to point at (#65489).
  • Added a KV-aware routing guide covering installation, configuration, scoring, and tuning, and extended the KV cache offloading guide with the native vLLM backend and new Grafana panels ([#65569](https://github.com/ray...
Read more

Ray-2.58.0

Choose a tag to compare

@sai-miduthuri sai-miduthuri released this 23 Aug 05:42
01b49e4

Highlights

  • Ray Serve LLM: In this release we've completed KV cache and token aware request routing, which was previewed in 2.57. Tokenization now happens in-process on the LLMRouter ingress replica, the routing decision is made there, tokens are transmitted out-of-band so the engine does not re-tokenize, KV lifecycle events are broadcast to every ingress replica (#64642, #64920, #64949, #65010, #65095). KV cache and token aware routing is also aware of CPU KV caches, so offloaded KV cache blocks count toward a replica's cache hit (#65063).
  • Ray Core: We enabled the capability to offload task events from. With RAY_enable_task_events_to_dashboard_head on, the task event buffer is replaced by the ray event recorder, events are exported from the aggregator agent to a task events head that keeps an in-memory store, and the state APIs and ray.timeline read from it (#64835, #65028, #65123, #65160, #65218). Enabling the feature removes task event ingestion and serving from the GCS hot path.
  • Ray Data: We’ve added Databricks integrations for writing to DeltaLake, with Catalog support. We’ve also shipped a new shuffle v2 backend, featuring improved performance for joins and aggregations.
  • Sandboxing: We've also added experimental Ray Sandbox, which runs task and actor code under gVisor and can run Docker-built images directly (#64964, #65570).
  • TPU Support: Ray Train adds support for TorchTPU backend (#64796), and Ray Core adds SubslicePlacementGroup for gang scheduling on TPU subslices, single-host TPU support in SlicePlacementGroup, and resource accounting for tpu7x and multi-core chips (#64578, #64079, #64058). This lets TPU slices and subslices be reserved and trained on without external gang-scheduling glue.

Ray Data

🎉 New Features

  • Add Dataset.with_columns for multi-column expression projection (#63858)
  • Add write_delta for Delta Lake, with catalog support (#64923, #65079)
  • Add Torch inference API (#65157)
  • Promote hash shuffle v2 to a selectable shuffle strategy, with aggregation support, vectorized aggregation, and block splitting during aggregation (#64953, #64652, #64956, #65329, #64897)
  • Add ignore_missing_paths and skip_paths to read_parquet on DatasourceV2 (#65118)
  • Add delta_timestamps (temporal windows) to read_lerobot (#64877)
  • Collect cluster usage metrics by sampling in background threads during execution (#64686)
  • Tolerate actor deaths during init via DataContext.max_consecutive_actor_init_deaths (#64846)
  • Expose RAY_DATA_HASH_SHUFFLE_MAP_TASK_TARGET_INPUT_BYTES in DataContext (#65103)

💫 Enhancements

  • Generate sortable, collision-resistant dataset IDs (#65075)
  • Push Limit into ReadFiles when it sits directly on it, and extract FileIndexer.list_file_infos (#65167, #65168)
  • Use BlockRefCounter for object store memory estimation and remove BlockRefCounter.clear() (#64456, #64521)
  • Fail execution if no operator makes progress within a timeout, instead of hanging (#65349)
  • Improve BatchIterator and iter_torch_batches, and allow a custom collate_fn with a custom device (#64994, #64967)
  • Skip downstream-capacity backpressure for eligible materializers (#64844)
  • Shard exact download partitioning (#64066)
  • Bump the sort_reduce memory multiplier to 3x and stop using estimated_input_blocks as the shuffle partition count (#65176, #65296, #65335)
  • Disable cluster autoscaling when PlacementGroupSchedulingStrategy is in use (#64417)
  • Propagate the operator name to shuffle tasks (#64802)
  • Rename reports_custom_op_stats to should_report_custom_op_stats across all MapTransformFn variants (#64461, #64515)
  • Rename allocated to reserved and add type aliases in the autoscaling coordinator (#64997, #65096)
  • Deprecate ray_remote_args_fn and Dataset.zip (#64963, #65111)

🔨 Fixes

  • Fix an RCE where read_lance or nested pickle objects could execute arbitrary code (#64881)
  • Stop converting Arrow null columns to null[pyarrow] in to_pandas (#65187)
  • Fix iter_torch_batches device resolution and typing (#65059, #64947)
  • Propagate isolate_read_workers to DatasourceV2 (#65191)
  • Avoid signalling epoch end for failed attempts (#65082)
  • Add tf-keras to the text_embedding pip packages (#64889)

📖 Documentation

  • Fix the stale use_datasource_v2 docstring default and an incorrect default_map_logical_memory_enabled reference (#65155, #65091)

Ray Serve

🎉 New Features

  • Configurable status code and Retry-After header for backpressure rejections (#65193, #65319)
  • Add dependency-ordered shutdown for deployments (#64922)
  • Add an optional tie-break key to best-fit node scheduling (#64914)
  • Scale ingress request router replicas per proxy node (#64724)

💫 Enhancements

  • Reconcile health checks from a dirty set, sweeping RUNNING replicas round-robin instead of every tick (#64690)
  • Gate the rank-consistency check on replica membership changes (#64911)
  • Read the multiplex marker statically so probing cannot initialize handles (#65064)
  • Type CreatePlacementGroupRequest.runtime_env as a dict (#64892)
  • Add a deployment-state accessor for testing (#64790)

🔨 Fixes

  • Fix the Serve replica ASGIService bypassing token authentication (#65189)
  • Fix the proxy update loop getting stuck when a proxy's node is removed (#64403)

Ray Train

🎉 New Features

  • Ray Train Integrates with TorchTPU backend (#64796)
  • Add a public preemption API and a controller PreemptingState (#64360)
  • Add data ingest metrics to the Train dashboard (#64523)

💫 Enhancements

  • Make Train V1 and V2 use the autoscaling coordinator (#64824)
  • Expand the contains_tensor check and add a serialization check for the results return value (#64930)
  • Pin PlacementGroupCleaner to the head node (#64705)

🔨 Fixes

  • Fix Torch environment setup for V1 worker groups (#65005)

Ray Tune

🔨 Fixes

  • Fix HyperOptSearch dropping tune.choice categories that are constant dicts (#64537)
  • Deflake test_multi_trial_reuse_with_failing and decide test_experiment_restore completion from measured progress (#64526, #65212)

Ray LLM

🎉 New Features

  • KV-cache-aware routing: move tokenization into the LLMRouter ingress replica, decide KV/token routing there, broadcast KV lifecycle events to all ingress replicas, and make selection and reservation atomic (#64642, #64920, #64949, #65010)
  • Enable KV cache offloading, make KV routing aware of CPU KV caches, and transmit tokens out-of-band so the engine skips tokenization (#65063, #65095)
  • Add a KV cache offload/reload dashboard and a Ray Serve LLM SGLang metrics dashboard (#65122, #64797)

💫 Enhancements

  • Upgrade to vLLM 0.26.0 (#65045)
  • Route direct-streaming ingress to the co-located router (#64489)
  • Reuse vLLM's resolved HF config in apply_checkpoint_info (#62962)
  • Preserve mapping-valued vLLM frontend arguments (#65146)

📖 Documentation

  • Document loading models from Azure storage, including az:// Blob streaming with RunAI Streamer (#64819, #64825)

Ray RLlib

🔨 Fixes

  • Fix TQC critic divergence by stopping actor-loss gradients from leaking into the critics (#65125)
  • Fix squashed-Gaussian log-prob corruption for saturated policies (#65036)
  • Use the target_qf_twin head in IQL target prediction (#64932)
  • Properly enforce use_kl_loss in the PPO Torch and TF policies (#61562)
  • Fix a KeyError in the multi-agent module-to-env connector (#64803)
  • Fix the API-doc consistency check for the new reverse/dedup policies, and deflake the test_env_runner callback-count tests (#64807, #64989)

Ray Core

🎉 New Features

  • Ray Sandbox (experimental): run task and actor code under gVisor, and run Docker-built images out of the box (#64964, #65397, #65570, #65622)
  • Move task events out of the GCS: the ray event recorder replaces the task event buffer, the aggregator agent exports to a task events head with an in-memory store, and the state APIs and ray.timeline are rerouted to it, with reconciliation on worker death and job completion (#64835, #65028, #65057, #65123, #65141, #65160, #65218, #65247, #65288)
  • Add SubslicePlacementGroup for gang scheduling on TPU subslices, support single-host TPUs in SlicePlacementGroup, and add a per_slice_pgs parameter (#64578, #64079, #64072)
  • Introduce a native, lightweight C++ leader election client for active-passive GCS (#63773)
  • Add Apple silicon GPU (mps) support and an Intel GPU ZE_AFFINITY_MASK mapping (#38464, #64440)
  • Add worker lifecycle events to the events export pipeline (#64887)
  • Add GPU UUID to the labels of GPU metrics (#65113)
  • Enable resource accounting for tpu7x and multi-core chips, add gb200/gb300 accelerator constants, and add TTNPU custom accelerator resources (#64058, #65009, #61554)
  • Support cross-device transfers in RDT NIXL (#64815)

💫 Enhancements

  • Publish node death before persisting it and drop RocksDB soft durability (REP-64) (#64702)
  • Make RedisContext::Connect non-fatal on connection failure (#64299)
  • Move the pending resource load pull off the GCS main io_context (#65024)
  • Subscribe only to the specific owner worker's death for generator backpressure, and only when actor-level backpressure is enabled (#65195, #65136)
  • Evict dead actors from ActorPool instead of recycling them (#64646)
  • Rename label_domain to topology strategy in the scheduling policy (#64384)
  • Warn on use of the deprecated dynamic generator (#64749)
  • Add object resolution debug logging for lineage r...
Read more

Ray-2.57.0

Choose a tag to compare

@sai-miduthuri sai-miduthuri released this 11 Aug 01:15
878455a

Highlights

  • Ray Data: In this Ray release, we've enabled DataSourceV2 by default (#64821), so read_parquet and friends use the new scan/listing infrastructure with row-group-aware chunking and predicate splitting. Hash Shuffle V2 eliminates the aggregator actor pool. V1 had to provision that pool up front from an estimate of the input size, and its actors accumulated partition shards in actor heap memory, invisible to Ray and unspillable, until finalization. V2 replaces it with two stateless task-based operators, ShuffleMapOp --> ShuffleReduceOp, that pass shards through the object store, so intermediate state spills under pressure and no capacity has to be reserved in advance. The map/reduce barrier itself remains in both designs.
  • HashShuffleV2 supports join (#63598, #64538, #64687). This lets shuffles reuse standard map/reduce scheduling, backpressure, and resource accounting.
  • Ray Serve: The HAProxy ingress is now distributed as the ray-haproxy PyPI package instead of being compiled into images, and it is the default HAProxy binary (#64141, #64163, #64164). We've also added gRPC support to the HAProxy direct-ingress path, including streaming, metrics, and custom request IDs (#63735, #64310, #64166, #64112). For Ray Serve LLM, we've added experimental KV-cache-aware request routing that tracks replica KV state through an event plane, tokenizes before routing, and routes on prefill/decode token load (#64084, #64085, #64097, #64224, #64327, #64400). KV cache-aware routing’s complete support will land in 2.58.
  • Ray Core: We've added an embedded RocksDB storage backend for GCS fault tolerance (REP-64), selectable with RAY_gcs_storage=rocksdb and RAY_gcs_storage_path (#63657). GCS fault tolerance no longer requires an external Redis instance. We've also added a public API for topology-aware scheduling (#63479, #63740).

Ray Data

🎉 New Features

  • Enable DataSourceV2 by default via DataContext.use_datasource_v2 (#64821)
  • New task-based hash shuffle v2 (ShuffleMapOp → ShuffleReduceOp) with join, multi-input reduce, downstream map fusion, and reducer remote args, behind an env flag (#63598, #64538, #64687, #64438, #64302, #64532, #64481)
  • Add a Catalog abstraction with a UnityCatalog implementation that can be passed to read_*, and Unity Catalog write support for Parquet and Iceberg (#64193, #64519)
  • Add read_zarr for Zarr datasets (#63003) and read_lerobot for LeRobot v3 datasets (#63821)
  • Add PushdownCountFiles optimization to answer count() from Parquet footers (#64763)
  • Add common subexpression elimination to the expression optimizer (#63974)
  • Add GPU support for Aggregate (#63708)
  • Make dataset iteration metrics queryable per split (#64608)
  • Add custom operator stats to capture worker-side metrics during task execution (#64221)
  • Refactor usage collection into an extensible UsageCallback (#64500)
  • Export from_blocks from ray.data (#64127)
  • Add support for rapidsmpf-26.4.0 (#64324)

💫 Enhancements

  • Hide Ray Data internal frames from user-code error tracebacks (#64587)
  • Run projection/predicate pushdown before limit pushdown, block optimization of non-deterministic expressions, and make fuse checks consistent between the logical and physical optimizers (#64651, #64165, #63936)
  • Add a two-mode block metadata fetch behind a single MetadataFetcher interface (#64378)
  • Use work stealing for file listing and a dynamic work queue for traversals (#64675, #64388)
  • Speed up ExecutionResources and the reservation/budget loops on the scheduling hot path (#63964)
  • Fix O(n^2) schema reconciliation in unify_schemas and avoid per-column Series materialization in tensor-column casting (#64555, #64038)
  • Decouple collate and memory pinning in iter_torch_batches, add per-stage training-thread blocking attribution, bound in-flight iter_threaded items, and finalize after reordering under preserve_order (#64653, #64183, #64219, #64282)
  • Add default logical memory for map operators, wire the materializing-op filter into OpResourceAllocator budgeting, and move estimate_object_store_usage into the physical op (#63814, #63665, #63961)
  • Decrease the downstream backpressure ratio to 2.0 (#64352)
  • Route native S3FileSystem downloads to the PyArrow threaded path (#64089)
  • Size hash-shuffle aggregators via bounded online sampling and add a timeout to the batched ray.get when fetching partitions (#63929, #64256)
  • Replace manual block reference accounting with Ray Core out-of-scope object callbacks (#64011, #64157, #64191)
  • Default read_numpy to allow_pickle=False and make it manually configurable (#64684)
  • Make write_lance(mode=CREATE) error instead of silently overwriting (#64364)
  • Expand DistributionTracker with merge() and p25/p75, and add dead node counts and detected issues to usage collection (#64074, #64459, #64198)
  • Remove cluster autoscaler v1, rename the subcluster label key to ray-subcluster, avoid scaling nodegroups dedicated to the head node, and quiet autoscaling coordinator logs (#64380, #64003, #63918, #63534)
  • Delay the "cluster resources not enough" warning until an operator is persistently starved, and lower the high-memory warning threshold (#63969, #64124)
  • Remove ExecutionPlan, _num_outputs, batch_format on AllToAllOperators, and InheritBatchFormatRule; use input_dependencies in logical operators (#63662, #64167, #64152, #64149, #64148)
  • Deprecate low-level scheduling APIs (DataContext.scheduling_strategy, actor_locality_enabled, exclude_resources, local://) ahead of the actor-only rearchitecture (#64632)
  • Migrate the Daft dependency from getdaft to daft (#64240)
  • Migrate apply_chat_template/tokenize/detokenize callers to *_stage form, and remove PrepareImageStage while deprecating the image row column (#63590, #63570)

🔨 Fixes

  • Fix TensorDtype.__from_arrow__ crash on empty tensor columns (#64767)
  • Fix Arrow-backed to_pandas regressions with an opt-out flag and int/float block overflow handling (#64768)
  • Fix read-only hash array crash in hash partition (#64552, #64559)
  • Fix streaming-generator hang on a plasma-resident return object (#64386)
  • Fix Parquet write overflow for string/binary columns larger than 2 GiB (#64212)
  • Fix Parquet sampling hang on a permanent OSError (#64342)
  • Fix the BigQuery datasink to handle empty blocks (#60797)
  • Make PandasBlock.size_bytes deterministic (#64393)
  • Propagate branch in _append_and_commit() for the Iceberg overwrite save mode (#63922)
  • Propagate isolate_read_workers to DatasourceV2 (#65191, #65207)
  • Fix cross-region S3 bucket access in the obstore download path (#63890)
  • Restore safe_round in the ExecutionResources hot path (#64296)
  • Log both the wrapped and wrapper exception in iterate_with_retry (#64639)
  • Add tf-keras to the text_embedding pip packages (#64889, #64968)
  • Fix build_processor failing with vLLM >= 0.19, correct its config type hint, and add request_timeout_s to ServeDeploymentProcessor to prevent indefinite hangs (#64337, #64098, #64496)
  • Fix type hints in throughput_solver.py (#64289)

📖 Documentation

  • Add a guide on avoiding out-of-memory errors and improve the existing OOM docs (#64046, #64297)
  • Document the best practice for isolating Ray Data workers from training nodes (#64588)
  • Document running two datasets in one cluster (#64200)
  • Move the read_zarr guide back into its docstring (#64409)
  • Remove Ray Data and DAG docstring ignores from pydoclint (#63634)

Ray Serve

🎉 New Features

  • Distribute HAProxy through the ray-haproxy PyPI package, make it the default binary, and remove the from-source build (#64141, #64163, #64164)
  • Add gRPC support to the HAProxy direct ingress, including streaming, unary-unary metrics, and custom request IDs (#63735, #64310, #64166, #64112)
  • Emit request and system metrics from HAProxy (#64329, #64255)
  • Support root_path in the HAProxy ingress (#64295)
  • Add a per-replica metadata hook exposed on ReplicaSelection (#63948)

💫 Enhancements

  • HAProxy stability: graceful drain waits for in-flight and queued requests, replicas quiesce before reporting shutdown complete, dispatches cancelled by replica gRPC stop are retried, reload takeover is verified by pid, and close-spread-time is set in the template (#63886, #63920, #63995, #64022, #64063, #63996)
  • Make direct-ingress port reconcile incremental and skip it entirely when ingress membership is unchanged (#64508, #64676)
  • Controller performance: O(1) version-filtered replica counts, in-place health-check reconcile in the deployment-state loop, and a fast-path orphaned-actor check (#64699, #64507, #64511)
  • Freeze GC after replica initialization by default (#64742)
  • Eager-load proxy imports (#64113)
  • Pin the replica actor to bundle 0 of its placement group and track actor fallback_strategy on DeploymentSchedulingInfo (#62693, #64346)
  • Deprecate HTTPOptions.location in favor of proxy_location, raise on non-zero HTTPOptions.num_cpus, and warn on other deprecated HTTP options (#64479, #64418, #63604)
  • Raise a clear error when a custom request router or serve.multiplexed is used on an ingress deployment under direct ingress (#64211, #64045)
  • Recover ingress request router pin-misses via the fallback proxy instead of returning 503 (#64218)
  • Add RAY_SERVE_CONTROLLER_METRICS_INCLUDE_HIGH_CARDINALITY_TAGS to control controller metric tags (#63642)
  • Default RAY_SERVE_PORT_QUARANTINE_S to hard-stop-after plus a margin (#64021)
  • Defer the "application ready" log until proxies are ready (#64010)
  • Dedup ingress replica and proxy metrics code, and migrate parse_uri from `_priv...
Read more