Skip to content

Commit

Permalink
metal : fix warnings (skipme) (#0)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed May 11, 2024
1 parent 1622ac0 commit 7bd4ffb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ggml-metal.metal
Original file line number Diff line number Diff line change
Expand Up @@ -2217,7 +2217,7 @@ kernel void kernel_flash_attn_ext_f16(

// ALiBi
if (max_bias > 0.0f) {
const short h = iq2;
const uint32_t h = iq2;

const float base = h < n_head_log2 ? m0 : m1;
const int exph = h < n_head_log2 ? h + 1 : 2*(h - n_head_log2) + 1;
Expand Down Expand Up @@ -2473,7 +2473,7 @@ kernel void kernel_flash_attn_ext_vec_f16(

// ALiBi
if (max_bias > 0.0f) {
const short h = iq2;
const uint32_t h = iq2;

const float base = h < n_head_log2 ? m0 : m1;
const int exp = h < n_head_log2 ? h + 1 : 2*(h - n_head_log2) + 1;
Expand Down
2 changes: 1 addition & 1 deletion scripts/sync-ggml.last
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d2ad1793f45922665c99f5cf4244dcab77e16c00
30f54cbb3ada3e4c5bc6924de3e5918e5be4ff11

0 comments on commit 7bd4ffb

Please sign in to comment.