Skip to content

Commit 8d8c8c4

Browse files
committed
iswa : for now, always enable shifts (experiment)
ggml-ci
1 parent a24cb40 commit 8d8c8c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/llama-kv-cache.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1707,7 +1707,10 @@ llama_pos llama_kv_cache_unified_iswa::get_pos_max() const {
17071707
}
17081708

17091709
bool llama_kv_cache_unified_iswa::get_can_shift() const {
1710-
return kv_base->get_size() == kv_swa->get_size();
1710+
// TODO: for now allow this, eventhough it's not mathematically correct
1711+
// but some initial tests indicate that the results are not bad
1712+
return true;
1713+
//return kv_base->get_size() == kv_swa->get_size();
17111714
}
17121715

17131716
void llama_kv_cache_unified_iswa::state_write(llama_io_write_i & io, llama_seq_id seq_id) const {

0 commit comments

Comments
 (0)