llama : second attempt to refactor vision API
This commit is contained in:
parent
2a458d1a9d
commit
0a81051ae2
20 changed files with 695 additions and 145 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue