mirror of
https://github.com/vale981/ray
synced 2025-03-08 19:41:38 -05:00
![]() When this line tries to format the task into the string, it also attempts to format all of the serialized arguments passed to the task, which can be memory intensive, even if the debug log never gets displayed. Switch to only logging the task name, type and payload_id. Repro script if you want to see how big a difference commenting out the debug log makes (takes up about 8GiB swap on my machine): ``` import ray import numpy as np import logging ray.init("ray://localhost:10001") @ray.remote def run_ray_remote(np_array): return np_array.shape a = np.random.random((1024, 1024, 128)) # approx 1GiB b = run_ray_remote.remote(a) c = ray.get(b) print(c) ``` |
||
---|---|---|
.. | ||
ray | ||
requirements | ||
asv.conf.json | ||
build-wheel-macos-arm64.sh | ||
build-wheel-macos.sh | ||
build-wheel-manylinux2014.sh | ||
build-wheel-windows.sh | ||
MANIFEST.in | ||
README-building-wheels.md | ||
requirements.txt | ||
requirements_linters.txt | ||
requirements_ml_docker.txt | ||
setup.py |