Automatic Speech Recognition
Transformers
Safetensors
fun_asr_nano
text-generation
speech-recognition
asr
end-to-end
streaming
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")# Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("FunAudioLLM/Fun-ASR-Nano-2512-hf", dtype="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,857 Bytes
1b829ba | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | {
"model_type": "fun_asr_nano",
"architectures": [
"FunAsrNanoForConditionalGeneration"
],
"audio_encoder_config": {
"model_type": "fun_asr_nano_encoder",
"input_size": 560,
"output_size": 512,
"attention_heads": 4,
"linear_units": 2048,
"num_blocks": 50,
"tp_blocks": 20,
"dropout_rate": 0.1,
"attention_dropout_rate": 0.0,
"kernel_size": 11,
"sanm_shift": 0,
"initializer_range": 0.02
},
"adaptor_config": {
"model_type": "fun_asr_nano_adaptor",
"downsample_rate": 1,
"encoder_dim": 512,
"llm_dim": 1024,
"ffn_dim": 2048,
"num_layers": 2,
"attention_heads": 8,
"dropout_rate": 0.0,
"use_low_frame_rate": true
},
"text_config": {
"architectures": [
"Qwen3ForCausalLM"
],
"attention_bias": false,
"attention_dropout": 0.0,
"bos_token_id": 151643,
"eos_token_id": 151645,
"head_dim": 128,
"hidden_act": "silu",
"hidden_size": 1024,
"initializer_range": 0.02,
"intermediate_size": 3072,
"max_position_embeddings": 40960,
"max_window_layers": 28,
"model_type": "qwen3",
"num_attention_heads": 16,
"num_hidden_layers": 28,
"num_key_value_heads": 8,
"rms_norm_eps": 1e-06,
"rope_scaling": null,
"rope_theta": 1000000,
"sliding_window": null,
"tie_word_embeddings": true,
"torch_dtype": "bfloat16",
"transformers_version": "4.51.0",
"use_cache": true,
"use_sliding_window": false,
"vocab_size": 151936
},
"ctc_config": {
"model_type": "fun_asr_nano_ctc",
"vocab_size": 60515,
"encoder_dim": 512,
"decoder_dim": 512,
"ffn_dim": 2048,
"num_layers": 5,
"downsample_rate": 1,
"blank_id": 60514,
"dropout_rate": 0.0
},
"audio_token_index": 151646,
"initializer_range": 0.02,
"torch_dtype": "bfloat16"
} |