How severe does this issue affect your experience of using Ray?
- High: It blocks me to complete my task.
I recently upgraded my ray version to 2.7.0. Thereafter, when I try to start ray using ray.init()
function, it throws this error :
Traceback (most recent call last):
File “”, line 1, in
File “/home/mritunjay/miniconda3/lib/python3.8/site-packages/ray/_private/client_mode_hook.py”, line 103, in wrapper
return func(*args, **kwargs)
File “/home/mritunjay/miniconda3/lib/python3.8/site-packages/ray/_private/worker.py”, line 1536, in init
_global_node = ray._private.node.Node(
File “/home/mritunjay/miniconda3/lib/python3.8/site-packages/ray/_private/node.py”, line 310, in init
self.start_ray_processes()
File “/home/mritunjay/miniconda3/lib/python3.8/site-packages/ray/_private/node.py”, line 1452, in start_ray_processes
resource_spec = self.get_resource_spec()
File “/home/mritunjay/miniconda3/lib/python3.8/site-packages/ray/_private/node.py”, line 540, in get_resource_spec
self._resource_spec = ResourceSpec(
File “/home/mritunjay/miniconda3/lib/python3.8/site-packages/ray/_private/resource_spec.py”, line 204, in resolve
accelerator.update_resources_with_accelerator_type(resources)
File “/home/mritunjay/miniconda3/lib/python3.8/site-packages/ray/_private/accelerator.py”, line 39, in update_resources_with_accelerator_type
accelerator_type=_autodetect_tpu_version(),
File “/home/mritunjay/miniconda3/lib/python3.8/site-packages/ray/_private/accelerator.py”, line 214, in _autodetect_tpu_version
return accelerator_type_to_version(accelerator_type_request.text)
File “/home/mritunjay/miniconda3/lib/python3.8/site-packages/ray/_private/accelerator.py”, line 197, in accelerator_type_to_version
assert_tpu_accelerator_type(accelerator_type)
File “/home/mritunjay/miniconda3/lib/python3.8/site-packages/ray/_private/accelerator.py”, line 239, in assert_tpu_accelerator_type
raise ValueError(
ValueError: acceleratorType
should match v(generation)-(cores/chips). Got .
The machine I am using has 48 CPU cores and doesn’t have any GPUs/TPUs. Moreover, I get this error sometimes and sometimes not. How to resolve it?