@@ -210,7 +210,7 @@ llama_memory_context_ptr llama_kv_cache_iswa::init_batch(llama_batch_allocr & ba
210210 }
211211
212212 return std::make_unique<llama_kv_cache_iswa_context>(
213- this , std::move (ctx_base), std::move (ctx_swa), std::move (ubatches));
213+ std::move (ctx_base), std::move (ctx_swa), std::move (ubatches));
214214 } while (false );
215215
216216 // if it fails, try equal split
@@ -244,7 +244,7 @@ llama_memory_context_ptr llama_kv_cache_iswa::init_batch(llama_batch_allocr & ba
244244 }
245245
246246 return std::make_unique<llama_kv_cache_iswa_context>(
247- this , std::move (ctx_base), std::move (ctx_swa), std::move (ubatches));
247+ std::move (ctx_base), std::move (ctx_swa), std::move (ubatches));
248248 } while (false );
249249
250250 // TODO: if we fail again, we should attempt different splitting strategies
@@ -277,7 +277,7 @@ llama_memory_context_ptr llama_kv_cache_iswa::init_kv_batch(const std::vector<ll
277277 }
278278
279279 return std::make_unique<llama_kv_cache_iswa_context>(
280- this , std::move (ctx_base), std::move (ctx_swa), ubatches);
280+ std::move (ctx_base), std::move (ctx_swa), ubatches);
281281}
282282
283283bool llama_kv_cache_iswa::get_can_shift () const {
@@ -333,7 +333,6 @@ llama_kv_cache_iswa_context::llama_kv_cache_iswa_context(
333333}
334334
335335llama_kv_cache_iswa_context::llama_kv_cache_iswa_context (
336- llama_kv_cache_iswa * kv,
337336 llama_memory_context_ptr ctx_base_in,
338337 llama_memory_context_ptr ctx_swa_in,
339338 std::vector<llama_ubatch> ubatches) :
0 commit comments