mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-07 17:22:04 +00:00
handle numbers outside int32 range with wrapping
This commit is contained in:
parent
9f9494cf3f
commit
a0ed446e61
1 changed files with 1 additions and 1 deletions
|
|
@ -1929,7 +1929,7 @@ def sd_generate(genparams):
|
|||
inputs.sample_steps = sample_steps
|
||||
inputs.width = width
|
||||
inputs.height = height
|
||||
inputs.seed = seed
|
||||
inputs.seed = ((seed + 2**31) % 2**32) - 2**31
|
||||
inputs.sample_method = sample_method.encode("UTF-8")
|
||||
inputs.scheduler = scheduler.encode("UTF-8")
|
||||
inputs.clip_skip = clip_skip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue