MEDIUM: BatchQuantizedKVCache missing size() and empty() methods #44

Closed
opened 2026-05-09 18:01:49 +02:00 by sleepy · 0 comments
Owner

Bug

BatchQuantizedKVCache does not implement size() and empty() methods that mlx_lm BatchGenerator may call.

Impact

AttributeError during batch operations if mlx_lm calls these methods.

Fix

Add size() and empty() methods.

File

omlx/cache/batch_quantized_cache.py

## Bug BatchQuantizedKVCache does not implement size() and empty() methods that mlx_lm BatchGenerator may call. ## Impact AttributeError during batch operations if mlx_lm calls these methods. ## Fix Add size() and empty() methods. ## File omlx/cache/batch_quantized_cache.py
Sign in to join this conversation.
No labels
bug
feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sleepy/omlx#44
No description provided.