keep the server in a valid state (#889)

This commit is contained in:
Awni Hannun
2024-07-15 18:35:36 -07:00
committed by GitHub
parent bfc1f2763b
commit f0c6c6e226

View File

@@ -108,6 +108,7 @@ class ModelProvider:
# Remove the old model if it exists.
self.model = None
self.tokenizer = None
self.model_key = None
# Building tokenizer_config
tokenizer_config = {