FeatureFuel
1

[Feature] ML: compile/warm models at startup, then release them (preload without pinning)

Source: immich-app/immich#33710 · opened by @mordilloSan
I have searched the existing feature requests, both open and closed, to make sure this is not a duplicate request. • Yes The feature An option for the machine-learning container to prepare every configured model at startup (download, and for MIGraphX/TensorRT/OpenVINO compile every shape) and then release them, instead of keeping them loaded. For example: • MACHINE_LEARNING_PRELOAD_MODE=warm (default keep): run the existing MACHINE_LEARNING_PRELOAD* logic, then unload so MACHINE_LEARNING_MODEL_TTL applies as usual; or • a one-shot entrypoint such as python -m immich_ml --preload-only that runs the preload and exits, for use as a compose init service. Why Today there are two choices, and with a compiled execution provider both have a cost: 1. PRELOAD keeps every model in memory forever. Combining it with a TTL does not free anything: idle_shutdown_task restarts the worker after the TTL, and the restart preloads every model again. (Preload does not set last_call…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests