Skip to content

Commit 9abb252

Browse files
HimariOggerganov
andauthored
Apply suggestions from code review
Co-authored-by: Georgi Gerganov <[email protected]>
1 parent d7edc55 commit 9abb252

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ggml/src/ggml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3528,7 +3528,7 @@ static struct ggml_tensor * ggml_rope_impl(
35283528
memcpy(params + 8, &attn_factor, sizeof(float));
35293529
memcpy(params + 9, &beta_fast, sizeof(float));
35303530
memcpy(params + 10, &beta_slow, sizeof(float));
3531-
memcpy(params + 11, &sections, sizeof(int) * 4);
3531+
memcpy(params + 11, &sections, sizeof(int) * 4);
35323532
ggml_set_op_params(result, params, sizeof(params));
35333533

35343534
result->op = GGML_OP_ROPE;

src/llama.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,9 +2555,9 @@ struct llama_hparams {
25552555
if (this->n_ff_shexp != other.n_ff_shexp) return true;
25562556
if (this->n_expert_shared != other.n_expert_shared) return true;
25572557

2558-
if (this->rope_finetuned != other.rope_finetuned) return true;
2559-
if (this->n_ctx_orig_yarn != other.n_ctx_orig_yarn) return true;
2560-
if (this->rope_sections != other.rope_sections) return true;
2558+
if (this->rope_finetuned != other.rope_finetuned) return true;
2559+
if (this->n_ctx_orig_yarn != other.n_ctx_orig_yarn) return true;
2560+
if (this->rope_sections != other.rope_sections) return true;
25612561

25622562
if (this->ssm_d_conv != other.ssm_d_conv) return true;
25632563
if (this->ssm_d_inner != other.ssm_d_inner) return true;

0 commit comments

Comments
 (0)