runtime error
Exit code: 1. Reason: 18_Weights.DEFAULT` to get the most up-to-date weights. warnings.warn(msg) Downloading: "https://download.pytorch.org/models/resnet18-f37072fd.pth" to /root/.cache/torch/hub/checkpoints/resnet18-f37072fd.pth 0%| | 0.00/44.7M [00:00<?, ?B/s][A 100%|██████████| 44.7M/44.7M [00:00<00:00, 390MB/s] Traceback (most recent call last): File "/app/app.py", line 35, in <module> model.load_state_dict(torch.load(file_path)) ~~~~~~~~~~^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/torch/serialization.py", line 1601, in load return _load( opened_zipfile, ...<3 lines>... **pickle_load_args, ) File "/usr/local/lib/python3.13/site-packages/torch/serialization.py", line 2221, in _load result = unpickler.load() File "/usr/local/lib/python3.13/site-packages/torch/_weights_only_unpickler.py", line 541, in load self.append(self.persistent_load(pid)) ~~~~~~~~~~~~~~~~~~~~^^^^^ File "/usr/local/lib/python3.13/site-packages/torch/serialization.py", line 2185, in persistent_load typed_storage = load_tensor( dtype, nbytes, key, _maybe_decode_ascii(location) ) File "/usr/local/lib/python3.13/site-packages/torch/serialization.py", line 2147, in load_tensor wrap_storage = restore_location(storage, location) File "/usr/local/lib/python3.13/site-packages/torch/serialization.py", line 734, in default_restore_location result = fn(storage, location) File "/usr/local/lib/python3.13/site-packages/torch/serialization.py", line 667, in _deserialize device = _validate_device(location, backend_name) File "/usr/local/lib/python3.13/site-packages/torch/serialization.py", line 634, in _validate_device raise RuntimeError( ...<5 lines>... ) 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:
Fetching error logs...