Repository navigation
Replies: 5 comments
For sequential inference you'll not see improvement with more cores than you have already. Probably same in batched mode too. |
|
There are CPU benchmarks in the readme, you can transcribe the same file and see the difference |
|
Benchmarks are comparing CPU vs. GPU but not differences on CPU between more or less cores/threads and or different CPU clocking. |
|
I meant compare your cpu to the cpu number posted, it was benchmarked using i7 12700k |
|
More cores do not translate into a proportional speedup for a single transcription. To answer your follow-up about thread counts, you can measure this on your current machine without changing hardware: from time import perf_counter
from faster_whisper import WhisperModel
for threads in (1, 2, 4, 8):
model = WhisperModel("small", device="cpu", compute_type="int8",
cpu_threads=threads, num_workers=1)
# Warm-up is outside the measurement.
list(model.transcribe("benchmark.wav", beam_size=5)[0])
times = []
for _ in range(3):
start = perf_counter()
list(model.transcribe("benchmark.wav", beam_size=5)[0])
times.append(perf_counter() - start)
print(threads, sorted(times)[1])
del modelKeep the audio, model, beam size, compute type and power settings identical, and compare the median of warmed runs. Your 4770 has four physical cores; eight software threads may help, do little, or add overhead. The result is a measurement, not a universal upper limit. Also distinguish single-request latency from throughput across independent files. |
Uh oh!
There was an error while loading. Please reload this page.
I'm running faster-whisper on Intel 4770 (4 Core/8 threads). It's usable in general. Now I'm looking for a new system with more cores and threads, maybe AMD. To what extent would doubling the number of cores and threads accelerate the speed of speech transformation, for example? Are there any experiences or benchmarks? Is there an upper limit for cores or threads? (I don't want to use an external and expensive GPU not least because of power consumption.)
All reactions