Skip to content

Commit

Permalink
fix llava segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
LostRuins committed Nov 14, 2024
1 parent 4b96c3b commit bfa118e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gpttype_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3547,8 +3547,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs)
if(i>0 && sepsize>0)
{
//add a separator between each image
kcpp_embd_batch batch = kcpp_embd_batch(embd, n_past);
auto evr = llama_decode(llama_ctx_v4, batch.batch);
auto evr = llama_decode(llama_ctx_v4, llama_batch_get_one(llava_sep.data(), sepsize));
if(evr!=0)
{
printf("\nError when appending llava separator: %d\n",evr);
Expand Down

0 comments on commit bfa118e

Please sign in to comment.