Repository navigation
delete invalid line - #381
delete invalid line #381
Conversation
Greptile SummaryThis PR removes a single dead-code statement in
Confidence Score: 5/5Safe to merge — the change removes a single dead-code expression that had no effect on program state. The deleted line No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["strip_cached_tokens(batch, origin_num_cached)"] --> B["Compute num_cached, num_hist_cached"]
B --> C["Fetch old_offsets, old_lengths from batch.features"]
C --> D["item_offset = num_context * batch.batch_size"]
D --> E["~~item_offset + batch.batch_size~~ removed — was a no-op"]
D --> F["Build new_lengths tensor"]
F --> G["Compute startpos / endpos using item_offset + 2 * batch_size"]
G --> H["Slice old_values into new_hist_value and new_context_value"]
H --> I["Reconstruct batch features and return"]
Reviews (1): Last reviewed commit: "delete invalid line" | Re-trigger Greptile |
Description
Checklist
find a code snippet in
examples/hstu/modules/async_kvcache_manager.py that does not work.