Skip to content

Commit bbe4940

Browse files
committed
rm test
1 parent de20afd commit bbe4940

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

tools/mtmd/mtmd.cpp

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -182,21 +182,7 @@ mtmd_context * mtmd_init_from_file(const char * mmproj_fname,
182182
const struct llama_model * text_model,
183183
const struct mtmd_context_params ctx_params) {
184184
try {
185-
auto * test = new mtmd_context(mmproj_fname, text_model, ctx_params);
186-
187-
//// TEST, TO BE REMOVED LATER
188-
clip_image_f32_batch * batch = clip_image_f32_batch_init();
189-
std::vector<float> mel(128 * 1024, 0.2);
190-
clip_image_f32_batch_add_mel(batch, 128, 1024, mel.data());
191-
std::vector<float> output(64 * 2048, 0);
192-
clip_image_batch_encode(test->ctx_clip, 8, batch, output.data());
193-
for (int i = 0; i < 3; i++) printf("%f ", output[i]); printf("\n");
194-
for (int i = 0; i < 3; i++) printf("%f ", output[i+2048]); printf("\n");
195-
for (int i = 0; i < 3; i++) printf("%f ", output[i+2048*2]); printf("\n");
196-
float sum = 0.0;
197-
for (size_t i = 0; i < 64 * 2048; i++) sum += output[i];
198-
printf("sum: %f\n", sum);
199-
GGML_ABORT("test");
185+
return new mtmd_context(mmproj_fname, text_model, ctx_params);
200186
} catch (const std::exception & e) {
201187
LOG_ERR("%s: error: %s\n", __func__, e.what());
202188
return nullptr;

0 commit comments

Comments
 (0)