diff --git a/llms/mlx_lm/evaluate.py b/llms/mlx_lm/evaluate.py index 423d5823..c4b15748 100644 --- a/llms/mlx_lm/evaluate.py +++ b/llms/mlx_lm/evaluate.py @@ -32,7 +32,7 @@ def _len_longest_common_prefix(a, b): def _rstrip_until(s, untils): - """Limit a string to the first occurence of any substring in untils.""" + """Limit a string to the first occurrence of any substring in untils.""" l = len(s) f = [s.find(u) for u in untils] f = [l if x < 0 else x for x in f]