mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04: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.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):
|
||||||
|
Loading…
Reference in New Issue
Block a user