Commit 04a0341f2 for llama.cpp
commit 04a0341f21138bd25e19bc04ecfd4df38dd0866f
Author: Jeff Bolz <jbolz@nvidia.com>
Date: Sun Dec 6 11:25:07 2026 -0600
test-mtmd-model: Fix MSVC build (#33811)
diff --git a/tests/test-mtmd-model.cpp b/tests/test-mtmd-model.cpp
index 0c00999b3..d5a29f9a5 100644
--- a/tests/test-mtmd-model.cpp
+++ b/tests/test-mtmd-model.cpp
@@ -3810,11 +3810,11 @@ static bool make_mmproj_g6(projector_type proj, mmproj_writer & w, test_model &
case PROJECTOR_TYPE_ZONOS3_GEN:
{
// codebook heads + ZAC codec decoder, 5 stages upsampled x2 between them
- const int64_t n_vocab = 16; // per codebook, the codec tables have 4096 rows
- const int64_t n_cb = 10;
- const int64_t n_sem = 16;
- const int64_t n_lat = 16;
- const int64_t d = 64; // one head of 64
+ static constexpr int64_t n_vocab = 16; // per codebook, the codec tables have 4096 rows
+ static constexpr int64_t n_cb = 10;
+ static constexpr int64_t n_sem = 16;
+ static constexpr int64_t n_lat = 16;
+ static constexpr int64_t d = 64; // one head of 64
hp.n_embd = hp.n_proj;
hp.n_layer = 0;
add_gen_audio_kv(w, proj, hp);
@@ -4270,8 +4270,8 @@ static bool make_mmproj_g6(projector_type proj, mmproj_writer & w, test_model &
case PROJECTOR_TYPE_CHATTERBOX:
{
// flow decoder + vocoder from a predefined voice, the meanflow variant (2 steps, time embed mixer)
- const int64_t n_codes = 64;
- const int n_tok = 4;
+ static constexpr int64_t n_codes = 64;
+ static constexpr int n_tok = 4;
g6_chatterbox_gen(w, hp, n_codes, 0, true, false);
std::vector<int32_t> ids = g6_codes(n_tok, (int32_t) n_codes, 7);
g6_tensor_data(w, "voice.v0", {hp.n_proj, 2}, g6_normal(2 * hp.n_proj, "cbx.voice.rows"));