runtime error
Exit code: 1. Reason: <00:00, 369MB/s] Traceback (most recent call last): File "/home/user/app/app.py", line 18, in <module> fl, fl_ft = model_init(hack=False) File "/home/user/app/aimodel.py", line 52, in model_init fl = Florence("microsoft/Florence-2-large", hack=hack) File "/home/user/app/aimodel.py", line 20, in __init__ AutoModelForCausalLM.from_pretrained( File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 597, in from_pretrained return model_class.from_pretrained( File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 277, in _wrapper return func(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 4971, in from_pretrained model = cls(config, *model_args, **model_kwargs) File "/home/user/.cache/huggingface/modules/transformers_modules/microsoft/Florence_hyphen_2_hyphen_large/21a599d414c4d928c9032694c424fb94458e3594/modeling_florence2.py", line 2535, in __init__ super().__init__(config) File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 2076, in __init__ self.config._attn_implementation_internal = self._check_and_adjust_attn_implementation( File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 2686, in _check_and_adjust_attn_implementation applicable_attn_implementation = self.get_correct_attn_implementation( File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 2722, in get_correct_attn_implementation self._sdpa_can_dispatch(is_init_check) File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 2573, in _sdpa_can_dispatch if not self._supports_sdpa: File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1729, in __getattr__ raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'") AttributeError: 'Florence2ForConditionalGeneration' object has no attribute '_supports_sdpa'
Container logs:
Fetching error logs...