runtime error
Exit code: 1. Reason: 9.31k/9.31k [00:00<00:00, 43.2MB/s] vocab.json: 0%| | 0.00/2.78M [00:00<?, ?B/s][A vocab.json: 100%|ββββββββββ| 2.78M/2.78M [00:00<00:00, 31.2MB/s] `torch_dtype` is deprecated! Use `dtype` instead! Traceback (most recent call last): File "/app/app.py", line 331, in <module> model = 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 "/root/.cache/huggingface/modules/transformers_modules/dots_hyphen_ocr_hyphen_local/modeling_dots_ocr.py", line 18, in __init__ super().__init__(config) File "/usr/local/lib/python3.10/site-packages/transformers/models/qwen2/modeling_qwen2.py", line 409, 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...