]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
Remove obsolete assert and fix compiler warning
authorGeorgi Gerganov <redacted>
Sat, 25 Mar 2023 14:22:05 +0000 (16:22 +0200)
committerGeorgi Gerganov <redacted>
Sat, 25 Mar 2023 14:22:05 +0000 (16:22 +0200)
ggml.c
main.cpp

diff --git a/ggml.c b/ggml.c
index 625ef600799e04ce56808c06f38bf8b6ec50168e..1556040b7f0cc723eac6e9eb788f264eeb5dfae2 100644 (file)
--- a/ggml.c
+++ b/ggml.c
@@ -6317,8 +6317,6 @@ static void ggml_compute_forward_mul_mat_f16_f32(
 
             float * dst_col = (float *) ((char *) dst->data + (i0*nb0 + 0*nb1 + i2*nb2 + i3*nb3));
 
-            assert(ne00 % 32 == 0);
-
             for (int ic = 0; ic < ne11; ++ic) {
                 ggml_vec_dot_f16(ne00, &dst_col[ic*ne0], src0_row, src1_col + ic*ne00);
             }
index 143585bf2271c4ca74c67cf0ed598e9f4a1e35dd..32c3a68a02dd39c4f7529eb1e59a8ba9b3225d2d 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -478,7 +478,7 @@ int main(int argc, char ** argv) {
                 std::string buffer;
                 if (!params.input_prefix.empty()) {
                     buffer += params.input_prefix;
-                    printf(buffer.c_str());
+                    printf("%s", buffer.c_str());
                 }
 
                 std::string line;