/
vshmidt
/
llama.cpp
Обзор
Документация
Войти
/
vshmidt
/
llama.cpp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tools/mtmd/debug/mtmd-debug.h
17 строк
779 B
Xuan-Son Nguyen
mtmd: add llama-mtmd-debug binary (#20508)
14 мар 2026, 17:52
Не верифицирован
14 мар 2026, 17:52
94d0262
Код
Авторство
О чём код?
#pragma once #include "mtmd.h" #include <vector> // INTERNAL HEADER FOR DEBUGGING PURPOSES ONLY // NOT INTENDED FOR PUBLIC USE // Do not raise issues related to this debugging API // encode take the pre-processed f32 values, print the intermidiate values via cb_eval callback MTMD_API void mtmd_debug_encode_image(mtmd_context * ctx, const std::vector<std::vector<float>> & image); MTMD_API void mtmd_debug_encode_audio(mtmd_context * ctx, const std::vector<float> & input); // will be broadcasted to fit n_mel // preprocess take the raw input values MTMD_API void mtmd_debug_preprocess_image(mtmd_context * ctx, const std::vector<uint8_t> & rgb_values, int nx, int ny); MTMD_API void mtmd_debug_preprocess_audio(mtmd_context * ctx, const std::vector<float> & pcm_samples);