We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a24cb40 commit 8d8c8c4Copy full SHA for 8d8c8c4
src/llama-kv-cache.cpp
@@ -1707,7 +1707,10 @@ llama_pos llama_kv_cache_unified_iswa::get_pos_max() const {
1707
}
1708
1709
bool llama_kv_cache_unified_iswa::get_can_shift() const {
1710
- return kv_base->get_size() == kv_swa->get_size();
+ // 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();
1714
1715
1716
void llama_kv_cache_unified_iswa::state_write(llama_io_write_i & io, llama_seq_id seq_id) const {
0 commit comments