Commit 132584e
committed
perf(windows): use 75% of CPU cores for whisper inference
On macOS Metal GPU handles compute so thread count is less critical.
On Windows (CPU-only), whisper defaults to 4 threads which wastes
available cores. Using 75% of available cores nearly halves inference
time on a 16-core system (7.6s -> 4.0s for 11s of audio).1 parent 60dbdfd commit 132584e
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
50 | 57 | | |
51 | 58 | | |
| 59 | + | |
52 | 60 | | |
53 | 61 | | |
54 | 62 | | |
| |||
0 commit comments