HIGH: prefix_cache.py uses meta_state before initialization in block loop #43
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
In
reconstruct_cache(), the code tries to usemeta_stateto preserve quantization params BEFOREmeta_stateis assigned. This causes NameError for layer 0 and stale values for subsequent layers.Impact
Fix
Move meta_state assignment before the block collection loop, or use first_block_meta_states directly.
File
omlx/cache/prefix_cache.py:1575-1591