runtime error

Exit code: 1. Reason: 46%|β–ˆβ–ˆβ–ˆβ–ˆβ–Œ | 1.15G/2.51G [00:07<00:07, 175MB/s] model-00002-of-00002.safetensors: 59%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Š | 1.47G/2.51G [00:08<00:04, 214MB/s] model-00002-of-00002.safetensors: 84%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– | 2.11G/2.51G [00:09<00:01, 335MB/s] model-00002-of-00002.safetensors: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2.51G/2.51G [00:10<00:00, 237MB/s] Traceback (most recent call last): File "/app/app.py", line 18, in <module> model = AutoModelForImageTextToText.from_pretrained( File "/usr/local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 604, 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 "/usr/local/lib/python3.10/site-packages/transformers/models/qwen2_5_vl/modeling_qwen2_5_vl.py", line 1368, 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 2714, in get_correct_attn_implementation self._flash_attn_2_can_dispatch(is_init_check) File "/usr/local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 2432, in _flash_attn_2_can_dispatch raise ValueError( ValueError: FlashAttention2 has been toggled on, but it cannot be used due to the following error: Flash Attention 2 is not available on CPU. Please make sure torch can access a CUDA device.

Container logs:

Fetching error logs...