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
Reconvert Fun-ASR-Nano for reviewed Transformers architecture
Browse filesConverted with Transformers 53813aeb137e1bdc343bb62b60306ee346c2040b from original checkpoint 272c57b82523ada6fd87095e955f8e29100979ab. Chinese, English and mixed-batch generation validated locally on H100; no missing, unexpected or mismatched keys. Preserves model-card content with matching install/doc commit links.
Files changed (5)
- README.md+2-2
- config.json+8-7
- generation_config.json+1-1
- model.safetensors+2-2
- tokenizer_config.json+1-1
43 unmodified lines4445464748495038 unmodified lines8990919243 unmodified lines```bashpython -m pip install accelerate librosa \"transformers @ https://github.com/huggingface/transformers/archive/aa0a25a4c55a70cff996267bcd7e96317fe4031c.zip"``````python38 unmodified lines).to(model.device)````language` accepts Chinese, English, and Japanese as ISO codes, full English names, or native names. For batch inference, training, `torch.compile`, benchmarks, and the full model description, see the [Transformers documentation](https://github.com/huggingface/transformers/blob/aa0a25a4c55a70cff996267bcd7e96317fe4031c/docs/source/en/model_doc/fun_asr_nano.md) and the [original model card](https://huggingface.co/FunAudioLLM/Fun-ASR-Nano-2512).43 unmodified lines4445464748495038 unmodified lines8990919243 unmodified lines```bashpython -m pip install accelerate librosa \"transformers @ https://github.com/huggingface/transformers/archive/53813aeb137e1bdc343bb62b60306ee346c2040b.zip"``````python38 unmodified lines).to(model.device)````language` accepts Chinese, English, and Japanese as ISO codes, full English names, or native names. For batch inference, training, `torch.compile`, benchmarks, and the full model description, see the [Transformers documentation](https://github.com/huggingface/transformers/blob/53813aeb137e1bdc343bb62b60306ee346c2040b/docs/source/en/model_doc/fun_asr_nano.md) and the [original model card](https://huggingface.co/FunAudioLLM/Fun-ASR-Nano-2512).
12345678910111213146 unmodified lines212223242526272829303132333435363738394057 unmodified lines9899100101102{"adaptor_config": {"activation_dropout": 0.0,"attention_dropout": 0.0,"hidden_act": "relu","hidden_dropout": 0.0,"hidden_size": 1024,"intermediate_size": 256,"model_type": "","num_attention_heads": 8,"num_hidden_layers": 2},"architectures": ["FunAsrNanoForConditionalGeneration"6 unmodified lines"hidden_dropout": 0.1,"hidden_size": 512,"intermediate_size": 2048,"max_position_embeddings": 2049,"model_type": "fun_asr_nano_encoder","num_attention_heads": 4,"num_hidden_layers": 50,"num_mel_bins": 80,"num_stacked_frames": 7,"num_timestamp_prediction_blocks": 20},"audio_token_id": 151646,"dtype": "bfloat16","initializer_range": 0.02,"model_type": "fun_asr_nano","projector_hidden_act": "relu","projector_hidden_size": 2048,"text_config": {"architectures": ["Qwen3ForCausalLM"57 unmodified lines"vocab_size": 151936},"tie_word_embeddings": true,"transformers_version": "5.16.0.dev0"}123456789101112131415166 unmodified lines2324252627282930313233343536373839404157 unmodified lines99100101102103{"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"6 unmodified lines"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"57 unmodified lines"vocab_size": 151936},"tie_word_embeddings": true,"transformers_version": "5.17.0.dev0"}
3 unmodified lines4567893 unmodified lines"eos_token_id": 151645,"output_attentions": false,"output_hidden_states": false,"transformers_version": "5.16.0.dev0","use_cache": true}3 unmodified lines4567893 unmodified lines"eos_token_id": 151645,"output_attentions": false,"output_hidden_states": false,"transformers_version": "5.17.0.dev0","use_cache": true}
123version https://git-lfs.github.com/spec/v1oid sha256:8cb92d6fa7c85d6981092bf1ea20369e52263f71a1dfe8259471c282bbbb9625size 1659779680123version https://git-lfs.github.com/spec/v1oid sha256:1bbb6dcc5d8b75084a399d48c4d4b0f3aa1d3f09f2616ae40ed2c4fba03d89c9size 1659773320
20 unmodified lines2122232425262720 unmodified lines"<|video_pad|>"],"is_local": true,"local_files_only": false,"model_max_length": 131072,"pad_token": "<|endoftext|>","padding": true,20 unmodified lines2122232425262720 unmodified lines"<|video_pad|>"],"is_local": true,"local_files_only": true,"model_max_length": 131072,"pad_token": "<|endoftext|>","padding": true,
README.md+2-2
config.json+8-7
generation_config.json+1-1
model.safetensors+2-2
tokenizer_config.json+1-1