mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-06-29 06:01:28 +02:00
docs : add cmake "-j" flag in README.md (#3284)
Make cmake commands encounter multithreading in README.md file.
This commit is contained in:
parent
4daf7050ca
commit
897b071dc6
@ -80,7 +80,7 @@ Now build the [whisper-cli](examples/cli) example and transcribe an audio file l
|
|||||||
```bash
|
```bash
|
||||||
# build the project
|
# build the project
|
||||||
cmake -B build
|
cmake -B build
|
||||||
cmake --build build --config Release
|
cmake --build build -j --config Release
|
||||||
|
|
||||||
# transcribe an audio file
|
# transcribe an audio file
|
||||||
./build/bin/whisper-cli -f samples/jfk.wav
|
./build/bin/whisper-cli -f samples/jfk.wav
|
||||||
@ -149,7 +149,7 @@ standard cmake setup with:
|
|||||||
```bash
|
```bash
|
||||||
# build with GGML_BLAS defined
|
# build with GGML_BLAS defined
|
||||||
cmake -B build -DGGML_BLAS=1
|
cmake -B build -DGGML_BLAS=1
|
||||||
cmake --build build --config Release
|
cmake --build build -j --config Release
|
||||||
./build/bin/whisper-cli [ .. etc .. ]
|
./build/bin/whisper-cli [ .. etc .. ]
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -163,7 +163,7 @@ Here are the steps for creating and using a quantized model:
|
|||||||
```bash
|
```bash
|
||||||
# quantize a model with Q5_0 method
|
# quantize a model with Q5_0 method
|
||||||
cmake -B build
|
cmake -B build
|
||||||
cmake --build build --config Release
|
cmake --build build -j --config Release
|
||||||
./build/bin/quantize models/ggml-base.en.bin models/ggml-base.en-q5_0.bin q5_0
|
./build/bin/quantize models/ggml-base.en.bin models/ggml-base.en-q5_0.bin q5_0
|
||||||
|
|
||||||
# run the examples as usual, specifying the quantized model file
|
# run the examples as usual, specifying the quantized model file
|
||||||
@ -489,7 +489,7 @@ You will need to have [sdl2](https://wiki.libsdl.org/SDL2/Installation) installe
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cmake -B build -DWHISPER_SDL2=ON
|
cmake -B build -DWHISPER_SDL2=ON
|
||||||
cmake --build build --config Release
|
cmake --build build -j --config Release
|
||||||
./build/bin/whisper-stream -m ./models/ggml-base.en.bin -t 8 --step 500 --length 5000
|
./build/bin/whisper-stream -m ./models/ggml-base.en.bin -t 8 --step 500 --length 5000
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user