Closed owencking closed 1 month ago
As of SDK 1.2.3 (https://github.com/clamsproject/clams-python/pull/227), all containerized clams apps that use clams-python-xxx:1.2.3
(or newer) base images are using /cache
as the common caching directory. Hence you can mount a new empty directory as /cache
to download the models once and reuse across containers.
closing as a non-issue.
Because
As of v10, when running the CLI version of the app, the app downloads the whisper model every time it runs. For example, when running with the "tiny" model, this is the content of stderr:
For the larger models (especially, "large" and "medium") this is substantial network overhead.
We once talked about allowing the docker container to use a persistent directory where models can be cached. This seems like a good idea.
Another option might be just to ship the docker image with all of the models pre-loaded.
Done when
The app does not need to download a particular model more than once on a particular machine/environment.
Additional context
No response