add tokens to eval to avoid large graphs when they are not used (#924)
This commit is contained in:
+1
-1
@@ -1228,7 +1228,7 @@ class BatchGenerator:
|
||||
batch.tokens,
|
||||
)
|
||||
|
||||
mx.async_eval(batch.y, batch.logprobs)
|
||||
mx.async_eval(batch.y, batch.logprobs, batch.tokens)
|
||||
|
||||
y = y.tolist()
|
||||
toc = time.perf_counter()
|
||||
|
||||
Reference in New Issue
Block a user