Skip to content

Commit bed0f9e

Browse files
authored
Static IO manager bug fix (#12718)
Differential Revision: D78717294 Pull Request resolved: #12968
1 parent d5232a0 commit bed0f9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/models/llama/runner/static_attention_io_manager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ class StaticAttentionIOManager {
859859
}
860860

861861
StaticAttentionIOConfig config_;
862-
size_t input_pos_;
862+
size_t input_pos_ = 0;
863863
StaticKVCache<CacheT, CacheAllocatorT> kCaches_;
864864
StaticKVCache<CacheT, CacheAllocatorT> vCaches_;
865865
std::unordered_map<size_t, StaticAttentionMask<MaskT, MaskAllocatorT>>

0 commit comments

Comments
 (0)