runtime error
return model_class.from_pretrained( File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 2604, in from_pretrained state_dict = load_state_dict(resolved_archive_file) File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 463, in load_state_dict return torch.load(checkpoint_file, map_location="cpu") File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 809, in load return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args) File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 1172, in _load result = unpickler.load() File "/usr/local/lib/python3.10/site-packages/torch/_utils.py", line 169, in _rebuild_tensor_v2 tensor = _rebuild_tensor(storage, storage_offset, size, stride) File "/usr/local/lib/python3.10/site-packages/torch/_utils.py", line 147, in _rebuild_tensor t = torch.tensor([], dtype=storage.dtype, device=storage._untyped_storage.device) /usr/local/lib/python3.10/site-packages/torch/_utils.py:147: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at ../torch/csrc/utils/tensor_numpy.cpp:84.) t = torch.tensor([], dtype=storage.dtype, device=storage._untyped_storage.device) Traceback (most recent call last): File "/home/user/app/app.py", line 18, in <module> ner_pipeline(text) File "/usr/local/lib/python3.10/site-packages/transformers/pipelines/token_classification.py", line 249, in __call__ return super().__call__(inputs, **kwargs) File "/usr/local/lib/python3.10/site-packages/transformers/pipelines/base.py", line 1112, in __call__ return next( File "/usr/local/lib/python3.10/site-packages/transformers/pipelines/pt_utils.py", line 125, in __next__ processed = self.infer(item, **self.params) File "/usr/local/lib/python3.10/site-packages/transformers/pipelines/token_classification.py", line 303, in postprocess logits = model_outputs["logits"][0].numpy() RuntimeError: Numpy is not available
Container logs:
Fetching error logs...