runtime error
Exit code: 1. Reason: B/s][A preprocessor_config.json: 100%|ββββββββββ| 135/135 [00:00<00:00, 903kB/s] vocab.txt: 0%| | 0.00/232k [00:00<?, ?B/s][A vocab.txt: 100%|ββββββββββ| 232k/232k [00:00<00:00, 60.3MB/s] config.json: 0%| | 0.00/707 [00:00<?, ?B/s][A config.json: 100%|ββββββββββ| 707/707 [00:00<00:00, 5.81MB/s] config.json: 0%| | 0.00/1.37k [00:00<?, ?B/s][A config.json: 100%|ββββββββββ| 1.37k/1.37k [00:00<00:00, 7.55MB/s] model.safetensors: 0%| | 0.00/802M [00:00<?, ?B/s][A model.safetensors: 3%|β | 26.1M/802M [00:01<00:32, 24.1MB/s][A model.safetensors: 44%|βββββ | 351M/802M [00:02<00:02, 192MB/s] [A model.safetensors: 100%|ββββββββββ| 802M/802M [00:02<00:00, 282MB/s] Traceback (most recent call last): File "/home/user/app/app.py", line 20, in <module> model = LayoutLMv2ForTokenClassification.from_pretrained("nielsr/layoutlmv2-finetuned-funsd") File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 4111, in from_pretrained model = cls(config, *model_args, **model_kwargs) File "/usr/local/lib/python3.10/site-packages/transformers/models/layoutlmv2/modeling_layoutlmv2.py", line 1145, in __init__ self.layoutlmv2 = LayoutLMv2Model(config) File "/usr/local/lib/python3.10/site-packages/transformers/models/layoutlmv2/modeling_layoutlmv2.py", line 700, in __init__ requires_backends(self, "detectron2") File "/usr/local/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1678, in requires_backends raise ImportError("".join(failed)) ImportError: LayoutLMv2Model requires the detectron2 library but it was not found in your environment. Checkout the instructions on the installation page: https://github.com/facebookresearch/detectron2/blob/master/INSTALL.md 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...