ERROR - tasks - error_logger - apply_tagger_to_index - 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. - 2021-03-05 19:03:14,869
Traceback (most recent call last):
File "/builds/texta/texta-rest/toolkit/torchtagger/tasks.py", line 196, in apply_tagger_to_index
tagger = load_tagger(tagger_object)
File "/builds/texta/texta-rest/toolkit/torchtagger/tasks.py", line 100, in load_tagger
tagger.load_django(tagger_object)
File "/opt/conda/envs/texta-rest/lib/python3.7/site-packages/texta_torch_tagger/tagger.py", line 190, in load_django
return self.load(tagger_path)
File "/opt/conda/envs/texta-rest/lib/python3.7/site-packages/texta_torch_tagger/tagger.py", line 177, in load
loaded = dill.load(file)
File "/opt/conda/envs/texta-rest/lib/python3.7/site-packages/dill/_dill.py", line 278, in load
return Unpickler(file, ignore=ignore, **kwds).load()
File "/opt/conda/envs/texta-rest/lib/python3.7/site-packages/dill/_dill.py", line 481, in load
obj = StockUnpickler.load(self)
File "/opt/conda/envs/texta-rest/lib/python3.7/site-packages/torch/storage.py", line 136, in _load_from_bytes
return torch.load(io.BytesIO(b))
File "/opt/conda/envs/texta-rest/lib/python3.7/site-packages/torch/serialization.py", line 593, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/opt/conda/envs/texta-rest/lib/python3.7/site-packages/torch/serialization.py", line 773, in _legacy_load
result = unpickler.load()
File "/opt/conda/envs/texta-rest/lib/python3.7/site-packages/torch/serialization.py", line 729, in persistent_load
deserialized_objects[root_key] = restore_location(obj, location)
File "/opt/conda/envs/texta-rest/lib/python3.7/site-packages/torch/serialization.py", line 178, in default_restore_location
result = fn(storage, location)
File "/opt/conda/envs/texta-rest/lib/python3.7/site-packages/torch/serialization.py", line 154, in _cuda_deserialize
device = validate_cuda_device(location)
File "/opt/conda/envs/texta-rest/lib/python3.7/site-packages/torch/serialization.py", line 138, 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.