From: Eve Date: Tue, 26 Aug 2025 15:42:49 +0000 (+0000) Subject: tests: add performance test for mul mat id (llama/15543) X-Git-Tag: v0.9.1~143 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=3eeaf088a83f54aae39262296b15318403f0284f;p=pkg%2Fggml%2Fsources%2Fggml tests: add performance test for mul mat id (llama/15543) --- diff --git a/tests/test-backend-ops.cpp b/tests/test-backend-ops.cpp index 4b4299d4..c84023e0 100644 --- a/tests/test-backend-ops.cpp +++ b/tests/test-backend-ops.cpp @@ -6400,6 +6400,24 @@ static std::vector> make_test_cases_perf() { } } + // qwen3-30b-a3b + for (int bs : {1, 4, 8, 512}) { + for (ggml_type type_a : {GGML_TYPE_F32, GGML_TYPE_F16, GGML_TYPE_Q4_0, GGML_TYPE_Q8_0, GGML_TYPE_Q4_K, GGML_TYPE_Q6_K, GGML_TYPE_IQ2_XS}) { + for (ggml_type type_b : {GGML_TYPE_F32}) { + test_cases.emplace_back(new test_mul_mat_id(type_a, type_b, 128, 8, false, 768, bs, 2048, 1)); + } + } + } + + // gpt-oss-20b + for (int bs : {1, 4, 8, 512}) { + for (ggml_type type_a : {GGML_TYPE_MXFP4}) { + for (ggml_type type_b : {GGML_TYPE_F32}) { + test_cases.emplace_back(new test_mul_mat_id(type_a, type_b, 32, 4, false, 2880, bs, 2880, 1)); + } + } + } + for (int K : {3, 5}) { for (int IC : {256, 2560}) { for (int IW_IH : {32, 64, 256}) {