Skip to content

Commit 6fa0936

Browse files
limintangfacebook-github-bot
authored andcommitted
Static IO manager bug fix (#12718)
Summary: As title. Reviewed By: sxu Differential Revision: D78717294
1 parent a27dd42 commit 6fa0936

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
@@ -903,7 +903,7 @@ class StaticAttentionIOManager {
903903
}
904904

905905
StaticAttentionIOConfig config_;
906-
size_t input_pos_;
906+
size_t input_pos_ = 0;
907907
StaticKVCache<CacheT, CacheAllocatorT> kCaches_;
908908
StaticKVCache<CacheT, CacheAllocatorT> vCaches_;
909909
std::unordered_map<size_t, StaticAttentionMask<MaskT, MaskAllocatorT>>

0 commit comments

Comments
 (0)