Auto unload on timeout - #506
Conversation
|
Nice work, careful timer handling. Two things:
|
Centralize request timeout accounting into ModelManager.hold(). Use it for generate_from_phonemes(). Remove MODEL_AUTO_UNLOAD_ENABLED. Replace it with MODEL_AUTO_UNLOAD_TIMEOUT_SECONDS=0 is the default/off state.
|
Thanks, good points. Implemented 1 and 2. validation with unit tests:
Validation with integrations tests:
ps: Thank you for building and maintaining such a great tool ! |
… config.py inline comment on allow_dev_unload
|
@remsky merged in master and fixed a small bug in the |
|
@brycehenson Nope, looks good thanks! Merged in now |
adds unload after a period of inactivity.
request for feeback
Would you prefer a different flag name ?
TODO