Team Ai
Datasetpublic

model-metadata/code_execution_files

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes25kdownloads
FunAudioLLM_Fun-Audio-Chat-8B_0.txt38 linesDownload Raw Back to root
1```CODE: 2# Load model directly3from transformers import AutoModelForSeq2SeqLM4model = AutoModelForSeq2SeqLM.from_pretrained("FunAudioLLM/Fun-Audio-Chat-8B", dtype="auto")5```6 7ERROR: 8Traceback (most recent call last):9  File "/tmp/.cache/uv/environments-v2/124dad88d9083e78/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1360, in from_pretrained10    config_class = CONFIG_MAPPING[config_dict["model_type"]]11                   ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^12  File "/tmp/.cache/uv/environments-v2/124dad88d9083e78/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1048, in __getitem__13    raise KeyError(key)14KeyError: 'funaudiochat'15 16During handling of the above exception, another exception occurred:17 18Traceback (most recent call last):19  File "/tmp/FunAudioLLM_Fun-Audio-Chat-8B_0bv7Ja3.py", line 25, in <module>20    model = AutoModelForSeq2SeqLM.from_pretrained("FunAudioLLM/Fun-Audio-Chat-8B", dtype="auto")21  File "/tmp/.cache/uv/environments-v2/124dad88d9083e78/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 549, in from_pretrained22    config, kwargs = AutoConfig.from_pretrained(23                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^24        pretrained_model_name_or_path,25        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^26    ...<4 lines>...27        **kwargs,28        ^^^^^^^^^29    )30    ^31  File "/tmp/.cache/uv/environments-v2/124dad88d9083e78/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1362, in from_pretrained32    raise ValueError(33    ...<8 lines>...34    )35ValueError: The checkpoint you are trying to load has model type `funaudiochat` but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.36 37You can update Transformers with the command `pip install --upgrade transformers`. If this does not work, and the checkpoint is very new, then there may not be a release version that supports this model yet. In this case, you can get the most up-to-date code by installing Transformers from source with the command `pip install git+https://github.com/huggingface/transformers.git`38