Traceback (most recent call last):
File “/opt/module/Python-3.9.10/distributed_compute_test.py”, line 46, in
id = test.remote()
File “/opt/module/Python-3.9.10/lib/python3.9/site-packages/ray/remote_function.py”, line 121, in _remote_proxy
return self._remote(args=args, kwargs=kwargs, **self._default_options)
File “/opt/module/Python-3.9.10/lib/python3.9/site-packages/ray/util/tracing/tracing_helper.py”, line 307, in _invocation_remote_span
return method(self, args, kwargs, *_args, **_kwargs)
File “/opt/module/Python-3.9.10/lib/python3.9/site-packages/ray/remote_function.py”, line 271, in _remote
worker.function_actor_manager.export(self)
File “/opt/module/Python-3.9.10/lib/python3.9/site-packages/ray/_private/function_manager.py”, line 202, in export
check_oversized_function(
File “/opt/module/Python-3.9.10/lib/python3.9/site-packages/ray/_private/utils.py”, line 729, in check_oversized_function
raise ValueError(error)
ValueError: The remote function main.test is too large (118 MiB > FUNCTION_SIZE_ERROR_THRESHOLD=95 MiB). Check that its definition is not implicitly capturing a large array or other object in scope. Tip: use ray.put() to put large objects in the Ray object store