Skip to content

Commit 23f5299

Browse files
committed
vulkan : fix ggml_rope_ext() usage
1 parent 6ebee16 commit 23f5299

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml-vulkan.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6865,15 +6865,15 @@ static void ggml_vk_check_results_0(ggml_backend_vk_context * ctx, ggml_compute_
68656865
} else if (tensor->op == GGML_OP_ROPE) {
68666866
const int n_dims = ((int32_t *) tensor->op_params)[1];
68676867
const int mode = ((int32_t *) tensor->op_params)[2];
6868-
const int n_ctx_ggml = ((int32_t *) tensor->op_params)[3];
6868+
//const int n_ctx_ggml = ((int32_t *) tensor->op_params)[3];
68696869
const int n_ctx_orig_ggml = ((int32_t *) tensor->op_params)[4];
68706870
float freq_base = ((float *) tensor->op_params)[5];
68716871
float freq_scale = ((float *) tensor->op_params)[6];
68726872
float ext_factor = ((float *) tensor->op_params)[7];
68736873
float attn_factor = ((float *) tensor->op_params)[8];
68746874
float beta_fast = ((float *) tensor->op_params)[9];
68756875
float beta_slow = ((float *) tensor->op_params)[10];
6876-
tensor_clone = ggml_rope_ext(ggml_ctx, src0_clone, src1_clone, src2_clone, n_dims, mode, n_ctx_ggml, n_ctx_orig_ggml, freq_base, freq_scale, ext_factor, attn_factor, beta_fast, beta_slow);
6876+
tensor_clone = ggml_rope_ext(ggml_ctx, src0_clone, src1_clone, src2_clone, n_dims, mode, n_ctx_orig_ggml, freq_base, freq_scale, ext_factor, attn_factor, beta_fast, beta_slow);
68776877
} else if (tensor->op == GGML_OP_UNARY) {
68786878
switch (ggml_get_unary_op(tensor)) {
68796879
case GGML_UNARY_OP_SILU:

0 commit comments

Comments
 (0)