Update README
This commit is contained in:
@@ -61,6 +61,18 @@ python3 run_server.py --port 9090 \
|
|||||||
--omp_num_threads 4
|
--omp_num_threads 4
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Single model mode
|
||||||
|
By default, the server will instantiate a new whisper model for every client connection. I.e. for 4 concurrent connections, you need to have (V)RAM for 4x the model. Also, the connection will have to wait until the model is loaded, which might take a few seconds.
|
||||||
|
|
||||||
|
If you use a TensorRT or a custom faster_whisper model, you also set the server to instantiate the model only once and use the single on for all client connections, using the `--single-model` or `-sm` option:
|
||||||
|
```bash
|
||||||
|
python3 run_server.py -p 9090 \
|
||||||
|
-b tensorrt \
|
||||||
|
-trt /home/TensorRT-LLM/examples/whisper/whisper_large_v3 \
|
||||||
|
-m \
|
||||||
|
--single_model
|
||||||
|
```
|
||||||
|
|
||||||
### Running the Client
|
### Running the Client
|
||||||
- Initializing the client with below parameters:
|
- Initializing the client with below parameters:
|
||||||
- `lang`: Language of the input audio, applicable only if using a multilingual model.
|
- `lang`: Language of the input audio, applicable only if using a multilingual model.
|
||||||
|
|||||||
Reference in New Issue
Block a user