mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-18 20:27:58 +00:00
fix
This commit is contained in:
parent
593cb24671
commit
971b4e89cd
@ -2818,7 +2818,7 @@ class APScript(StateMachine):
|
||||
|
||||
if self.config.debug:
|
||||
nb_prompt_tokens = self.personality.model.tokenize(prompt)
|
||||
nb_tokens = min(self.config.ctx_size - nb_prompt_tokens, self.config.max_n_predict)
|
||||
nb_tokens = min(self.config.ctx_size - len(nb_prompt_tokens), self.config.max_n_predict)
|
||||
ASCIIColors.info(f"Prompt size : {nb_prompt_tokens}")
|
||||
ASCIIColors.info(f"Requested generation max size : {nb_tokens}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user