mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-04-16 11:36:08 +00:00
llava : proper description fix (#12668)
This commit is contained in:
parent
6c02a032fa
commit
1a85949067
@ -1401,7 +1401,7 @@ struct clip_ctx * clip_init(const char * fname, struct clip_context_params ctx_p
|
|||||||
const std::string name = gguf_get_val_str(ctx, idx_name);
|
const std::string name = gguf_get_val_str(ctx, idx_name);
|
||||||
LOG_INF("%s: model name: %s\n", __func__, name.c_str());
|
LOG_INF("%s: model name: %s\n", __func__, name.c_str());
|
||||||
}
|
}
|
||||||
const int idx_desc = get_key_idx(ctx, KEY_DESCRIPTION);
|
const int idx_desc = gguf_find_key(ctx, KEY_DESCRIPTION);
|
||||||
if (idx_desc != -1) { // ditto
|
if (idx_desc != -1) { // ditto
|
||||||
const std::string description = gguf_get_val_str(ctx, idx_desc);
|
const std::string description = gguf_get_val_str(ctx, idx_desc);
|
||||||
LOG_INF("%s: description: %s\n", __func__, description.c_str());
|
LOG_INF("%s: description: %s\n", __func__, description.c_str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user