Compare commits

..
+1 -9
View File
@@ -235,10 +235,6 @@ class Model:
)
],
max_new_tokens=1,
# The KV cache is deliberately left enabled here so we can
# catch dtype errors related to the cache, which we will need
# for generating responses.
# use_cache=False,
)
except Exception as error:
self.model = None
@@ -859,11 +855,7 @@ class Model:
)
)
self.generate(
prompts,
max_new_tokens=1,
use_cache=False,
)
self.generate(prompts, max_new_tokens=1)
for hook_handle in hook_handles:
hook_handle.remove()