Update personality.py

This commit is contained in:
Saifeddine ALOUI 2024-07-29 16:38:37 +02:00 committed by GitHub
parent 01d70e636d
commit a8ae73d500
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -700,7 +700,7 @@ class AIPersonality:
prompt = pr.build(placeholders,
self.model.tokenize,
self.model.detokenize,
(self.lollms.model.config.ctx_size - max_generation_size) if max_generation_size is not None else (self.model.config.ctx_size - 1024),
(self.model.config.ctx_size - max_generation_size) if max_generation_size is not None else (self.model.config.ctx_size - 1024),
sacrifice
)
# TODO : add show progress