mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Add an assertion for the value of already_generated
This commit is contained in:
@ -1440,6 +1440,7 @@ def generate(txt, min, max):
|
|||||||
)
|
)
|
||||||
already_generated += len(genout[0]) - len(gen_in[0])
|
already_generated += len(genout[0]) - len(gen_in[0])
|
||||||
if(not model.kai_scanner.any_new_entries):
|
if(not model.kai_scanner.any_new_entries):
|
||||||
|
assert already_generated == max - min + 1
|
||||||
break
|
break
|
||||||
txt = tokenizer.decode(genout[0, -already_generated:])
|
txt = tokenizer.decode(genout[0, -already_generated:])
|
||||||
winfo, mem, anotetxt, _found_entries = calcsubmitbudgetheader(txt, force_use_txt=True)
|
winfo, mem, anotetxt, _found_entries = calcsubmitbudgetheader(txt, force_use_txt=True)
|
||||||
|
Reference in New Issue
Block a user