mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-19 20:57:58 +00:00
Update tasks.py
This commit is contained in:
parent
35b239866a
commit
59650e853d
@ -154,7 +154,7 @@ class TasksLibrary:
|
||||
prompt = pr.build(placeholders,
|
||||
self.lollms.model.tokenize,
|
||||
self.lollms.model.detokenize,
|
||||
self.lollms.model.config.ctx_size - max_generation_size,
|
||||
(self.lollms.model.config.ctx_size - max_generation_size) if max_generation_size else (self.lollms.model.config.ctx_size - 1024),
|
||||
sacrifice
|
||||
)
|
||||
# TODO : add show progress
|
||||
|
Loading…
Reference in New Issue
Block a user