FerrisMind commited on
Commit
7c726de
·
verified ·
1 Parent(s): 56caf86

Upload 24 files

Browse files
.gitattributes CHANGED
@@ -33,3 +33,23 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ model-tiny-q80.gguf filter=lfs diff=lfs merge=lfs -text
37
+ whisper-tiny-q2_k.gguf filter=lfs diff=lfs merge=lfs -text
38
+ whisper-tiny-q3_k.gguf filter=lfs diff=lfs merge=lfs -text
39
+ whisper-tiny-q4_0.gguf filter=lfs diff=lfs merge=lfs -text
40
+ whisper-tiny-q4_1.gguf filter=lfs diff=lfs merge=lfs -text
41
+ whisper-tiny-q4_k.gguf filter=lfs diff=lfs merge=lfs -text
42
+ whisper-tiny-q5_0.gguf filter=lfs diff=lfs merge=lfs -text
43
+ whisper-tiny-q5_1.gguf filter=lfs diff=lfs merge=lfs -text
44
+ whisper-tiny-q5_k.gguf filter=lfs diff=lfs merge=lfs -text
45
+ whisper-tiny-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
46
+ whisper.cpp/whisper-tiny-q2_k.gguf filter=lfs diff=lfs merge=lfs -text
47
+ whisper.cpp/whisper-tiny-q3_k.gguf filter=lfs diff=lfs merge=lfs -text
48
+ whisper.cpp/whisper-tiny-q4_0.gguf filter=lfs diff=lfs merge=lfs -text
49
+ whisper.cpp/whisper-tiny-q4_1.gguf filter=lfs diff=lfs merge=lfs -text
50
+ whisper.cpp/whisper-tiny-q4_k.gguf filter=lfs diff=lfs merge=lfs -text
51
+ whisper.cpp/whisper-tiny-q5_0.gguf filter=lfs diff=lfs merge=lfs -text
52
+ whisper.cpp/whisper-tiny-q5_1.gguf filter=lfs diff=lfs merge=lfs -text
53
+ whisper.cpp/whisper-tiny-q5_k.gguf filter=lfs diff=lfs merge=lfs -text
54
+ whisper.cpp/whisper-tiny-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
55
+ whisper.cpp/whisper-tiny-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2022 OpenAI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - multilingual
5
+ - en
6
+ - ru
7
+ tags:
8
+ - whisper
9
+ - gguf
10
+ - quantized
11
+ - speech-recognition
12
+ - rust
13
+ base_model:
14
+ - openai/whisper-tiny
15
+ ---
16
+
17
+ # WHISPER-TINY - GGUF Quantized Models
18
+
19
+ Quantized versions of [openai/whisper-tiny](https://huggingface.co/openai/whisper-tiny) in GGUF format for use with [whisper.cpp](https://github.com/ggerganov/whisper.cpp).
20
+
21
+ ## Available Formats
22
+
23
+ | Format | Quality | Use Case |
24
+ |--------| ---------|----------|
25
+ | q2_k | Smallest | Extreme compression |
26
+ | q3_k | Small | Mobile devices |
27
+ | q4_0 | Good | Legacy compatibility |
28
+ | q4_k | Good | **Recommended for production** |
29
+ | q4_1 | Good+ | Legacy with bias |
30
+ | q5_0 | Very Good | Legacy compatibility |
31
+ | q5_k | Very Good | High quality |
32
+ | q5_1 | Very Good+ | Legacy with bias |
33
+ | q6_k | Excellent | Near-lossless |
34
+ | q8_0 | Excellent | Minimal loss, benchmarking |
35
+
36
+ ## Usage
37
+
38
+ ### With whisper.cpp
39
+
40
+ ```bash
41
+ # Download model
42
+ wget https://huggingface.co/oxide-lab/whisper-tiny-gguf/resolve/main/whisper-tiny-q4_k.gguf
43
+
44
+ # Run inference
45
+ ./whisper.cpp/build/bin/whisper-cli --model whisper-tiny-q4_k.gguf --file audio.wav
46
+ ```
47
+
48
+ ### Recommended Format
49
+
50
+ For most use cases, we recommend **q4_k** format as it provides the best balance of:
51
+ - Size reduction (~65% smaller)
52
+ - Quality (minimal degradation)
53
+ - Speed (faster inference than higher quantizations)
54
+
55
+ ## Quantization Details
56
+
57
+ - **Source Model**: [openai/whisper-tiny](https://huggingface.co/openai/whisper-tiny)
58
+ - **Quantization Tool**: [whisper.cpp](https://github.com/ggerganov/whisper.cpp)
59
+ - **Format**: GGUF (GGML Universal Format)
60
+ - **Total Files**: 10
61
+
62
+ ## License
63
+
64
+ Same as the original Whisper model (MIT License).
65
+
66
+ ## Citation
67
+
68
+ ```bibtex
69
+ @misc{radford2022whisper,
70
+ doi = {10.48550/ARXIV.2212.04356},
71
+ url = {https://arxiv.org/abs/2212.04356},
72
+ author = {Radford, Alec and Kim, Jong Wook and Xu, Tao and Brockman, Greg and McLeavey, Christine and Sutskever, Ilya},
73
+ title = {Robust Speech Recognition via Large-Scale Weak Supervision},
74
+ publisher = {arXiv},
75
+ year = {2022},
76
+ copyright = {arXiv.org perpetual, non-exclusive license}
77
+ }
78
+ ```
config-tiny.json ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "openai/whisper-tiny",
3
+ "activation_dropout": 0.0,
4
+ "activation_function": "gelu",
5
+ "architectures": [
6
+ "WhisperForConditionalGeneration"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "begin_suppress_tokens": [
10
+ 220,
11
+ 50257
12
+ ],
13
+ "bos_token_id": 50257,
14
+ "d_model": 384,
15
+ "decoder_attention_heads": 6,
16
+ "decoder_ffn_dim": 1536,
17
+ "decoder_layerdrop": 0.0,
18
+ "decoder_layers": 4,
19
+ "decoder_start_token_id": 50258,
20
+ "dropout": 0.0,
21
+ "encoder_attention_heads": 6,
22
+ "encoder_ffn_dim": 1536,
23
+ "encoder_layerdrop": 0.0,
24
+ "encoder_layers": 4,
25
+ "eos_token_id": 50257,
26
+ "forced_decoder_ids": [
27
+ [
28
+ 1,
29
+ 50259
30
+ ],
31
+ [
32
+ 2,
33
+ 50359
34
+ ],
35
+ [
36
+ 3,
37
+ 50363
38
+ ]
39
+ ],
40
+ "init_std": 0.02,
41
+ "is_encoder_decoder": true,
42
+ "max_length": 448,
43
+ "max_source_positions": 1500,
44
+ "max_target_positions": 448,
45
+ "model_type": "whisper",
46
+ "num_hidden_layers": 4,
47
+ "num_mel_bins": 80,
48
+ "pad_token_id": 50257,
49
+ "scale_embedding": false,
50
+ "suppress_tokens": [
51
+ 1,
52
+ 2,
53
+ 7,
54
+ 8,
55
+ 9,
56
+ 10,
57
+ 14,
58
+ 25,
59
+ 26,
60
+ 27,
61
+ 28,
62
+ 29,
63
+ 31,
64
+ 58,
65
+ 59,
66
+ 60,
67
+ 61,
68
+ 62,
69
+ 63,
70
+ 90,
71
+ 91,
72
+ 92,
73
+ 93,
74
+ 359,
75
+ 503,
76
+ 522,
77
+ 542,
78
+ 873,
79
+ 893,
80
+ 902,
81
+ 918,
82
+ 922,
83
+ 931,
84
+ 1350,
85
+ 1853,
86
+ 1982,
87
+ 2460,
88
+ 2627,
89
+ 3246,
90
+ 3253,
91
+ 3268,
92
+ 3536,
93
+ 3846,
94
+ 3961,
95
+ 4183,
96
+ 4667,
97
+ 6585,
98
+ 6647,
99
+ 7273,
100
+ 9061,
101
+ 9383,
102
+ 10428,
103
+ 10929,
104
+ 11938,
105
+ 12033,
106
+ 12331,
107
+ 12562,
108
+ 13793,
109
+ 14157,
110
+ 14635,
111
+ 15265,
112
+ 15618,
113
+ 16553,
114
+ 16604,
115
+ 18362,
116
+ 18956,
117
+ 20075,
118
+ 21675,
119
+ 22520,
120
+ 26130,
121
+ 26161,
122
+ 26435,
123
+ 28279,
124
+ 29464,
125
+ 31650,
126
+ 32302,
127
+ 32470,
128
+ 36865,
129
+ 42863,
130
+ 47425,
131
+ 49870,
132
+ 50254,
133
+ 50258,
134
+ 50358,
135
+ 50359,
136
+ 50360,
137
+ 50361,
138
+ 50362
139
+ ],
140
+ "torch_dtype": "float32",
141
+ "transformers_version": "4.27.0.dev0",
142
+ "use_cache": true,
143
+ "vocab_size": 51865
144
+ }
model-tiny-q80.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52deb0fdcbb9c36b4d570e35f5a65a5ad4275ccdb85e7a06e81a8b05b3743c9d
3
+ size 40700160
tokenizer-tiny.json ADDED
The diff for this file is too large to render. See raw diff
 
whisper-tiny-q2_k.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dabe65571152e9a703178929b75971abca2cd0ca5b35eb3b6e4ea86c3b20f3f4
3
+ size 75598912
whisper-tiny-q3_k.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dabe65571152e9a703178929b75971abca2cd0ca5b35eb3b6e4ea86c3b20f3f4
3
+ size 75598912
whisper-tiny-q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2be6457e86d2c917d0c0eecef8e041ed03c60f64fc5744e6720adfb5141c21b
3
+ size 22087104
whisper-tiny-q4_1.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d40a062a67abeb53784edd326610035089164c9c261cbcfa628e017a07e7a3a
3
+ size 24414464
whisper-tiny-q4_k.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dabe65571152e9a703178929b75971abca2cd0ca5b35eb3b6e4ea86c3b20f3f4
3
+ size 75598912
whisper-tiny-q5_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dabe65571152e9a703178929b75971abca2cd0ca5b35eb3b6e4ea86c3b20f3f4
3
+ size 75598912
whisper-tiny-q5_1.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dabe65571152e9a703178929b75971abca2cd0ca5b35eb3b6e4ea86c3b20f3f4
3
+ size 75598912
whisper-tiny-q5_k.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dabe65571152e9a703178929b75971abca2cd0ca5b35eb3b6e4ea86c3b20f3f4
3
+ size 75598912
whisper-tiny-q6_k.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dabe65571152e9a703178929b75971abca2cd0ca5b35eb3b6e4ea86c3b20f3f4
3
+ size 75598912
whisper.cpp/whisper-tiny-q2_k.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:306146b691b0aed770a08d44d99f3d5320ad0b0f386b896328f0a2b3c5436a09
3
+ size 16783264
whisper.cpp/whisper-tiny-q3_k.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:585ec6656bd1a37921ad047e0b6372c595d01189965db8accde242bcaf3e50ef
3
+ size 20483311
whisper.cpp/whisper-tiny-q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a0333de3d8437253e855e877339ac3b8880ec220210e69ab02f6499271ccd7a
3
+ size 25321834
whisper.cpp/whisper-tiny-q4_1.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:327845a083361538f6d8333f868f2a4ec87101e254dfe06d541e9db63500f7b0
3
+ size 27598786
whisper.cpp/whisper-tiny-q4_k.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9833b6afd4ea3b2fdf1e2d5caafd325dbbf96f0a2956c2dd39a3868ba89bc3e7
3
+ size 25321834
whisper.cpp/whisper-tiny-q5_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d79bae8e252de7fbbf1e004893db0135ca8a83736840a7fdeb529f8323c4a1a
3
+ size 29875738
whisper.cpp/whisper-tiny-q5_1.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2fc2aa8e079b64dcab60dfd0d7bea8b9e18235ebc5137cb5ba0280adf6473b06
3
+ size 32152690
whisper.cpp/whisper-tiny-q5_k.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b685dcbfba42b1cce1ca77d32a7960b89f5414d5c879f7d9ee513473d26a8183
3
+ size 29875738
whisper.cpp/whisper-tiny-q6_k.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc8d1ee54e496709dc20ebc3144260cffb59b01102f765e7297e54951da07350
3
+ size 34714261
whisper.cpp/whisper-tiny-q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ade048c9d3692b411572a9a8ad615766168e62fb1d4c234973825a377c71984
3
+ size 43537450