Repository navigation
Create DynamicEmbStorage when zero local hbm; reset _prefetch_outstanding_keys only in reset_cache_states - #354
Conversation
Greptile SummaryThis PR fixes two issues: (1) a logic bug where setting Confidence Score: 5/5Safe to merge — the core logic fix is correct and the new test case validates the zero-HBM path end-to-end. All findings are P2 (style/minor): a redundant defensive guard and a pre-existing display format note. The zero-HBM fix correctly routes to host-only DynamicEmbStorage and is well-covered by the added parametrize case. No data correctness or runtime issues were found. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[_create_cache_storage] --> B{total_memory > local_hbm?}
B -- No --> E[HBM-only: DynamicEmbStorage\nwith original options]
B -- Yes --> C{caching=True?}
C -- Yes --> F{local_hbm <= 0?}
F -- Yes --> G[raise ValueError:\nHBM too small for caching]
F -- No --> H[DynamicEmbCache\n+ DynamicEmbStorage/PS backend]
C -- No --> I{local_hbm <= 0?}
I -- Yes --> J[NEW: host-only\nDynamicEmbStorage/PS\nlocal_hbm_for_values=0]
I -- No --> K[HybridStorage:\nHBM tier + host tier]
|
Description
Checklist