mirror of
https://github.com/likelovewant/ollama-for-amd.git
synced 2025-12-21 22:33:56 +00:00
* Revert "add support for NVIDIA Nemotron 3 Nano" This reverts commit e7d2ae9d69421012e9a8765c06a3fdf0e45b12f3. * GGML update to 380b4c984 Remove MaskBatchPadding as GGML_KQ_MASK_PAD is no longer present (no padding required) * update to c45f89d55 * ec98e2002 solar pro needed more adjusting - needs verification * review comments
26 lines
1022 B
Diff
26 lines
1022 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Hiltgen <daniel@ollama.com>
|
|
Date: Tue, 11 Nov 2025 11:39:43 -0800
|
|
Subject: [PATCH] fix bakllava regression
|
|
|
|
Rever to prior logic of assuming an empty projector type is mlp
|
|
---
|
|
tools/mtmd/clip.cpp | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/tools/mtmd/clip.cpp b/tools/mtmd/clip.cpp
|
|
index 84a3796b5..d3a37842d 100644
|
|
--- a/tools/mtmd/clip.cpp
|
|
+++ b/tools/mtmd/clip.cpp
|
|
@@ -960,6 +960,10 @@ struct clip_model_loader {
|
|
if (proj_type.empty()) {
|
|
if (modality == CLIP_MODALITY_VISION) {
|
|
get_string(KEY_VISION_PROJ_TYPE, proj_type, false);
|
|
+ if (proj_type.empty()) {
|
|
+ // Assume MLP if no projector type listed
|
|
+ proj_type = "mlp";
|
|
+ }
|
|
} else if (modality == CLIP_MODALITY_AUDIO) {
|
|
get_string(KEY_AUDIO_PROJ_TYPE, proj_type, false);
|
|
} else {
|