mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-21 05:33:12 +00:00
Update personality.py
This commit is contained in:
parent
59ec63a55d
commit
a97d5e14d6
@ -513,7 +513,7 @@ Date: {{date}}
|
|||||||
self.bot_says = bot_says
|
self.bot_says = bot_says
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def generate_with_images(self, prompt, images, max_size, temperature = None, top_k = None, top_p=None, repeat_penalty=None, callback=None, debug=False, show_progress=False ):
|
def generate_with_images(self, prompt, images, max_size, temperature = None, top_k = None, top_p=None, repeat_penalty=None, repeat_last_n=None, callback=None, debug=False, show_progress=False ):
|
||||||
ASCIIColors.info("Text generation started: Warming up")
|
ASCIIColors.info("Text generation started: Warming up")
|
||||||
self.nb_received_tokens = 0
|
self.nb_received_tokens = 0
|
||||||
self.bot_says = ""
|
self.bot_says = ""
|
||||||
@ -529,6 +529,7 @@ Date: {{date}}
|
|||||||
top_k=self.model_top_k if top_k is None else top_k,
|
top_k=self.model_top_k if top_k is None else top_k,
|
||||||
top_p=self.model_top_p if top_p is None else top_p,
|
top_p=self.model_top_p if top_p is None else top_p,
|
||||||
repeat_penalty=self.model_repeat_penalty if repeat_penalty is None else repeat_penalty,
|
repeat_penalty=self.model_repeat_penalty if repeat_penalty is None else repeat_penalty,
|
||||||
|
repeat_last_n = self.model_repeat_last_n if repeat_last_n is None else repeat_last_n
|
||||||
).strip()
|
).strip()
|
||||||
return self.bot_says
|
return self.bot_says
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user