Machine Learning container running in development mode

I just upgraded from 1.46.1 to 1.48.1 and it all came up fine. I noticed that the machine learning container starts up with the following message in stderr

Downloading (…)rocessor_config.json:   0%|          | 0.00/275 [00:00<?, ?B/s]
Downloading (…)rocessor_config.json: 100%|██████████| 275/275 [00:00<00:00, 189kB/s]
/root/.local/lib/python3.10/site-packages/transformers/models/yolos/feature_extraction_yolos.py:28: FutureWarning: The class YolosFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please use YolosImageProcessor instead.
  warnings.warn(
/root/.local/lib/python3.10/site-packages/transformers/models/yolos/image_processing_yolos.py:704: FutureWarning: The `max_size` parameter is deprecated and will be removed in v4.26. Please specify in `size['longest_edge'] instead`.
  warnings.warn(
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:3003
 * Running on http://172.26.64.38:3003
Press CTRL+C to quit


All I did was update the image tag and change the entrypoint from
entrypoint = ["/bin/sh", "./entrypoint.sh"]

to
entrypoint = ["python", "src/main.py"]


because it was saying there is no entrypoint.sh and this is similar to the reference docker compose file. This is running in Nomad but that shouldn't matter.
Was this page helpful?