runtime error
Exit code: 1. Reason: VisionEncoderDecoderModel has generative capabilities, as `prepare_inputs_for_generation` is explicitly overwritten. However, it doesn't directly inherit from `GenerationMixin`. From 👉v4.50👈 onwards, `PreTrainedModel` will NOT inherit from `GenerationMixin`, and this model will lose the ability to call `generate` and other related functions. - If you're using `trust_remote_code=True`, you can get rid of this warning by loading the model with an auto class. See https://huggingface.co./docs/transformers/en/model_doc/auto#auto-classes - If you are the owner of the model architecture code, please modify your model class such that it inherits from `GenerationMixin` (after `PreTrainedModel`, otherwise you'll get an exception). - If you are not the owner of the model architecture class, please contact the model code owner to update it. Traceback (most recent call last): File "/home/user/app/app.py", line 15, in <module> vision_model = VisionEncoderDecoderModel.from_pretrained( File "/usr/local/lib/python3.10/site-packages/transformers/models/vision_encoder_decoder/modeling_vision_encoder_decoder.py", line 371, in from_pretrained return super().from_pretrained(pretrained_model_name_or_path, *model_args, **kwargs) File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 3929, in from_pretrained no_split_modules = model._get_no_split_modules(device_map) File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 2024, in _get_no_split_modules raise ValueError( ValueError: VisionEncoderDecoderModel does not support `device_map='auto'`. To implement support, the model class needs to implement the `_no_split_modules` attribute.
Container logs:
Fetching error logs...