Skip to content

Commit

Permalink
chore: update evaluate.py (#1159)
Browse files Browse the repository at this point in the history
occurence -> occurrence
  • Loading branch information
eltociear authored Dec 15, 2024
1 parent 9f2ea58 commit fc0674d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llms/mlx_lm/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _len_longest_common_prefix(a, b):


def _rstrip_until(s, untils):
"""Limit a string <s> to the first occurence of any substring in untils."""
"""Limit a string <s> 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]
Expand Down

0 comments on commit fc0674d

Please sign in to comment.