Skip to content

Commit d8d9c4d

Browse files
authored
Lint E711
1 parent e1e861e commit d8d9c4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/low_level_api/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def gpt_params_parse(argv=None):
377377
if params.lora_adapter:
378378
params.use_mmap = False
379379

380-
if logit_bias_str != None:
380+
if logit_bias_str is not None:
381381
for i in logit_bias_str:
382382
if m := re.match(r"(\d+)([-+]\d+)", i):
383383
params.logit_bias[int(m.group(1))] = float(m.group(2))

0 commit comments

Comments
 (0)