Automatic Speech Recognition
Transformers
Safetensors
fun_asr_nano
speech-recognition
asr
end-to-end
multilingual
arxiv:2509.12508
Instructions to use FunAudioLLM/Fun-ASR-Nano-2512-hf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FunAudioLLM/Fun-ASR-Nano-2512-hf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="FunAudioLLM/Fun-ASR-Nano-2512-hf")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("FunAudioLLM/Fun-ASR-Nano-2512-hf") model = AutoModelForMultimodalLM.from_pretrained("FunAudioLLM/Fun-ASR-Nano-2512-hf", device_map="auto") - Notebooks
- Google Colab
- Kaggle
LauraGPT commited on
docs: link tested any-to-any pipeline and state ASR task boundary
Browse filesSigned-off-by: LauraGPT <18321252+LauraGPT@users.noreply.github.com>
README.md
CHANGED
|
@@ -103,6 +103,19 @@ Hotwords are hints, not an enforced vocabulary. In the paired Chinese sample che
|
|
| 103 |
|
| 104 |
`language` accepts Chinese, English, and Japanese as ISO codes, full English names, or the checkpoint Chinese names (`中文`, `英文`, `日文`). Keep batch inputs and decoded outputs in order; use `processor_kwargs={"text_kwargs": {"padding": True}}` together with the other processor options for different-length batches. Reject empty batches before calling the processor. An upstream `IndexError` for `audio=[]` was observed in the historical `fc501` source environment; that observation is not a new 5.17.0 test result.
|
| 105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
## CUDA with the canonical CLI
|
| 107 |
|
| 108 |
The [isolated CUDA recipe](https://github.com/QwenAudio/Fun-ASR/tree/main/examples/transformers#cuda-an-isolated-tested-recipe)
|
|
|
|
| 103 |
|
| 104 |
`language` accepts Chinese, English, and Japanese as ISO codes, full English names, or the checkpoint Chinese names (`中文`, `英文`, `日文`). Keep batch inputs and decoded outputs in order; use `processor_kwargs={"text_kwargs": {"padding": True}}` together with the other processor options for different-length batches. Reject empty batches before calling the processor. An upstream `IndexError` for `audio=[]` was observed in the historical `fc501` source environment; that observation is not a new 5.17.0 test result.
|
| 105 |
|
| 106 |
+
## Using the pipeline API
|
| 107 |
+
|
| 108 |
+
Use the explicitly selected `any-to-any` task with structured audio/language
|
| 109 |
+
messages: the [runnable pipeline example](https://github.com/QwenAudio/Fun-ASR/tree/main/examples/transformers#use-the-transformers-pipeline-api)
|
| 110 |
+
was executed on Transformers 5.17.0, torch 2.10.0+cpu and the pinned public English
|
| 111 |
+
sample. It returns transcription text without the input conversation.
|
| 112 |
+
|
| 113 |
+
The standard `automatic-speech-recognition` pipeline is a different processing
|
| 114 |
+
route: our 5.17.0 test fails with a floating-point token-index error for this
|
| 115 |
+
checkpoint. Do not substitute that task or rely on automatic task inference.
|
| 116 |
+
This pipeline check is CPU single-file only, not GPU/batch, accuracy or capacity
|
| 117 |
+
validation. The native processor/generate quickstart above remains supported.
|
| 118 |
+
|
| 119 |
## CUDA with the canonical CLI
|
| 120 |
|
| 121 |
The [isolated CUDA recipe](https://github.com/QwenAudio/Fun-ASR/tree/main/examples/transformers#cuda-an-isolated-tested-recipe)
|