runtime error

cted if you are initializing BertModel from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model). Traceback (most recent call last): File "app.py", line 36, in <module> model2 = torch.load("model_BERT_2", map_location=torch.device('cpu')) File "/home/user/.local/lib/python3.8/site-packages/torch/serialization.py", line 815, in load return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args) File "/home/user/.local/lib/python3.8/site-packages/torch/serialization.py", line 1033, in _legacy_load magic_number = pickle_module.load(f, **pickle_load_args) File "/home/user/.local/lib/python3.8/site-packages/torch/storage.py", line 241, in _load_from_bytes return torch.load(io.BytesIO(b)) File "/home/user/.local/lib/python3.8/site-packages/torch/serialization.py", line 815, in load return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args) File "/home/user/.local/lib/python3.8/site-packages/torch/serialization.py", line 1043, in _legacy_load result = unpickler.load() File "/home/user/.local/lib/python3.8/site-packages/torch/serialization.py", line 980, in persistent_load wrap_storage=restore_location(obj, location), File "/home/user/.local/lib/python3.8/site-packages/torch/serialization.py", line 217, in default_restore_location result = fn(storage, location) File "/home/user/.local/lib/python3.8/site-packages/torch/serialization.py", line 182, in _cuda_deserialize device = validate_cuda_device(location) File "/home/user/.local/lib/python3.8/site-packages/torch/serialization.py", line 166, in validate_cuda_device raise RuntimeError('Attempting to deserialize object on a CUDA ' 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...