runtime error

Space failed to start. Exit code: 1

Container logs:

9x5gt 2023-03-23T14:15:00.922Z Defaulting to user installation because normal site-packages is not writeable
9x5gt 2023-03-23T14:15:01.178Z Collecting pyyaml==5.1
9x5gt 2023-03-23T14:15:01.200Z   Downloading PyYAML-5.1.tar.gz (274 kB)
9x5gt 2023-03-23T14:15:01.269Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 274.2/274.2 kB 4.0 MB/s eta 0:00:00
9x5gt 2023-03-23T14:15:01.380Z   Preparing metadata (setup.py): started
9x5gt 2023-03-23T14:15:02.395Z   Preparing metadata (setup.py): finished with status 'done'
9x5gt 2023-03-23T14:15:02.399Z Building wheels for collected packages: pyyaml
9x5gt 2023-03-23T14:15:02.400Z   Building wheel for pyyaml (setup.py): started
9x5gt 2023-03-23T14:15:10.178Z   Building wheel for pyyaml (setup.py): finished with status 'done'
9x5gt 2023-03-23T14:15:10.179Z   Created wheel for pyyaml: filename=PyYAML-5.1-cp38-cp38-linux_x86_64.whl size=568237 sha256=b9e7002c1fb744b99001714b540901ce860f36444d9016fc0d810bcc4c5cab56
9x5gt 2023-03-23T14:15:10.179Z   Stored in directory: /home/user/.cache/pip/wheels/a8/a9/22/0c8737a2e51d239bbad2044d9438b218d6cf77ed9f33ffe7f8
9x5gt 2023-03-23T14:15:10.183Z Successfully built pyyaml
9x5gt 2023-03-23T14:15:11.386Z Installing collected packages: pyyaml
9x5gt 2023-03-23T14:15:11.386Z   Attempting uninstall: pyyaml
9x5gt 2023-03-23T14:15:11.387Z     Found existing installation: PyYAML 6.0
9x5gt 2023-03-23T14:15:11.392Z     Uninstalling PyYAML-6.0:
9x5gt 2023-03-23T14:15:11.424Z       Successfully uninstalled PyYAML-6.0
9x5gt 2023-03-23T14:15:11.664Z ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
9x5gt 2023-03-23T14:15:11.664Z pytorch-lightning 2.0.0 requires PyYAML>=5.4, but you have pyyaml 5.1 which is incompatible.
9x5gt 2023-03-23T14:15:11.664Z Successfully installed pyyaml-5.1
9x5gt 2023-03-23T14:15:11.812Z 
9x5gt 2023-03-23T14:15:11.812Z [notice] A new release of pip available: 22.3.1 -> 23.0.1
9x5gt 2023-03-23T14:15:11.812Z [notice] To update, run: python -m pip install --upgrade pip
9x5gt 2023-03-23T14:15:14.941Z 
9x5gt 2023-03-23T14:15:14.941Z [notice] A new release of pip available: 22.3.1 -> 23.0.1
9x5gt 2023-03-23T14:15:14.941Z [notice] To update, run: python -m pip install --upgrade pip
9x5gt 2023-03-23T14:15:19.424Z 
Downloading (…)okenizer_config.json:   0%|          | 0.00/28.0 [00:00<?, ?B/s]
Downloading (…)okenizer_config.json: 100%|██████████| 28.0/28.0 [00:00<00:00, 6.12kB/s]
9x5gt 2023-03-23T14:15:19.488Z 
Downloading (…)solve/main/vocab.txt:   0%|          | 0.00/232k [00:00<?, ?B/s]
Downloading (…)solve/main/vocab.txt: 100%|██████████| 232k/232k [00:00<00:00, 36.9MB/s]
9x5gt 2023-03-23T14:15:19.543Z 
Downloading (…)/main/tokenizer.json:   0%|          | 0.00/466k [00:00<?, ?B/s]
Downloading (…)/main/tokenizer.json: 100%|██████████| 466k/466k [00:00<00:00, 110MB/s]
9x5gt 2023-03-23T14:15:19.641Z 
Downloading (…)lve/main/config.json:   0%|          | 0.00/570 [00:00<?, ?B/s]
Downloading (…)lve/main/config.json: 100%|██████████| 570/570 [00:00<00:00, 271kB/s]
9x5gt 2023-03-23T14:15:19.668Z /home/user/.local/lib/python3.8/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
9x5gt 2023-03-23T14:15:19.668Z   warnings.warn(
9x5gt 2023-03-23T14:15:19.668Z /home/user/.local/lib/python3.8/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=None`.
9x5gt 2023-03-23T14:15:19.668Z   warnings.warn(msg)
9x5gt 2023-03-23T14:15:20.101Z 
Downloading (…)lve/main/config.json:   0%|          | 0.00/606 [00:00<?, ?B/s]
Downloading (…)lve/main/config.json: 100%|██████████| 606/606 [00:00<00:00, 138kB/s]
9x5gt 2023-03-23T14:15:31.889Z 
Downloading pytorch_model.bin:   0%|          | 0.00/453M [00:00<?, ?B/s]
Downloading pytorch_model.bin:   2%|▏         | 10.5M/453M [00:00<00:05, 74.7MB/s]
Downloading pytorch_model.bin:   5%|▍         | 21.0M/453M [00:00<00:07, 61.1MB/s]
Downloading pytorch_model.bin:   7%|▋         | 31.5M/453M [00:00<00:07, 53.7MB/s]
Downloading pytorch_model.bin:   9%|▉         | 41.9M/453M [00:00<00:10, 39.5MB/s]
Downloading pytorch_model.bin:  12%|█▏        | 52.4M/453M [00:01<00:09, 40.7MB/s]
Downloading pytorch_model.bin:  14%|█▍        | 62.9M/453M [00:01<00:10, 36.9MB/s]
Downloading pytorch_model.bin:  16%|█▌        | 73.4M/453M [00:01<00:08, 46.3MB/s]
Downloading pytorch_model.bin:  19%|█▊        | 83.9M/453M [00:01<00:09, 40.7MB/s]
Downloading pytorch_model.bin:  21%|██        | 94.4M/453M [00:02<00:10, 34.8MB/s]
Downloading pytorch_model.bin:  23%|██▎       | 105M/453M [00:02<00:09, 38.5MB/s] 
Downloading pytorch_model.bin:  25%|██▌       | 115M/453M [00:02<00:07, 43.3MB/s]
Downloading pytorch_model.bin:  28%|██▊       | 126M/453M [00:02<00:07, 41.5MB/s]
Downloading pytorch_model.bin:  30%|███       | 136M/453M [00:03<00:08, 36.7MB/s]
Downloading pytorch_model.bin:  32%|███▏      | 147M/453M [00:03<00:08, 36.7MB/s]
Downloading pytorch_model.bin:  35%|███▍      | 157M/453M [00:03<00:08, 34.2MB/s]
Downloading pytorch_model.bin:  37%|███▋      | 168M/453M [00:04<00:08, 32.8MB/s]
Downloading pytorch_model.bin:  39%|███▉      | 178M/453M [00:04<00:07, 37.8MB/s]
Downloading pytorch_model.bin:  42%|████▏     | 189M/453M [00:04<00:06, 41.9MB/s]
Downloading pytorch_model.bin:  44%|████▍     | 199M/453M [00:04<00:05, 43.2MB/s]
Downloading pytorch_model.bin:  46%|████▋     | 210M/453M [00:05<00:06, 36.8MB/s]
Downloading pytorch_model.bin:  49%|████▊     | 220M/453M [00:05<00:05, 44.0MB/s]
Downloading pytorch_model.bin:  51%|█████     | 231M/453M [00:05<00:04, 49.2MB/s]
Downloading pytorch_model.bin:  53%|█████▎    | 241M/453M [00:05<00:05, 42.3MB/s]
Downloading pytorch_model.bin:  56%|█████▌    | 252M/453M [00:06<00:05, 35.5MB/s]
Downloading pytorch_model.bin:  58%|█████▊    | 262M/453M [00:06<00:05, 32.0MB/s]
Downloading pytorch_model.bin:  60%|██████    | 273M/453M [00:06<00:04, 36.4MB/s]
Downloading pytorch_model.bin:  62%|██████▏   | 283M/453M [00:07<00:04, 37.3MB/s]
Downloading pytorch_model.bin:  65%|██████▍   | 294M/453M [00:07<00:04, 34.3MB/s]
Downloading pytorch_model.bin:  67%|██████▋   | 304M/453M [00:07<00:04, 36.7MB/s]
Downloading pytorch_model.bin:  69%|██████▉   | 315M/453M [00:07<00:03, 43.6MB/s]
Downloading pytorch_model.bin:  72%|███████▏  | 325M/453M [00:08<00:02, 46.8MB/s]
Downloading pytorch_model.bin:  74%|███████▍  | 336M/453M [00:08<00:03, 36.8MB/s]
Downloading pytorch_model.bin:  76%|███████▋  | 346M/453M [00:08<00:03, 34.1MB/s]
Downloading pytorch_model.bin:  79%|███████▊  | 357M/453M [00:09<00:02, 42.5MB/s]
Downloading pytorch_model.bin:  81%|████████  | 367M/453M [00:09<00:01, 45.5MB/s]
Downloading pytorch_model.bin:  83%|████████▎ | 377M/453M [00:09<00:01, 38.8MB/s]
Downloading pytorch_model.bin:  86%|████████▌ | 388M/453M [00:09<00:01, 43.9MB/s]
Downloading pytorch_model.bin:  88%|████████▊ | 398M/453M [00:09<00:01, 50.9MB/s]
Downloading pytorch_model.bin:  90%|█████████ | 409M/453M [00:10<00:00, 52.5MB/s]
Downloading pytorch_model.bin:  93%|█████████▎| 419M/453M [00:10<00:00, 37.5MB/s]
Downloading pytorch_model.bin:  95%|█████████▍| 430M/453M [00:10<00:00, 35.8MB/s]
Downloading pytorch_model.bin:  97%|█████████▋| 440M/453M [00:11<00:00, 34.6MB/s]
Downloading pytorch_model.bin: 100%|█████████▉| 451M/453M [00:11<00:00, 35.0MB/s]
Downloading pytorch_model.bin: 100%|██████████| 453M/453M [00:11<00:00, 39.3MB/s]
9x5gt 2023-03-23T14:15:33.154Z Some weights of the model checkpoint at microsoft/layoutlm-base-uncased were not used when initializing LayoutLMForTokenClassification: ['cls.predictions.bias', 'cls.predictions.transform.LayerNorm.bias', 'cls.predictions.transform.LayerNorm.weight', 'cls.predictions.decoder.weight', 'cls.predictions.transform.dense.bias', 'cls.predictions.transform.dense.weight', 'cls.predictions.decoder.bias']
9x5gt 2023-03-23T14:15:33.154Z - This IS expected if you are initializing LayoutLMForTokenClassification from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model).
9x5gt 2023-03-23T14:15:33.154Z - This IS NOT expected if you are initializing LayoutLMForTokenClassification from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).
9x5gt 2023-03-23T14:15:33.154Z Some weights of LayoutLMForTokenClassification were not initialized from the model checkpoint at microsoft/layoutlm-base-uncased and are newly initialized: ['classifier.bias', 'classifier.weight']
9x5gt 2023-03-23T14:15:33.154Z You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
9x5gt 2023-03-23T14:15:33.880Z Traceback (most recent call last):
9x5gt 2023-03-23T14:15:33.880Z   File "app.py", line 56, in <module>
9x5gt 2023-03-23T14:15:33.880Z     docformer = DocFormer(config)
9x5gt 2023-03-23T14:15:33.880Z   File "/home/user/app/utils.py", line 55, in __init__
9x5gt 2023-03-23T14:15:33.880Z     self.train_accuracy_metric = torchmetrics.Accuracy()
9x5gt 2023-03-23T14:15:33.880Z TypeError: __new__() missing 1 required positional argument: 'task'