mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-26 00:17:41 +01:00
Fix budget calculation when using soft prompt
This commit is contained in:
parent
bf4e7742ac
commit
206c01008e
@ -1190,9 +1190,6 @@ def calcsubmit(txt):
|
||||
else:
|
||||
budget = vars.max_length - lnsp - lnmem - lnanote - lnwi - vars.genamt
|
||||
|
||||
if(vars.sp is not None):
|
||||
budget -= vars.sp.shape[0]
|
||||
|
||||
if(actionlen == 0):
|
||||
# First/Prompt action
|
||||
subtxt = vars.memory + winfo + anotetxt + vars.prompt
|
||||
|
Loading…
x
Reference in New Issue
Block a user