Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Commit a99a84e

Browse files
committed
fix: crash on gemma3
Signed-off-by: thxCode <thxcode0824@gmail.com>
1 parent 7224bd5 commit a99a84e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

llama-box/httpserver.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3907,7 +3907,7 @@ struct httpserver {
39073907
const int32_t decoded_image =
39083908
decode_completion_task_batch(llm_ctx, batch_mtmd.temp, batch_task_ptrs);
39093909
if (llm_ctx_clip_v != nullptr && clip_is_gemma3(llm_ctx_clip_v)) {
3910-
llama_set_causal_attn(llm_ctx, false);
3910+
llama_set_causal_attn(llm_ctx, true);
39113911
}
39123912
if (decoded_image != 0) {
39133913
SRV_ERR(

0 commit comments

Comments
 (0)