This commit is contained in:
Xuan Son Nguyen 2025-01-18 12:19:25 +01:00
parent 3edfa7d375
commit 2a458d1a9d
3 changed files with 1002 additions and 0 deletions

View file

@ -229,6 +229,16 @@ extern "C" {
bool sorted;
} llama_token_data_array;
// represent an RGB image
// size of data must be equal to 3*nx*ny
typedef struct llama_vision_bitmap {
uint32_t nx;
uint32_t ny;
unsigned char * data;
} llama_vision_bitmap;
struct llama_vision_patches;
typedef bool (*llama_progress_callback)(float progress, void * user_data);
// Input data for llama_decode