You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.
When using Ray, you can pass objects as arguments to remote functions. Ray will automatically store these objects in the local object store (on the worker node where the function is running) using the ray.put() function. This makes the objects available to all local tasks. However, if the objects are large, this can be inefficient as the objects will need to be copied every time they are passed to a remote function.
To improve performance, you can explicitly store both the model and feature extractor in the object store by using ray.put(). This avoids the need to create multiple copies of the objects.
I am confused on the words on : ray.put()
"However, if the objects are large, this can be inefficient as the objects will need to be copied every time they are passed to a remote function "
"To improve performance, you can explicitly store both the model and feature extractor in the object store by using ray.put(). This avoids the need to create multiple copies of the objects."
which sentence should I follow ?
The text was updated successfully, but these errors were encountered:
If you call a remote function - that uses large object - multiple times it's best practice to store these objects in the object store. Then use reference in the function call. Have a look at the Ray core best practices: Anti-pattern: Passing the same large argument by value repeatedly harms performance - section at the bottom.
When using Ray, you can pass objects as arguments to remote functions. Ray will automatically store these objects in the local object store (on the worker node where the function is running) using the ray.put() function. This makes the objects available to all local tasks. However, if the objects are large, this can be inefficient as the objects will need to be copied every time they are passed to a remote function.
To improve performance, you can explicitly store both the model and feature extractor in the object store by using ray.put(). This avoids the need to create multiple copies of the objects.
I am confused on the words on : ray.put()
which sentence should I follow ?
The text was updated successfully, but these errors were encountered: