You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifnotisinstance(min_tokens_to_keep, int) or (min_tokens_to_keep<1):
ifnot (0<=min_p<=1.0):
raiseValueError(
f"`min_p` has to be a float in the [0, 1] interval, but is {min_p}"
)
ifnotisinstance(min_tokens_to_keep, int) or (min_tokens_to_keep<1):
raiseValueError(
f"`min_tokens_to_keep` has to be a positive integer, but is {min_tokens_to_keep}"
)
The text was updated successfully, but these errors were encountered:
In mlx_lm/generate.py, the type of
--min-tokens-to-keep
parameter is set tofloat
.mlx-examples/llms/mlx_lm/generate.py
Line 80 in 0ca162c
but in mlx_lm/sample_utils.py, this cause error that '
min_tokens_to_keep
has to be a positive integer'.mlx-examples/llms/mlx_lm/sample_utils.py
Line 109 in 0ca162c
The text was updated successfully, but these errors were encountered: