You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
platforms: ATOM batcher poisons itself when kv_blocks == lanes + 1 with prefix cache #172
The constructor accepts kv_blocks == lanes + 1. With prefix cache on and all lanes busy, a request sharing a prefix with the only cache entry calls _take(keep=src), finds no victim and raises "no KV block available"; step() then poisons the batcher.
Evidence and reproduction
opt_prime/opt_prime/accel/platforms/atom/batching.py:79-82,122-123,167-172. Ran: batch=1, blocks=2, the same prompt twice fails with that error.
Environment
optimus-rm @253be20; Python 3.10, torch 2.10.0+cu128, transformers 5.1.0; RNGD+A100 host (CPU / one A100 for the checks).
Scope
atom/batching.py.
Done when
That configuration either works (reuse the source block) or is rejected at construction; a test covers it.
Activity
accel.platforms.atom: reject prefix cache with kv_blocks == lanes + 1 (…
gspark-etri commentedon Oct 23, 2026
Fixed by #181, squash-merged into optimus-rm.