Wrong logit_bias parsed type
This commit is contained in:
parent
1895c11033
commit
9797394c81
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ def gpt_params_parse(argv = None):
|
||||||
if (logit_bias_str != None):
|
if (logit_bias_str != None):
|
||||||
for i in logit_bias_str:
|
for i in logit_bias_str:
|
||||||
if (m := re.match(r"(\d+)([-+]\d+)", i)):
|
if (m := re.match(r"(\d+)([-+]\d+)", i)):
|
||||||
params.logit_bias[int(m.group(1))] = int(m.group(2))
|
params.logit_bias[int(m.group(1))] = float(m.group(2))
|
||||||
|
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue