CoolFace
Datasetpublic

model-metadata/custom_code_execution_files

sourceHugging Faceupdated 11mo agoView on Hugging Face
1likes3.9kdownloads
Salesforce_CoDA-v0-Instruct_1.txt42 linesDownload Raw Back to root
1Traceback (most recent call last):2  File "/tmp/Salesforce_CoDA-v0-Instruct_1xKCm9o.py", line 15, in <module>3    model = AutoModel.from_pretrained("Salesforce/CoDA-v0-Instruct", trust_remote_code=True, torch_dtype="auto")4  File "/tmp/.cache/uv/environments-v2/f5cacc24669b9318/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 597, in from_pretrained5    return model_class.from_pretrained(6           ~~~~~~~~~~~~~~~~~~~~~~~~~~~^7        pretrained_model_name_or_path, *model_args, config=config, **hub_kwargs, **kwargs8        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^9    )10    ^11  File "/tmp/.cache/uv/environments-v2/f5cacc24669b9318/lib/python3.13/site-packages/transformers/modeling_utils.py", line 277, in _wrapper12    return func(*args, **kwargs)13  File "/tmp/.cache/uv/environments-v2/f5cacc24669b9318/lib/python3.13/site-packages/transformers/modeling_utils.py", line 4971, in from_pretrained14    model = cls(config, *model_args, **model_kwargs)15  File "/tmp/.cache/huggingface/modules/transformers_modules/Salesforce/CoDA_hyphen_v0_hyphen_Instruct/f2d40ce1282766e2c9fbf5ca62c611817164a246/modeling_coda.py", line 372, in __init__16    self.model = CoDAModel(config)17                 ~~~~~~~~~^^^^^^^^18  File "/tmp/.cache/huggingface/modules/transformers_modules/Salesforce/CoDA_hyphen_v0_hyphen_Instruct/f2d40ce1282766e2c9fbf5ca62c611817164a246/modeling_coda.py", line 268, in __init__19    super().__init__(config=config)20    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^21  File "/tmp/.cache/uv/environments-v2/f5cacc24669b9318/lib/python3.13/site-packages/transformers/modeling_utils.py", line 2076, in __init__22    self.config._attn_implementation_internal = self._check_and_adjust_attn_implementation(23                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^24        self.config._attn_implementation, is_init_check=True25        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^26    )27    ^28  File "/tmp/.cache/uv/environments-v2/f5cacc24669b9318/lib/python3.13/site-packages/transformers/modeling_utils.py", line 2686, in _check_and_adjust_attn_implementation29    applicable_attn_implementation = self.get_correct_attn_implementation(30        applicable_attn_implementation, is_init_check31    )32  File "/tmp/.cache/uv/environments-v2/f5cacc24669b9318/lib/python3.13/site-packages/transformers/modeling_utils.py", line 2725, in get_correct_attn_implementation33    raise e34  File "/tmp/.cache/uv/environments-v2/f5cacc24669b9318/lib/python3.13/site-packages/transformers/modeling_utils.py", line 2722, in get_correct_attn_implementation35    self._sdpa_can_dispatch(is_init_check)36    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^37  File "/tmp/.cache/uv/environments-v2/f5cacc24669b9318/lib/python3.13/site-packages/transformers/modeling_utils.py", line 2574, in _sdpa_can_dispatch38    raise ValueError(39    ...<3 lines>...40    )41ValueError: CoDAModel does not support an attention implementation through torch.nn.functional.scaled_dot_product_attention yet. Please request the support for this architecture: https://github.com/huggingface/transformers/issues/28005. If you believe this error is a bug, please open an issue in Transformers GitHub repository and load your model with the argument `attn_implementation="eager"` meanwhile. Example: `model = AutoModel.from_pretrained("openai/whisper-tiny", attn_implementation="eager")`42