Views
No views yet
retrieve → rerank). It scores a (query, capability) pair jointly and
re-orders a retriever's top-k candidates for precision.Qwen/Qwen3-0.6B (backbone trained, not frozen) + a Linear(1024 → 1) scoring head on the last-token hidden state.SKILL.md across 7,029 repos + the Hyperspace tool/agent catalog), 1.16M mined (query, capability) pairs with top-k hard negatives and cluster-graded labels (190,085 intent clusters).MATRIX_V6_ARCHITECTURE.md §3). So this v6 reranker (0.6B) is smaller than the v5 model it supersedes, and out-scores a 4B baseline (below).| metric | retriever only | + this reranker | lift |
|---|---|---|---|
| cluster@1 | 0.517 | 0.696 | +0.179 |
| ndcg@10 (cluster) | 0.489 | 0.600 | +0.111 |
| ret@5 | 0.472 | 0.601 | +0.129 |
ours_0.6B, cluster@1 0.696) beats the 4B zeroentropy/zerank-2 baseline (0.599) and the retriever-only floor (0.519).| file | what |
|---|---|
model.safetensors | the reranker weights (backbone.* + head) |
final.pt | original training checkpoint ({model_state_dict, config}), for provenance |
modeling_matrix_reranker.py | exact architecture + load + score() |
config.json | arch / pooling / input-format metadata |
tokenizer* , vocab.json | Qwen3-0.6B tokenizer |
1from modeling_matrix_reranker import MatrixV6Reranker, format_capability
2from transformers import AutoTokenizer
3tok = AutoTokenizer.from_pretrained("hyperspaceai/matrix-v6-reranker")
4m = MatrixV6Reranker.from_checkpoint("model.safetensors").to("cuda")
5q = "convert a pdf to markdown"
6caps = [format_capability("pdf-to-markdown", "Convert PDF documents into clean Markdown."),
7 format_capability("weather-now", "Get the current weather for a city.")]
8print(m.score(tok, q, caps, device="cuda")) # higher = more relevanthyperspaceai/matrix-v6
(base Qwen/Qwen3-Embedding-0.6B, 446,897 capabilities). Canonical serving code:
agentic-os-prod serve_v6.py.