Automatic Speech Recognition
Transformers
Safetensors
jais_asr
text-generation
jais
ifm
arabic
arabic-dialects
speech-to-text
code-switching
diacritization
language-identification
open-weights
custom_code
Instructions to use IFM/Jais-ASR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IFM/Jais-ASR with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="IFM/Jais-ASR", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("IFM/Jais-ASR", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 2,991 Bytes
1323995 | 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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | {
"architectures": [
"JaisASRForConditionalGeneration"
],
"audio_config": {
"activation_dropout": 0,
"activation_function": "gelu",
"attention_dropout": 0,
"conv_chunksize": 500,
"d_model": 1280,
"downsample_hidden_size": 480,
"dropout": 0,
"dtype": "bfloat16",
"encoder_attention_heads": 20,
"encoder_ffn_dim": 5120,
"encoder_layers": 32,
"initializer_range": 0.02,
"max_source_positions": 1500,
"model_type": "qwen3_omni_moe_audio_encoder",
"n_window": 50,
"n_window_infer": 800,
"num_mel_bins": 128,
"output_dim": 2048,
"scale_embedding": false,
"tie_word_embeddings": true,
"torch_dtype": "bfloat16"
},
"audio_end_token_id": 250036,
"audio_start_token_id": 250035,
"audio_token_id": 250062,
"auto_map": {
"AutoConfig": "configuration_jais_asr.JaisASRConfig",
"AutoModel": "modeling_jais_asr.JaisASRModel",
"AutoModelForCausalLM": "modeling_jais_asr.JaisASRForConditionalGeneration",
"AutoProcessor": "processing_jais_asr.JaisASRProcessor"
},
"bos_token_id": 0,
"custom_pipelines": {
"automatic-speech-recognition": {
"impl": "pipeline_jais_asr.JaisASRTranscriptionPipeline",
"pt": [
"AutoModelForCausalLM"
],
"tf": []
}
},
"dtype": "bfloat16",
"eos_token_id": 1,
"model_type": "jais_asr",
"pad_token_id": 0,
"projector_hidden_act": "gelu",
"text_config": {
"attention_bias": false,
"attention_dropout": 0.0,
"bos_token_id": 0,
"dtype": "bfloat16",
"eos_token_id": 1,
"head_dim": 128,
"hidden_act": "silu",
"hidden_size": 2560,
"initializer_range": 0.02,
"intermediate_size": 10240,
"layernorm_num_groups": 2,
"max_position_embeddings": 524288,
"model_type": "k2_horizon",
"num_attention_heads": 32,
"num_hidden_layers": 36,
"num_key_value_heads": 8,
"pad_token_id": 0,
"query_key_norm": false,
"rms_norm_eps": 1e-06,
"rope_head_dim": 128,
"rope_parameters": {
"rope_theta": 10000000.0,
"rope_type": "default"
},
"rope_theta": 10000000.0,
"sliding_window": null,
"tie_word_embeddings": false,
"torch_dtype": "bfloat16",
"use_cache": true,
"use_sliding_window": false,
"vocab_size": 250624,
"num_experts": 0,
"num_experts_per_tok": 0,
"num_shared_experts": 0,
"mova_num_experts": 0,
"mova_num_experts_per_tok": 0,
"moe_intermediate_size": 0,
"attention_gate_func": null,
"mlp_only_layers": [
0,
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
]
},
"tie_word_embeddings": false,
"torch_dtype": "bfloat16",
"transformers_version": "5.5.4"
}
|