Skip to content

Commit

Permalink
fix a small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pufanyi committed Mar 29, 2024
1 parent dd76e53 commit a4d86da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lmms_eval/api/samplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def sample(self, n):
Draw `n` samples from our fewshot docs. This method should be overridden by subclasses.
"""

return self.docs.sample(n)
return self.docs.sample(n, self.rnd)


class FirstNSampler(ContextSampler):
Expand Down

0 comments on commit a4d86da

Please sign in to comment.