char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Xuan-Son Nguyenmtmd: add llama-mtmd-debug binary (#20508)94d026227

char/aliceai-t5-moe
779 B17 linesraw
1#pragma once
2
3#include "mtmd.h"
4
5#include <vector>
6
7// INTERNAL HEADER FOR DEBUGGING PURPOSES ONLY
8// NOT INTENDED FOR PUBLIC USE
9// Do not raise issues related to this debugging API
10
11// encode take the pre-processed f32 values, print the intermidiate values via cb_eval callback
12MTMD_API void mtmd_debug_encode_image(mtmd_context * ctx, const std::vector<std::vector<float>> & image);
13MTMD_API void mtmd_debug_encode_audio(mtmd_context * ctx, const std::vector<float> & input); // will be broadcasted to fit n_mel
14
15// preprocess take the raw input values
16MTMD_API void mtmd_debug_preprocess_image(mtmd_context * ctx, const std::vector<uint8_t> & rgb_values, int nx, int ny);
17MTMD_API void mtmd_debug_preprocess_audio(mtmd_context * ctx, const std::vector<float> & pcm_samples);