Upload Salesforce_CoDA-v0-Instruct_1.txt with huggingface_hub
Browse files
Salesforce_CoDA-v0-Instruct_1.txt
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Traceback (most recent call last):
|
| 2 |
+
File "/tmp/Salesforce_CoDA-v0-Instruct_1MFuvyv.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_pretrained
|
| 5 |
+
return model_class.from_pretrained(
|
| 6 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
|
| 7 |
+
pretrained_model_name_or_path, *model_args, config=config, **hub_kwargs, **kwargs
|
| 8 |
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 9 |
+
)
|
| 10 |
+
^
|
| 11 |
+
File "/tmp/.cache/uv/environments-v2/f5cacc24669b9318/lib/python3.13/site-packages/transformers/modeling_utils.py", line 277, in _wrapper
|
| 12 |
+
return func(*args, **kwargs)
|
| 13 |
+
File "/tmp/.cache/uv/environments-v2/f5cacc24669b9318/lib/python3.13/site-packages/transformers/modeling_utils.py", line 4974, in from_pretrained
|
| 14 |
+
model = cls(config, *model_args, **model_kwargs)
|
| 15 |
+
File "/tmp/.cache/huggingface/modules/transformers_modules/Salesforce/CoDA_hyphen_v0_hyphen_Instruct/89d646aff12a3c17079eadba13bd784e74337b41/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/89d646aff12a3c17079eadba13bd784e74337b41/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 2080, in __init__
|
| 22 |
+
self.config._attn_implementation_internal = self._check_and_adjust_attn_implementation(
|
| 23 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
|
| 24 |
+
self.config._attn_implementation, is_init_check=True
|
| 25 |
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 26 |
+
)
|
| 27 |
+
^
|
| 28 |
+
File "/tmp/.cache/uv/environments-v2/f5cacc24669b9318/lib/python3.13/site-packages/transformers/modeling_utils.py", line 2690, in _check_and_adjust_attn_implementation
|
| 29 |
+
applicable_attn_implementation = self.get_correct_attn_implementation(
|
| 30 |
+
applicable_attn_implementation, is_init_check
|
| 31 |
+
)
|
| 32 |
+
File "/tmp/.cache/uv/environments-v2/f5cacc24669b9318/lib/python3.13/site-packages/transformers/modeling_utils.py", line 2729, in get_correct_attn_implementation
|
| 33 |
+
raise e
|
| 34 |
+
File "/tmp/.cache/uv/environments-v2/f5cacc24669b9318/lib/python3.13/site-packages/transformers/modeling_utils.py", line 2726, in get_correct_attn_implementation
|
| 35 |
+
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 2578, in _sdpa_can_dispatch
|
| 38 |
+
raise ValueError(
|
| 39 |
+
...<3 lines>...
|
| 40 |
+
)
|
| 41 |
+
ValueError: 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")`
|