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
Download config.json from FunAudioLLM/Fun-ASR-Nano-2512-hf: direct link, hf CLI and curl.
- Browser
- Download file 2.6 kB
-
https://huggingface.co/FunAudioLLM/Fun-ASR-Nano-2512-hf/resolve/refs%2Fpr%2F5/config.json
- Command line
-
hf download hf://FunAudioLLM/Fun-ASR-Nano-2512-hf@refs/pr/5/config.json
-
curl -L -o config.json https://huggingface.co/FunAudioLLM/Fun-ASR-Nano-2512-hf/resolve/refs%2Fpr%2F5/config.json
2.6 kB
| { | |
| "adaptor_config": { | |
| "attention_dropout": 0.0, | |
| "hidden_act": "relu", | |
| "hidden_dropout": 0.0, | |
| "hidden_size": 1024, | |
| "intermediate_size": 256, | |
| "layer_norm_eps": 1e-05, | |
| "model_type": "", | |
| "num_attention_heads": 8, | |
| "num_hidden_layers": 2, | |
| "projector_hidden_act": "relu", | |
| "projector_hidden_size": 2048 | |
| }, | |
| "architectures": [ | |
| "FunAsrNanoForConditionalGeneration" | |
| ], | |
| "audio_config": { | |
| "activation_dropout": 0.1, | |
| "attention_dropout": 0.1, | |
| "fsmn_kernel_size": 11, | |
| "hidden_act": "relu", | |
| "hidden_dropout": 0.1, | |
| "hidden_size": 512, | |
| "intermediate_size": 2048, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 2049, | |
| "model_type": "fun_asr_nano_encoder", | |
| "num_attention_heads": 4, | |
| "num_hidden_layers": 70, | |
| "num_mel_bins": 80, | |
| "num_stacked_frames": 7, | |
| "num_timestamp_prediction_layers": 20 | |
| }, | |
| "audio_token_id": 151646, | |
| "dtype": "bfloat16", | |
| "initializer_range": 0.02, | |
| "model_type": "fun_asr_nano", | |
| "text_config": { | |
| "architectures": [ | |
| "Qwen3ForCausalLM" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 151643, | |
| "dtype": "bfloat16", | |
| "eos_token_id": 151645, | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 1024, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "layer_types": [ | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention" | |
| ], | |
| "max_position_embeddings": 40960, | |
| "max_window_layers": 28, | |
| "model_type": "qwen3", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 28, | |
| "num_key_value_heads": 8, | |
| "pad_token_id": null, | |
| "rms_norm_eps": 1e-06, | |
| "rope_parameters": { | |
| "rope_theta": 1000000, | |
| "rope_type": "default" | |
| }, | |
| "sliding_window": null, | |
| "tie_word_embeddings": true, | |
| "use_cache": true, | |
| "use_sliding_window": false, | |
| "vocab_size": 151936 | |
| }, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.17.0.dev0" | |
| } | |