llama : add support for qwen3 reranker (#15824)

This commit is contained in:
Douglas Hanley authored and GitHub committed 2025-09-25 11:53:09 +03:00
1 parent dfcd53f7ec
commit b5bd037832
9 files changed
+166 -78

No files matched your search

+3
View File
@@ -3167,6 +3167,9 @@ bool llama_model::load_tensors(llama_model_loader & ml) {
output = create_tensor(tn(LLM_TENSOR_TOKEN_EMBD, "weight"), {n_embd, n_vocab}, TENSOR_DUPLICATED);
}
// output rerank head
cls_out = create_tensor(tn(LLM_TENSOR_CLS_OUT, "weight"), {n_embd, hparams.n_cls_out}, TENSOR_NOT_REQUIRED);
for (int i = 0; i < n_layer; ++i) {
auto & layer = layers[i];