Fix a memory leak (credits for the fix: Ph0rk0z)

This commit is contained in:
oobabooga 2023-06-19 01:19:28 -03:00
parent def3b69002
commit 5f418f6171

View File

@ -48,7 +48,7 @@ class ExllamaModel:
result.model = model result.model = model
result.cache = cache result.cache = cache
result.tokenizer = tokenizer result.tokenizer = tokenizer
self.generator = generator result.generator = generator
return result, result return result, result
def generate_with_streaming(self, prompt, state): def generate_with_streaming(self, prompt, state):