Skip to content

Commit 2993c43

Browse files
authored
Merge pull request #142 from domdomegg/large-v3-turbo
Add large-v3-turbo support
2 parents edeb1dd + a5b77a8 commit 2993c43

File tree

4 files changed

+18
-13
lines changed

4 files changed

+18
-13
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ const MODELS_LIST = [
100100
'medium.en',
101101
'large-v1',
102102
'large',
103+
'large-v3-turbo',
103104
]
104105
```
105106

cpp/whisper.cpp

src/constants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const MODELS_LIST = [
99
'medium.en',
1010
'large-v1',
1111
'large',
12+
'large-v3-turbo',
1213
]
1314

1415
export const MODELS = [
@@ -22,6 +23,7 @@ export const MODELS = [
2223
'ggml-medium.bin',
2324
'ggml-large-v1.bin',
2425
'ggml-large.bin',
26+
'ggml-large-v3-turbo.bin',
2527
]
2628

2729
export const MODEL_OBJECT = {
@@ -35,6 +37,7 @@ export const MODEL_OBJECT = {
3537
'medium.en': 'ggml-medium.en.bin',
3638
'large-v1': 'ggml-large-v1.bin',
3739
large: 'ggml-large.bin',
40+
'large-v3-turbo': 'ggml-large-v3-turbo.bin',
3841
}
3942

4043
export const DEFAULT_MODEL = 'tiny.en'

src/downloadModel.ts

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,19 @@ export default async function downloadModel(logger = console) {
6767
}
6868

6969
logger.log(`
70-
| Model | Disk | RAM |
71-
|-----------|--------|---------|
72-
| tiny | 75 MB | ~390 MB |
73-
| tiny.en | 75 MB | ~390 MB |
74-
| base | 142 MB | ~500 MB |
75-
| base.en | 142 MB | ~500 MB |
76-
| small | 466 MB | ~1.0 GB |
77-
| small.en | 466 MB | ~1.0 GB |
78-
| medium | 1.5 GB | ~2.6 GB |
79-
| medium.en | 1.5 GB | ~2.6 GB |
80-
| large-v1 | 2.9 GB | ~4.7 GB |
81-
| large | 2.9 GB | ~4.7 GB |
70+
| Model | Disk | RAM |
71+
|----------------|--------|---------|
72+
| tiny | 75 MB | ~390 MB |
73+
| tiny.en | 75 MB | ~390 MB |
74+
| base | 142 MB | ~500 MB |
75+
| base.en | 142 MB | ~500 MB |
76+
| small | 466 MB | ~1.0 GB |
77+
| small.en | 466 MB | ~1.0 GB |
78+
| medium | 1.5 GB | ~2.6 GB |
79+
| medium.en | 1.5 GB | ~2.6 GB |
80+
| large-v1 | 2.9 GB | ~4.7 GB |
81+
| large | 2.9 GB | ~4.7 GB |
82+
| large-v3-turbo | 1.5 GB | ~2.6 GB |
8283
`)
8384

8485
if (!shell.which('./download-ggml-model.sh')) {

0 commit comments

Comments
 (0)