Model: Lazyload backends

This commit is contained in:
somebody
2023-03-13 20:29:29 -05:00
parent adc11fdbc9
commit b93c339145
5 changed files with 15 additions and 13 deletions

View File

@@ -156,6 +156,9 @@ class ModelCapabilities:
# Some models cannot be hosted over the API, namely the API itself.
api_host: bool = True
# Some models need to warm up the TPU before use
uses_tpu: bool = False
class InferenceModel:
"""Root class for all models."""