Runtime error

#2
by ParadoxQED - opened

I apologize for my presumptuous interruption, but I encountered some troubles. I don't know whether this is my problem.

runtime error
Exit code: 1. Reason: ech_codec.py", line 89, in init
self.flow.load_state_dict(torch.load(flow_ckpt_path, map_location=self.device), strict=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/torch/serialization.py", line 1521, in load
return _load(
^^^^^^
File "/usr/local/lib/python3.12/site-packages/torch/serialization.py", line 2119, in _load
result = unpickler.load()
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/torch/_weights_only_unpickler.py", line 532, in load
self.append(self.persistent_load(pid))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/torch/serialization.py", line 2083, in persistent_load
typed_storage = load_tensor(
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/torch/serialization.py", line 2049, in load_tensor
wrap_storage = restore_location(storage, location)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/torch/serialization.py", line 1864, in restore_location
return default_restore_location(storage, str(map_location))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/torch/serialization.py", line 698, in default_restore_location
result = fn(storage, location)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/torch/serialization.py", line 636, in _deserialize
device = _validate_device(location, backend_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/torch/serialization.py", line 605, in _validate_device
raise RuntimeError(
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.
Container logs:

Failed to retrieve error logs: SSE is not enabled

OpenMOSS (SII, FNLP) org

The issue is due to a Space configuration error and has now been resolved.

singularitys0 changed discussion status to closed

Sign up or log in to comment