ggerganov commited on
Commit
43e9712
·
1 Parent(s): fb12dac

Update README.md

Browse files
Files changed (1) hide show
  1. examples/bench/README.md +46 -1
examples/bench/README.md CHANGED
@@ -1,3 +1,48 @@
1
  # bench
2
 
3
- TODO
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # bench
2
 
3
+ A very basic tool for benchmarking the inference performance on your device. The tool simply runs the Encoder part of the transformer on some random audio data and records the execution time. This way we can have an objective comparison of the performance of the model for various setups.
4
+
5
+ Benchmark results are tracked in the following Github issue: https://github.com/ggerganov/whisper.cpp/issues/89
6
+
7
+ ```
8
+ $ ./bench -m ./models/ggml-small.en.bin -t 4
9
+
10
+ whisper_model_load: loading model from './models/ggml-small.en.bin'
11
+ whisper_model_load: n_vocab = 51864
12
+ whisper_model_load: n_audio_ctx = 1500
13
+ whisper_model_load: n_audio_state = 768
14
+ whisper_model_load: n_audio_head = 12
15
+ whisper_model_load: n_audio_layer = 12
16
+ whisper_model_load: n_text_ctx = 448
17
+ whisper_model_load: n_text_state = 768
18
+ whisper_model_load: n_text_head = 12
19
+ whisper_model_load: n_text_layer = 12
20
+ whisper_model_load: n_mels = 80
21
+ whisper_model_load: f16 = 1
22
+ whisper_model_load: type = 3
23
+ whisper_model_load: mem_required = 1048.00 MB
24
+ whisper_model_load: adding 1607 extra tokens
25
+ whisper_model_load: ggml ctx size = 533.05 MB
26
+ whisper_model_load: memory size = 68.48 MB
27
+ whisper_model_load: model size = 464.44 MB
28
+
29
+ whisper_print_timings: load time = 240.82 ms
30
+ whisper_print_timings: mel time = 0.00 ms
31
+ whisper_print_timings: sample time = 0.00 ms
32
+ whisper_print_timings: encode time = 1062.21 ms / 88.52 ms per layer
33
+ whisper_print_timings: decode time = 0.00 ms / 0.00 ms per layer
34
+ whisper_print_timings: total time = 1303.04 ms
35
+
36
+ system_info: n_threads = 4 | AVX2 = 0 | AVX512 = 0 | NEON = 1 | FP16_VA = 1 | WASM_SIMD = 0 | BLAS = 1 |
37
+
38
+ If you wish, you can submit these results here:
39
+
40
+ https://github.com/ggerganov/whisper.cpp/issues/89
41
+
42
+ Please include the following information:
43
+
44
+ - CPU model
45
+ - Operating system
46
+ - Compiler
47
+
48
+ ```