{"enabled": false} to switch keep warm off. The answer is the family or the model.
- Switching a model off stops its own keep warm.
- A model kept warm through its family and on its own is one warm model. It stays warm until neither asks for it.
Checks
To be sure you change what you last read, add a check. If it fails, nothing changes.- To a family, send
served: theadapterof the model it serves, ornullfor none. If the family has moved since, you get409 served_changed. - To a model, send
adapter: its ID as you saw it. If the number names another model, you get409 model_changed.
Limits
An account keeps at most its tier’skept_warm models warm at once. Tiers
gives the number for each tier, and effective_limits on /v1/account gives yours. Each model
counts once, whether its family, its own switch or both keep it warm.
Each size’s room for kept-warm models is shared by every account. Both limits are checked before
the model is loaded. Lowering a limit switches no model off.
A kept-warm family whose move would go over either limit waits, still kept warm, until there is
room (what a move needs).
