Skip to content

Commit

Permalink
add docker litongjava/whisper-cpp-server:1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
litongjava committed Mar 10, 2024
1 parent b9a1617 commit 7eefe53
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 3 deletions.
2 changes: 1 addition & 1 deletion distribute/docker/pure/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ COPY ggml-metal.metal /app/
COPY cmake-build-release/simplest /app/
COPY cmake-build-release/whisper_http_server_base_httplib /app/
COPY cmake-build-release/whisper_server_base_on_uwebsockets /app/
copy cmake-build-release/libwhisper.so /app
COPY cmake-build-release/libwhisper.so /lib
59 changes: 57 additions & 2 deletions distribute/docker/pure/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,60 @@ docker build -t litongjava/whisper-cpp-server:1.0.0 -f distribute/docker/pure/Do

test
```
docker run --rm -v models:/models -v jfk.wav:/jfk.wav litongjava/whisper-cpp-server:1.0.0 simplest -m /models/ggml-base.en.bin /jfk.wav
```
docker run --rm \
-v "$(pwd)/models":/models \
-v "$(pwd)/jfk.wav":/jfk.wav \
litongjava/whisper-cpp-server:1.0.0 /app/simplest -m /models/ggml-base.en.bin /jfk.wav
```
log
```
root@ping-Inspiron-3458:~/code/whisper-cpp-server# docker run --rm \
> -v "$(pwd)/models":/models \
> -v "$(pwd)/jfk.wav":/jfk.wav \
> litongjava/whisper-cpp-server:1.0.0 /app/simplest -m /models/ggml-base.en.bin /jfk.wav
whisper_init_from_file_with_params_no_state: loading model from '/models/ggml-base.en.bin'
whisper_model_load: loading model
whisper_model_load: n_vocab = 51864
whisper_model_load: n_audio_ctx = 1500
whisper_model_load: n_audio_state = 512
whisper_model_load: n_audio_head = 8
whisper_model_load: n_audio_layer = 6
whisper_model_load: n_text_ctx = 448
whisper_model_load: n_text_state = 512
whisper_model_load: n_text_head = 8
whisper_model_load: n_text_layer = 6
whisper_model_load: n_mels = 80
whisper_model_load: ftype = 1
whisper_model_load: qntvr = 0
whisper_model_load: type = 2 (base)
whisper_model_load: adding 1607 extra tokens
whisper_model_load: n_langs = 99
whisper_model_load: CPU total size = 147.37 MB
whisper_model_load: model size = 147.37 MB
whisper_init_state: kv self size = 16.52 MB
whisper_init_state: kv cross size = 18.43 MB
whisper_init_state: compute buffer (conv) = 16.39 MB
whisper_init_state: compute buffer (encode) = 132.07 MB
whisper_init_state: compute buffer (cross) = 4.78 MB
whisper_init_state: compute buffer (decode) = 96.48 MB
system_info: n_threads = 4 / 4 | AVX = 1 | AVX2 = 1 | AVX512 = 0 | FMA = 1 | NEON = 0 | ARM_FMA = 0 | METAL = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 0 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | CUDA = 0 | COREML = 0 | OPENVINO = 0 |
main: WARNING: model is not multilingual, ignoring language and translation options
main: processing '/jfk.wav' (176000 samples, 11.0 sec), 4 threads, 1 processors, lang = en, task = transcribe, timestamps = 1 ...
whisper_print_timings: load time = 169.51 ms
whisper_print_timings: fallbacks = 0 p / 0 h
whisper_print_timings: mel time = 59.75 ms
whisper_print_timings: sample time = 25.05 ms / 1 runs ( 25.05 ms per run)
whisper_print_timings: encode time = 6384.86 ms / 1 runs ( 6384.86 ms per run)
whisper_print_timings: decode time = 236.91 ms / 27 runs ( 8.77 ms per run)
whisper_print_timings: batchd time = 0.00 ms / 1 runs ( 0.00 ms per run)
whisper_print_timings: prompt time = 0.00 ms / 1 runs ( 0.00 ms per run)
whisper_print_timings: total time = 6885.22 ms
start
[00:00:00.000 --> 00:00:11.000] And so my fellow Americans, ask not what your country can do for you, ask what you can do for your country.
```

0 comments on commit 7eefe53

Please sign in to comment.