runtime error
Exit code: 1. Reason: r/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 446, 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) generation_config.json: 0%| | 0.00/233 [00:00<?, ?B/s][A generation_config.json: 100%|██████████| 233/233 [00:00<00:00, 1.77MB/s] Traceback (most recent call last): File "/home/user/app/app.py", line 7, in <module> tokenizer = M2M100Tokenizer.from_pretrained(model_name) File "/usr/local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1112, in __getattribute__ requires_backends(cls, cls._backends) File "/usr/local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1100, in requires_backends raise ImportError("".join(failed)) ImportError: M2M100Tokenizer requires the SentencePiece library but it was not found in your environment. Checkout the instructions on the installation page of its repo: https://github.com/google/sentencepiece#installation and follow the ones that match your environment. Please note that you may need to restart your runtime after installation.
Container logs:
Fetching error logs...