mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Fix a memory leak (credits for the fix: Ph0rk0z)
This commit is contained in:
parent
def3b69002
commit
5f418f6171
@ -48,7 +48,7 @@ class ExllamaModel:
|
||||
result.model = model
|
||||
result.cache = cache
|
||||
result.tokenizer = tokenizer
|
||||
self.generator = generator
|
||||
result.generator = generator
|
||||
return result, result
|
||||
|
||||
def generate_with_streaming(self, prompt, state):
|
||||
|
Loading…
Reference in New Issue
Block a user