Commit 4e5921f
committed
run uwsgi in --lazy-apps mode to avoid SentenceTransformer warning
> huggingface/tokenizers: The current process just got forked, after
> parallelism has already been used. Disabling parallelism to avoid deadlocks
This mode instructs uWSGI to load the application one time per worker,
and will therefore prevent forking a process after SentenceTransformer
has been initialized.
See https://uwsgi-docs.readthedocs.io/en/latest/articles/TheArtOfGracefulReloading.html#preforking-vs-lazy-apps-vs-lazy1 parent 257adbe commit 4e5921f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
0 commit comments