Change min_p default to 0.0

This commit is contained in:
oobabooga 2023-11-03 08:25:22 -07:00
parent 4537853e2c
commit 7f9c1cbb30
3 changed files with 3 additions and 3 deletions

View file

@ -26,7 +26,7 @@ def build_parameters(body, chat=False):
'do_sample': bool(body.get('do_sample', True)),
'temperature': float(body.get('temperature', 0.5)),
'top_p': float(body.get('top_p', 1)),
'min_p': float(body.get('min_p', 1)),
'min_p': float(body.get('min_p', 0)),
'typical_p': float(body.get('typical_p', body.get('typical', 1))),
'epsilon_cutoff': float(body.get('epsilon_cutoff', 0)),
'eta_cutoff': float(body.get('eta_cutoff', 0)),