Skip to content

Commit aa8342b

Browse files
[doc] some warnings
--reload heavily slows down the inference NAF2005 only for now (we need to have both libs.yaml eventually)
1 parent 49f5f5d commit aa8342b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ uv sync
1919
uv run pre-commit install
2020
uv run -m nltk.downloader stopwords
2121
cd src
22-
uv run uvicorn api.main:app --reload --host 0.0.0.0 --port 5000
22+
uv run uvicorn api.main:app --host 0.0.0.0 --port 5000
2323
```
2424

25+
⚠️ The `--reload` flag in the last command significantly slows down the forward pass of the model, as it introduces multiprocessing, monitoring overhead, and potential thread contention — all of which degrade performance, especially for CPU-bound inference.
26+
27+
🏄‍♂️ For now, the API should serve a model trained on the 2025 version of the nomenclature. For the 2008 version, it needs to be adapted in a future release.
28+
2529
## License
2630

2731
This project is under the [Apache license](https://github.com/InseeFrLab/codif-ape-train/blob/main/LICENSE) to encourage collaboration and free use.

0 commit comments

Comments
 (0)