From fc0674d2d8fa4cd384641f5473d1dc7ffca918df Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Sun, 15 Dec 2024 23:06:29 +0900 Subject: [PATCH] chore: update evaluate.py (#1159) occurence -> occurrence --- llms/mlx_lm/evaluate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]