Instructions to use ArchiveStudio/Qwen3-ASR-0.6B-hf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ArchiveStudio/Qwen3-ASR-0.6B-hf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="ArchiveStudio/Qwen3-ASR-0.6B-hf")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("ArchiveStudio/Qwen3-ASR-0.6B-hf") model = AutoModelForMultimodalLM.from_pretrained("ArchiveStudio/Qwen3-ASR-0.6B-hf", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download chat_template.jinja from ArchiveStudio/Qwen3-ASR-0.6B-hf: direct link, hf CLI and curl.
- Browser
- Download file 1.43 kB
-
https://huggingface.co/ArchiveStudio/Qwen3-ASR-0.6B-hf/resolve/main/chat_template.jinja
- Command line
-
hf download hf://ArchiveStudio/Qwen3-ASR-0.6B-hf/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/ArchiveStudio/Qwen3-ASR-0.6B-hf/resolve/main/chat_template.jinja
1.43 kB
| {%- set ns = namespace(system_text='') -%}{%- for m in messages -%}{%- if m.role == 'system' -%}{%- if m.content is string -%}{%- set ns.system_text = ns.system_text + m.content -%}{%- else -%}{%- for c in m.content -%}{%- if c.type == 'text' and (c.text is defined) -%}{%- set ns.system_text = ns.system_text + c.text -%}{%- endif -%}{%- endfor -%}{%- endif -%}{%- endif -%}{%- endfor -%}{%- set ns2 = namespace(audio_tokens='') -%}{%- for m in messages -%}{%- if m.content is not string -%}{%- for c in m.content -%}{%- if c.type == 'audio' or ('audio' in c) or ('audio_url' in c) -%}{%- set ns2.audio_tokens = ns2.audio_tokens + '<|audio_start|><|audio_pad|><|audio_end|>' -%}{%- endif -%}{%- endfor -%}{%- endif -%}{%- endfor -%}{{- '<|im_start|>system | |
| ' + ns.system_text + '<|im_end|> | |
| ' -}}{{- '<|im_start|>user | |
| ' + ns2.audio_tokens + '<|im_end|> | |
| ' -}}{%- for m in messages -%}{%- if m.role == 'assistant' -%}{%- set ns3 = namespace(assistant_text='') -%}{%- if m.content is string -%}{%- set ns3.assistant_text = m.content -%}{%- else -%}{%- for c in m.content -%}{%- if c.type == 'text' and (c.text is defined) -%}{%- set ns3.assistant_text = ns3.assistant_text + c.text -%}{%- endif -%}{%- endfor -%}{%- endif -%}{{- '<|im_start|>assistant | |
| ' -}}{% generation %}{{- ns3.assistant_text + '<|im_end|> | |
| ' -}}{% endgeneration %}{%- endif -%}{%- endfor -%}{%- if add_generation_prompt -%}{{- '<|im_start|>assistant | |
| ' -}}{%- endif -%} |