mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	batch : rework llama_batch_allocr (#14153)
* batch : rework llama_batch_allocr ggml-ci * cont : move validation inside class ggml-ci * cont : move output counting to class ggml-ci * cont : minor ggml-ci * batch : add TODOs ggml-ci
This commit is contained in:
		| @@ -674,6 +674,7 @@ void llama_kv_cache_unified::apply_ubatch(uint32_t head_cur, const llama_ubatch | ||||
|  | ||||
|             cells.pos_set(head_cur + idx, ubatch.pos[idx]); | ||||
|  | ||||
|             // TODO: fix indexing [UBATCH_IDX] | ||||
|             for (int32_t i = 0; i < ubatch.n_seq_id[s]; i++) { | ||||
|                 cells.seq_add(head_cur + idx, ubatch.seq_id[s][i]); | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Georgi Gerganov
					Georgi Gerganov