runtime error

Exit code: 1. Reason: ared audio_encoder config: EncodecConfig { "_name_or_path": "facebook/encodec_32khz", "architectures": [ "EncodecModel" ], "audio_channels": 1, "chunk_length_s": null, "codebook_dim": 128, "codebook_size": 2048, "compress": 2, "dilation_growth_rate": 2, "hidden_size": 128, "kernel_size": 7, "last_kernel_size": 7, "model_type": "encodec", "norm_type": "weight_norm", "normalize": false, "num_filters": 64, "num_lstm_layers": 2, "num_residual_layers": 1, "overlap": null, "pad_mode": "reflect", "residual_kernel_size": 3, "sampling_rate": 32000, "target_bandwidths": [ 2.2 ], "torch_dtype": "float32", "transformers_version": "4.47.0", "trim_right_ratio": 1.0, "upsampling_ratios": [ 8, 5, 4, 4 ], "use_causal_conv": false, "use_conv_shortcut": false } Config of the decoder: <class 'transformers.models.musicgen.modeling_musicgen.MusicgenForCausalLM'> is overwritten by shared decoder 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.0", "use_cache": true, "vocab_size": 2048 } 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...