mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-28 00:30:09 +08:00
Fix index calculation
This commit is contained in:
parent
a4a86ad898
commit
a5b866cf73
@ -97,7 +97,7 @@ class CompletionsDatasetCollection:
|
||||
|
||||
while True:
|
||||
try:
|
||||
if (curr_idx + 1) < len(item):
|
||||
if (curr_idx + 1) <= len(item):
|
||||
return item[curr_idx]
|
||||
else:
|
||||
curr_idx -= len(item)
|
||||
|
Loading…
Reference in New Issue
Block a user