clear cache on prompt ingestion in server (#917)
Co-authored-by: N8 <[email protected]>
This commit is contained in:
@@ -1081,6 +1081,7 @@ class BatchGenerator:
|
||||
for uid, length in zip(uids, lengths)
|
||||
]
|
||||
)
|
||||
mx.clear_cache()
|
||||
|
||||
# Further prompt processing so we need to
|
||||
# 1. Merge the KV caches and prepare for right padded prompts
|
||||
|
||||
Reference in New Issue
Block a user