mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-30 02:53:41 +08:00
Fix index calculation
This commit is contained in:
parent
24f40c3b8d
commit
78b24a2375
@ -94,7 +94,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