mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	llama : deprecate explicit kv_self defrag/update calls (#13921)
ggml-ci
This commit is contained in:
		| @@ -2281,6 +2281,7 @@ llama_kv_cache * llama_get_kv_self(llama_context * ctx) { | ||||
|     return ctx->get_kv_self(); | ||||
| } | ||||
|  | ||||
| // deprecated | ||||
| void llama_kv_self_update(llama_context * ctx) { | ||||
|     ctx->kv_self_update(); | ||||
| } | ||||
| @@ -2535,6 +2536,7 @@ llama_pos llama_kv_self_seq_pos_max(llama_context * ctx, llama_seq_id seq_id) { | ||||
|     return kv->seq_pos_max(seq_id); | ||||
| } | ||||
|  | ||||
| // deprecated | ||||
| void llama_kv_self_defrag(llama_context * ctx) { | ||||
|     auto * kv = ctx->get_kv_self(); | ||||
|     if (!kv) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Georgi Gerganov
					Georgi Gerganov