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