runtime error
Exit code: 1. Reason: ad. warnings.warn( /home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional. warnings.warn( Traceback (most recent call last): File "/home/user/app/app.py", line 128, in <module> model, tokenizer = load_model() File "/home/user/app/app.py", line 62, in load_model model = AutoModelForCausalLM.from_pretrained( File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 551, in from_pretrained model_class = get_class_from_dynamic_module( File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 514, in get_class_from_dynamic_module return get_class_in_module(class_name, final_module) File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/transformers/dynamic_module_utils.py", line 212, in get_class_in_module module_spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/home/user/.cache/huggingface/modules/transformers_modules/THUDM/cogvlm2-llama3-caption/89899160b0c5dc7980ab9ef60c609710d3643e05/modeling_cogvlm.py", line 20, in <module> from .util import FastRotaryEmbedding File "/home/user/.cache/huggingface/modules/transformers_modules/THUDM/cogvlm2-llama3-caption/89899160b0c5dc7980ab9ef60c609710d3643e05/util.py", line 12, in <module> 'xpu': torch.xpu.device File "/home/user/.pyenv/versions/3.10.15/lib/python3.10/site-packages/torch/__init__.py", line 1833, in __getattr__ raise AttributeError(f"module '{__name__}' has no attribute '{name}'") AttributeError: module 'torch' has no attribute 'xpu'
Container logs:
Fetching error logs...