Skip to content

Commit

Permalink
Fix missing memory_v
Browse files Browse the repository at this point in the history
  • Loading branch information
ocrickard committed Apr 4, 2023
1 parent fd19b4a commit 375bd60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ static bool llama_eval_internal(
struct ggml_tensor * V_trans =
ggml_permute(ctx0,
ggml_reshape_3d(ctx0,
ggml_view_1d(ctx0, model.memory_v, (n_past + N)*n_embd, il*n_ctx*ggml_element_size(model.memory_v)*n_embd),
ggml_view_1d(ctx0, kv_self.v, (n_past + N)*n_embd, il*n_ctx*ggml_element_size(kv_self.v)*n_embd),
n_embd/n_head, n_head, n_past + N),
1, 2, 0, 3);

Expand Down

0 comments on commit 375bd60

Please sign in to comment.