Automatic Speech Recognition
Transformers
ONNX
Transformers.js
English
whisper
speech-recognition
encoder-decoder
webgpu
wasm
browser
rtx-5090
Instructions to use anmol-unitmole/streaming-speech-recognition-whisper-encoder-decoder-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anmol-unitmole/streaming-speech-recognition-whisper-encoder-decoder-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="anmol-unitmole/streaming-speech-recognition-whisper-encoder-decoder-model")# Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("anmol-unitmole/streaming-speech-recognition-whisper-encoder-decoder-model") model = AutoModelForSpeechSeq2Seq.from_pretrained("anmol-unitmole/streaming-speech-recognition-whisper-encoder-decoder-model", device_map="auto") - Transformers.js
How to use anmol-unitmole/streaming-speech-recognition-whisper-encoder-decoder-model with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('automatic-speech-recognition', 'anmol-unitmole/streaming-speech-recognition-whisper-encoder-decoder-model'); - Notebooks
- Google Colab
- Kaggle
File size: 1,765 Bytes
0b84ec2 | 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 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | {
"alignment_heads": [
[
1,
0
],
[
2,
0
],
[
2,
5
],
[
3,
0
],
[
3,
1
],
[
3,
2
],
[
3,
3
],
[
3,
4
]
],
"begin_suppress_tokens": [
220,
50256
],
"bos_token_id": 50257,
"decoder_start_token_id": 50257,
"eos_token_id": 50256,
"forced_decoder_ids": [
[
1,
50362
]
],
"is_multilingual": false,
"max_initial_timestamp_index": 50,
"max_length": 448,
"no_timestamps_token_id": 50362,
"pad_token_id": 50256,
"prev_sot_token_id": 50360,
"return_timestamps": false,
"suppress_tokens": [
1,
2,
7,
8,
9,
10,
14,
25,
26,
27,
28,
29,
31,
58,
59,
60,
61,
62,
63,
90,
91,
92,
93,
357,
366,
438,
532,
685,
705,
796,
930,
1058,
1220,
1267,
1279,
1303,
1343,
1377,
1391,
1635,
1782,
1875,
2162,
2361,
2488,
3467,
4008,
4211,
4600,
4808,
5299,
5855,
6329,
7203,
9609,
9959,
10563,
10786,
11420,
11709,
11907,
13163,
13697,
13700,
14808,
15306,
16410,
16791,
17992,
19203,
19510,
20724,
22305,
22935,
27007,
30109,
30420,
33409,
34949,
40283,
40493,
40549,
47282,
49146,
50257,
50357,
50358,
50359,
50360,
50361
],
"transformers_version": "4.57.6"
}
|