model : add LiquidAI/d1-3B decision model (#30110)

* model : add LiquidAI/d1-3b decision model

mtmd : read LFM2 image resize algo from GGUF

Assisted-by: Claude Opus 5.5

* common : rename decision type d1 to lfm2-d1

Assisted-by: Claude Opus 5.5
This commit is contained in:
Tarek Dakhran authored and GitHub committed 2026-10-07 22:04:39 +02:00
1 parent b86d2f0754
commit 88dcc460d6
14 files changed
+239 -10

No files matched your search

+10
View File
@@ -2344,6 +2344,16 @@ private:
GGML_ASSERT(label >= 0 && label < n_vocab);
res->scores.push_back(logits[label]);
}
if (!decision.label_groups.empty()) {
std::vector<float> scores;
size_t i = 0;
for (const int32_t n : decision.label_groups) {
GGML_ASSERT(n > 0 && i + n <= res->scores.size());
scores.push_back(*std::max_element(res->scores.begin() + i, res->scores.begin() + i + n));
i += n;
}
res->scores = std::move(scores);
}
} else {
// the outputs of this slot in this batch are the last tokens of the prompt
std::vector<int32_t> idx;