mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-18 16:55:14 +02:00
fixed gemma4v image crashing on encode, however images are not yet working correctly
This commit is contained in:
@@ -3672,6 +3672,11 @@ generation_outputs gpttype_generate(const generation_inputs inputs)
|
||||
img_start = "<|begin_of_image|>";
|
||||
img_end = "<|end_of_image|>\n\n";
|
||||
}
|
||||
else if(ptype==PROJECTOR_TYPE_GEMMA4V)
|
||||
{
|
||||
img_start = "<|image>";
|
||||
img_end = "<image|>\n\n";
|
||||
}
|
||||
}
|
||||
TokenizeString(img_start, lv.chunk_start_seq, file_format, false);
|
||||
TokenizeString(img_end, lv.chunk_end_seq, file_format, false);
|
||||
|
||||
Reference in New Issue
Block a user