mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Repetition penalty is now added to sampler list when loading from settings files
This commit is contained in:
10
aiserver.py
10
aiserver.py
@ -963,7 +963,10 @@ def loadmodelsettings():
|
|||||||
if("nobreakmodel" in js):
|
if("nobreakmodel" in js):
|
||||||
vars.nobreakmodel = js["nobreakmodel"]
|
vars.nobreakmodel = js["nobreakmodel"]
|
||||||
if("sampler_order" in js):
|
if("sampler_order" in js):
|
||||||
vars.sampler_order = js["sampler_order"]
|
sampler_order = vars.sampler_order
|
||||||
|
if(len(sampler_order) < 7):
|
||||||
|
sampler_order = [6] + sampler_order
|
||||||
|
vars.sampler_order = sampler_order
|
||||||
if("temp" in js):
|
if("temp" in js):
|
||||||
vars.temp = js["temp"]
|
vars.temp = js["temp"]
|
||||||
if("top_p" in js):
|
if("top_p" in js):
|
||||||
@ -1094,7 +1097,10 @@ def processsettings(js):
|
|||||||
if("andepth" in js):
|
if("andepth" in js):
|
||||||
vars.andepth = js["andepth"]
|
vars.andepth = js["andepth"]
|
||||||
if("sampler_order" in js):
|
if("sampler_order" in js):
|
||||||
vars.sampler_order = js["sampler_order"]
|
sampler_order = vars.sampler_order
|
||||||
|
if(len(sampler_order) < 7):
|
||||||
|
sampler_order = [6] + sampler_order
|
||||||
|
vars.sampler_order = sampler_order
|
||||||
if("temp" in js):
|
if("temp" in js):
|
||||||
vars.temp = js["temp"]
|
vars.temp = js["temp"]
|
||||||
if("top_p" in js):
|
if("top_p" in js):
|
||||||
|
Reference in New Issue
Block a user