ariG23498 HF Staff commited on
Commit
19dada7
·
verified ·
1 Parent(s): 40caeaf

Upload nvidia_music-flamingo-hf_0.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. nvidia_music-flamingo-hf_0.txt +39 -0
nvidia_music-flamingo-hf_0.txt ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```CODE:
2
+ # Load model directly
3
+ from transformers import AutoProcessor, AutoModelForSeq2SeqLM
4
+
5
+ processor = AutoProcessor.from_pretrained("nvidia/music-flamingo-hf")
6
+ model = AutoModelForSeq2SeqLM.from_pretrained("nvidia/music-flamingo-hf")
7
+ ```
8
+
9
+ ERROR:
10
+ Traceback (most recent call last):
11
+ File "/tmp/.cache/uv/environments-v2/e266a30ac1b41431/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1360, in from_pretrained
12
+ config_class = CONFIG_MAPPING[config_dict["model_type"]]
13
+ ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
+ File "/tmp/.cache/uv/environments-v2/e266a30ac1b41431/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1048, in __getitem__
15
+ raise KeyError(key)
16
+ KeyError: 'audioflamingo3'
17
+
18
+ During handling of the above exception, another exception occurred:
19
+
20
+ Traceback (most recent call last):
21
+ File "/tmp/nvidia_music-flamingo-hf_0Lwf8KG.py", line 27, in <module>
22
+ model = AutoModelForSeq2SeqLM.from_pretrained("nvidia/music-flamingo-hf")
23
+ File "/tmp/.cache/uv/environments-v2/e266a30ac1b41431/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 549, in from_pretrained
24
+ config, kwargs = AutoConfig.from_pretrained(
25
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~^
26
+ pretrained_model_name_or_path,
27
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28
+ ...<4 lines>...
29
+ **kwargs,
30
+ ^^^^^^^^^
31
+ )
32
+ ^
33
+ File "/tmp/.cache/uv/environments-v2/e266a30ac1b41431/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1362, in from_pretrained
34
+ raise ValueError(
35
+ ...<8 lines>...
36
+ )
37
+ ValueError: The checkpoint you are trying to load has model type `audioflamingo3` 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.
38
+
39
+ You 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`