Upload zai-org_GLM-ASR-Nano-2512_0.txt with huggingface_hub
Browse files1 unmodified line2345567891011121314151617181920212223242526272829303132333435363710111213141516171819424344454647484950515253545556572021222324255960616263646566672627692829717273743031321 unmodified line# Use a pipeline as a high-level helperfrom transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="zai-org/GLM-ASR-Nano-2512", trust_remote_code=True)pipe = pipeline("automatic-speech-recognition", model="zai-org/GLM-ASR-Nano-2512")```
ERROR: Traceback (most recent call last): File "/tmp/zai-org_GLM-ASR-Nano-2512_0HT3lEa.py", line 26, in <module> pipe = pipeline("automatic-speech-recognition", model="zai-org/GLM-ASR-Nano-2512", trust_remote_code=True) File "/tmp/.cache/uv/environments-v2/e265c82f8ee277ed/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 1027, in pipeline framework, model = infer_framework_load_model( ~~~~~~~~~~~~~~~~~~~~~~~~~~^ adapter_path if adapter_path is not None else model, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... **model_kwargs, ^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/e265c82f8ee277ed/lib/python3.13/site-packages/transformers/pipelines/base.py", line 333, in infer_framework_load_model raise ValueError( f"Could not load model {model} with any of the following classes: {class_tuple}. See the original errors:\n\n{error}\n" )ValueError: Could not load model zai-org/GLM-ASR-Nano-2512 with any of the following classes: (<class 'transformers.models.auto.modeling_auto.AutoModelForCTC'>, <class 'transformers.models.auto.modeling_auto.AutoModelForSpeechSeq2Seq'>). See the original errors:
while loading with AutoModelForCTC, an error is thrown:Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/e265c82f8ee277ed/lib/python3.13/site-packages/transformers/pipelines/base.py", line 293, in infer_framework_load_model model = model_class.from_pretrained(model, **kwargs) File "/tmp/.cache/uv/environments-v2/e265c82f8ee277ed/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 607, in from_pretrained raise ValueError( ...<2 lines>... )ValueError: Unrecognized configuration class <class 'transformers_modules.zai_hyphen_org.GLM_hyphen_ASR_hyphen_Nano_hyphen_2512.91967eab799804ab256a3819a085b92378906eb2.configuration_glmasr.GlmasrConfig'> for this kind of AutoModel: AutoModelForCTC.Model type should be one of Data2VecAudioConfig, HubertConfig, MCTCTConfig, ParakeetCTCConfig, SEWConfig, SEWDConfig, UniSpeechConfig, UniSpeechSatConfig, Wav2Vec2Config, Wav2Vec2BertConfig, Wav2Vec2ConformerConfig, WavLMConfig. File "/tmp/.cache/uv/environments-v2/e265c82f8ee277ed/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1360, in from_pretrained config_class = CONFIG_MAPPING[config_dict["model_type"]] ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/e265c82f8ee277ed/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1048, in __getitem__ raise KeyError(key)KeyError: 'glmasr'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/e265c82f8ee277ed/lib/python3.13/site-packages/transformers/pipelines/base.py", line 311, in infer_framework_load_model model = model_class.from_pretrained(model, **fp32_kwargs) File "/tmp/.cache/uv/environments-v2/e265c82f8ee277ed/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 607, in from_pretrained raise ValueError( ...<2 lines>... )ValueError: Unrecognized configuration class <class 'transformers_modules.zai_hyphen_org.GLM_hyphen_ASR_hyphen_Nano_hyphen_2512.91967eab799804ab256a3819a085b92378906eb2.configuration_glmasr.GlmasrConfig'> for this kind of AutoModel: AutoModelForCTC.Model type should be one of Data2VecAudioConfig, HubertConfig, MCTCTConfig, ParakeetCTCConfig, SEWConfig, SEWDConfig, UniSpeechConfig, UniSpeechSatConfig, Wav2Vec2Config, Wav2Vec2BertConfig, Wav2Vec2ConformerConfig, WavLMConfig.
while loading with AutoModelForSpeechSeq2Seq, an error is thrown:Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/e265c82f8ee277ed/lib/python3.13/site-packages/transformers/pipelines/base.py", line 293, in infer_framework_load_model model = model_class.from_pretrained(model, **kwargs) File "/tmp/.cache/uv/environments-v2/e265c82f8ee277ed/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 607, in from_pretrained raise ValueError( ...<2 lines>... File "/tmp/zai-org_GLM-ASR-Nano-2512_03Jrp1f.py", line 26, in <module> pipe = pipeline("automatic-speech-recognition", model="zai-org/GLM-ASR-Nano-2512") File "/tmp/.cache/uv/environments-v2/e265c82f8ee277ed/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 922, in pipeline config = AutoConfig.from_pretrained( model, _from_pipeline=task, code_revision=code_revision, **hub_kwargs, **model_kwargs )ValueError: Unrecognized configuration class <class 'transformers_modules.zai_hyphen_org.GLM_hyphen_ASR_hyphen_Nano_hyphen_2512.91967eab799804ab256a3819a085b92378906eb2.configuration_glmasr.GlmasrConfig'> for this kind of AutoModel: AutoModelForSpeechSeq2Seq.Model type should be one of DiaConfig, GraniteSpeechConfig, KyutaiSpeechToTextConfig, MoonshineConfig, Pop2PianoConfig, SeamlessM4TConfig, SeamlessM4Tv2Config, SpeechEncoderDecoderConfig, Speech2TextConfig, SpeechT5Config, WhisperConfig.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/e265c82f8ee277ed/lib/python3.13/site-packages/transformers/pipelines/base.py", line 311, in infer_framework_load_model model = model_class.from_pretrained(model, **fp32_kwargs) File "/tmp/.cache/uv/environments-v2/e265c82f8ee277ed/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 607, in from_pretrained File "/tmp/.cache/uv/environments-v2/e265c82f8ee277ed/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1362, in from_pretrained raise ValueError( ...<2 lines>... ...<8 lines>... )ValueError: Unrecognized configuration class <class 'transformers_modules.zai_hyphen_org.GLM_hyphen_ASR_hyphen_Nano_hyphen_2512.91967eab799804ab256a3819a085b92378906eb2.configuration_glmasr.GlmasrConfig'> for this kind of AutoModel: AutoModelForSpeechSeq2Seq.Model type should be one of DiaConfig, GraniteSpeechConfig, KyutaiSpeechToTextConfig, MoonshineConfig, Pop2PianoConfig, SeamlessM4TConfig, SeamlessM4Tv2Config, SpeechEncoderDecoderConfig, Speech2TextConfig, SpeechT5Config, WhisperConfig.
ValueError: The checkpoint you are trying to load has model type `glmasr` 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.
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`zai-org_GLM-ASR-Nano-2512_0.txt+16-59