runtime error

Exit code: 1. Reason: config: MusicgenDecoderConfig { "activation_dropout": 0.0, "activation_function": "gelu", "attention_dropout": 0.0, "audio_channels": 1, "bos_token_id": 2048, "classifier_dropout": 0.0, "dropout": 0.1, "ffn_dim": 4096, "hidden_size": 1024, "initializer_factor": 0.02, "layerdrop": 0.0, "max_position_embeddings": 2048, "model_type": "musicgen_decoder", "num_attention_heads": 16, "num_codebooks": 4, "num_hidden_layers": 24, "pad_token_id": 2048, "scale_embedding": false, "tie_word_embeddings": false, "transformers_version": "4.47.1", "use_cache": true, "vocab_size": 2048 } generation_config.json: 0%| | 0.00/224 [00:00<?, ?B/s] generation_config.json: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 224/224 [00:00<00:00, 1.19MB/s] preprocessor_config.json: 0%| | 0.00/275 [00:00<?, ?B/s] preprocessor_config.json: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 275/275 [00:00<00:00, 2.47MB/s] tokenizer_config.json: 0%| | 0.00/2.37k [00:00<?, ?B/s] tokenizer_config.json: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2.37k/2.37k [00:00<00:00, 27.5MB/s] spiece.model: 0%| | 0.00/792k [00:00<?, ?B/s] spiece.model: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 792k/792k [00:00<00:00, 105MB/s] tokenizer.json: 0%| | 0.00/2.42M [00:00<?, ?B/s] tokenizer.json: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2.42M/2.42M [00:00<00:00, 42.9MB/s] special_tokens_map.json: 0%| | 0.00/2.20k [00:00<?, ?B/s] special_tokens_map.json: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2.20k/2.20k [00:00<00:00, 17.2MB/s] Traceback (most recent call last): File "/home/user/app/app.py", line 20, in <module> model.save_pretrained(model_bytes) File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 2780, in save_pretrained if os.path.isfile(save_directory): File "/usr/local/lib/python3.10/genericpath.py", line 30, in isfile st = os.stat(path) TypeError: stat: path should be string, bytes, os.PathLike or integer, not BytesIO

Container logs:

Fetching error logs...