runtime error
serWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:3483.) return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined] Downloading (…)f4c1a9c78b7a82d47e2d: 0%| | 0.00/1.30M [00:00<?, ?B/s] Downloading (…)f4c1a9c78b7a82d47e2d: 100%|██████████| 1.30M/1.30M [00:00<00:00, 198MB/s] Downloading (…)in/added_tokens.json: 0%| | 0.00/1.52k [00:00<?, ?B/s] Downloading (…)in/added_tokens.json: 100%|██████████| 1.52k/1.52k [00:00<00:00, 1.55MB/s] Downloading (…)cial_tokens_map.json: 0%| | 0.00/335 [00:00<?, ?B/s] Downloading (…)cial_tokens_map.json: 100%|██████████| 335/335 [00:00<00:00, 348kB/s] Downloading (…)okenizer_config.json: 0%| | 0.00/536 [00:00<?, ?B/s] Downloading (…)okenizer_config.json: 100%|██████████| 536/536 [00:00<00:00, 554kB/s] Traceback (most recent call last): File "app.py", line 26, in <module> pretrained_model = DonutModel.from_pretrained( File "/home/user/.local/lib/python3.8/site-packages/donut/model.py", line 593, in from_pretrained model = super(DonutModel, cls).from_pretrained(pretrained_model_name_or_path, revision="official", *model_args, **kwargs) File "/home/user/.local/lib/python3.8/site-packages/transformers/modeling_utils.py", line 2326, in from_pretrained model, missing_keys, unexpected_keys, mismatched_keys, error_msgs = cls._load_pretrained_model( File "/home/user/.local/lib/python3.8/site-packages/transformers/modeling_utils.py", line 2461, in _load_pretrained_model model._init_weights(module) File "/home/user/.local/lib/python3.8/site-packages/transformers/modeling_utils.py", line 1100, in _init_weights raise NotImplementedError(f"Make sure `_init_weights` is implemented for {self.__class__}") NotImplementedError: Make sure `_init_weights` is implemented for <class 'donut.model.DonutModel'>
Container logs:
Fetching error logs...