llama : second attempt to refactor vision API

This commit is contained in:
Xuan Son Nguyen 2025-01-18 20:56:35 +01:00
parent 2a458d1a9d
commit 0a81051ae2
20 changed files with 695 additions and 145 deletions

View file

@ -4,6 +4,7 @@
#include "llama-arch.h"
#include "llama-hparams.h"
#include "llama-vocab.h"
#include "llama-vision.h"
#include <memory>
#include <string>
@ -362,6 +363,10 @@ struct llama_model {
const struct ggml_tensor * get_tensor(const char * name) const;
// vision
bool has_vision = false;
clip_vision_model clip;
private:
struct impl;
std::unique_ptr<impl> pimpl;