summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2024-05-11 21:36:20 +0300
committerGeorgi Gerganov <ggerganov@gmail.com>2024-05-11 21:38:13 +0300
commit7bd4ffb78062587e4012a1c24186223f09b1bc70 (patch)
tree2e8bc4946a571e2468f8619abf677c7d050b0f9a
parent1622ac023f42e5e01c163321cd98c6596aa9402d (diff)
metal : fix warnings (skipme) (#0)
-rw-r--r--ggml-metal.metal4
-rw-r--r--scripts/sync-ggml.last2
2 files changed, 3 insertions, 3 deletions
diff --git a/ggml-metal.metal b/ggml-metal.metal
index 0c6d3279..7af4e8f9 100644
--- a/ggml-metal.metal
+++ b/ggml-metal.metal
@@ -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;
@@ -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;
diff --git a/scripts/sync-ggml.last b/scripts/sync-ggml.last
index 46b874c6..1ea32042 100644
--- a/scripts/sync-ggml.last
+++ b/scripts/sync-ggml.last
@@ -1 +1 @@
-d2ad1793f45922665c99f5cf4244dcab77e16c00
+30f54cbb3ada3e4c5bc6924de3e5918e5be4ff11