| 1157 | } |
| 1158 | |
| 1159 | ggml_tensor * llama_kv_cache::build_input_k_idxs(ggml_context * ctx, const llama_ubatch & ubatch) const { |
| 1160 | const uint32_t n_tokens = ubatch.n_tokens; |
| 1161 | |
| 1162 | ggml_tensor * k_idxs = ggml_new_tensor_1d(ctx, GGML_TYPE_I64, n_tokens); |
| 1163 | |
| 1164 | ggml_set_input(k_idxs); |
| 1165 | |
| 1166 | return k_idxs; |
| 1167 | } |
| 1168 | |
| 1169 | ggml_tensor * llama_kv_cache::build_input_v_idxs(ggml_context * ctx, const llama_ubatch & ubatch) const { |
| 1170 | const uint32_t n_tokens = ubatch.n_tokens; |
no test coverage detected