Views
No views yet
[!IMPORTANT] This model requires the patched llama.cpp runtime bundled inllama.cpp/. Stock llama.cpp does not recognize thet5gemma2architecture used here. Ollama, LM Studio,llama-serverand other stock frontends are not supported by this release.
KaLM-Embedding/KaLM-Reranker-V1-Small.| File | Quantization | Size | SHA256 |
|---|---|---|---|
kalm-reranker-v1-small-q4_k_m.gguf | Q4_K_M | 1,319,630,528 bytes | e0b805a5811a0b7b1c0b43f9e1a0b7a43b04b8a93d9a790fb08ad390e71e1dc9 |
t5gemma2; physical tensors: 679;
text parameters: 1,697,782,016. The tokenizer is embedded
in the GGUF.-hf option:1hf download KaLM-Embedding/KaLM-Reranker-V1-Small-Q4_K_M-GGUF \
2 --local-dir KaLM-Reranker-V1-Small-Q4_K_M-GGUF
3cd KaLM-Reranker-V1-Small-Q4_K_M-GGUF
4sha256sum --check SHA256SUMS1git clone https://github.com/ggml-org/llama.cpp llama.cpp-src
2git -C llama.cpp-src checkout 277a105dc8f8643dab54331926a9830860a03292
3bash "$PWD/llama.cpp/apply-patches.sh" "$PWD/llama.cpp-src"
4cmake -S llama.cpp-src -B llama.cpp-src/build -G Ninja \
5 -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=ON
6cmake --build llama.cpp-src/build \
7 --target llama-kalm-reranker -j-DGGML_CUDA=OFF.1llama.cpp-src/build/bin/llama-kalm-reranker \
2 -m kalm-reranker-v1-small-q4_k_m.gguf -ngl 99 --require-gpu \
3 --query "What is the capital of China?" \
4 --passage "The capital of China is Beijing."yes_logit, no_logit, margin, and
score = sigmoid(yes_logit - no_logit). Rank larger margins first.
For JSONL and reproducible examples, see examples/.| Model | NDCG@10 | MAP@10 | Recall@10 | MRR@10 | NDCG@100 |
|---|---|---|---|---|---|
| Retriever | 0.46985 | 0.38419 | 0.55188 | 0.54942 | 0.53769 |
| Transformers/BF16 | 0.55255 | 0.46851 | 0.62310 | 0.63469 | 0.60417 |
| GGUF Q4_K_M | 0.55208 | 0.46747 | 0.62503 | 0.63452 | 0.60340 |
0.020 drop
from BF16 for both NDCG@10 and MRR@10. Observed drops were
0.00047 and 0.00017 respectively;
the gate status is accepted. Throughput in the recorded run was
26.634 pairs/s.
Hardware and scheduling affect throughput.t5gemma2 architecture means the seven patches were not
applied to the pinned upstream commit.--require-gpu failure means full CUDA offload was not achieved.--require-gpu when CUDA is unavailable.sha256sum --check SHA256SUMS.@misc{zhao2026kalmrerankerv1,
title={KaLM-Reranker-V1: Fast but Not Late Interaction for Compressed Document Reranking},
author={Xinping Zhao and Jiaxin Xu and Ziqi Dai and Xin Zhang and Shouzheng Huang and Danyu Tang and Xinshuo Hu and Meishan Zhang and Baotian Hu and Min Zhang},
year={2026},
eprint={2606.22807},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2606.22807},
}
@misc{zhao2026kalmembeddingv2,
title={KaLM-Embedding-V2: Superior Training Techniques and Data Inspire A Versatile Embedding Model},
author={Xinping Zhao and Xinshuo Hu and Zifei Shan and Shouzheng Huang and Yao Zhou and Xin Zhang and Zetian Sun and Zhenyu Liu and Dongfang Li and Xinyuan Wei and Youcheng Pan and Yang Xiang and Meishan Zhang and Haofen Wang and Jun Yu and Baotian Hu and Min Zhang},
year={2025},
eprint={2506.20923},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2506.20923},
}
@misc{hu2025kalmembedding,
title={KaLM-Embedding: Superior Training Data Brings A Stronger Embedding Model},
author={Xinshuo Hu and Zifei Shan and Xinping Zhao and Zetian Sun and Zhenyu Liu and Dongfang Li and Shaolin Ye and Xinyuan Wei and Qian Chen and Baotian Hu and Haofen Wang and Jun Yu and Min Zhang},
year={2025},
eprint={2501.01028},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2501.01028},
}