Use
Download tranche.py from this repository (it is also in the code repository), then:
from tranche import Tranche m = Tranche("areevai/tranche-2b")m.rank("Acme Software Holdings, LLC", "2026Q2", existing_lenders=["Ares"])[:5]# [(lender group, score), ...] most likely new lender first; existing lenders are left out
m.candidates lists the 71 lender groups. Names in existing_lenders must be spelled as in that list. Scores are logits; use them for ranking, not as calibrated probabilities.
Needs peft, and downloads the base model Qwen/Qwen3.5-2B.
Results
Test split: 1,192 borrower-quarter events in 2026 (train to end 2024, validation 2025). MRR is mean reciprocal rank: if the true lender is ranked first the score is 1, if second 0.5, and so on, averaged over events. Higher is better. A random ranking scores 0.077.
Table with columns: Top-1, Top-10, MRR | Top-1 | Top-10 | MRR |
|---|
| This checkpoint (seed 2) | -- | 0.462 | 0.228 |
| Paper, Tranche-2B, mean of 3 seeds | 0.108 | 0.444 | 0.219 ± 0.007 |
| Tranche-0.15B, mean of 3 seeds | 0.108 | 0.438 | 0.216 ± 0.001 |
| Gradient boosting on lending-history features | 0.108 | 0.498 | 0.227 |
| Recent-popularity rule | 0.093 | 0.440 | 0.210 |
| Claude Opus 5.5 zero-shot | 0.087 | 0.411 | 0.198 |
| Claude Opus 5.5 with 8 retrieved examples | 0.114 | 0.451 | 0.226 |
This checkpoint is the paper's seed-2 run. Of the three seeds, seed 2 had the best validation score, so we chose it. It scores above the three-seed mean, so expect about 0.219 on new data, not 0.228.
Against Claude Opus 5.5 zero-shot, the paper's paired difference is +0.021 MRR (95% interval 0.003 to 0.038, adjusted p = 0.43), which is not significant after correction for multiple tests. Against Claude Opus with eight retrieved examples it is −0.008 (−0.026 to 0.010), also not significant. Accuracy is not what separates these methods. Cost and speed are. This model is not the most accurate one in the paper. Tranche-GBM (code in the repository, no weights) is the most accurate matching model in the paper: MRR 0.303 against 0.263 for Claude Opus with examples in the main setting (previous quarter's filings in hand). Under strict point-in-time inputs its lead (0.264 against 0.245) is not significant after correction. It reads the lenders' full portfolios; when Claude Opus is shown a summary of the same holdings it scores 0.291, and the lead (0.012) is no longer significant.
Cost and speed: Tranche-2B costs about 1.78permilliondecisionswhenbatched(31 one request at a time) and answers in 111 ms on a GPU. Claude Opus costs about 1,312permillionthroughthebatchinterface(1,946 with examples) and answers in about 1.8 seconds.
Scores move slightly with batching. With the batching used in training (inputs sorted by length, 256 per batch) these files give MRR 0.2281 against 0.2279 at training time (export_check.json). The model runs in bfloat16, so batch size and padding change the arithmetic slightly. In the check, 98.8% of test events kept the same top-ranked lender.
Files
Table with columns: File, What it is| File | What it is |
|---|
adapter_model.safetensors, adapter_config.json | The LoRA adapter (loads with peft) |
head.safetensors | The decision head |
tranche_config.json | Candidate list, pooling and input settings |
export_check.json | Check against the training run's test predictions |
tranche.py | Loader and scoring code |
Limits
- Trained on business development company filings only, which cover part of private credit. It sees holdings, not the lenders that declined or lost a deal.
- The task is hard: the right lender is ranked first about one time in nine and is in the top ten a little under half the time. A plain "who lent most in recent quarters" rule scores MRR 0.210. It does well for borrowers that already have lenders, but only when last quarter's filings are already public.
- Tested on two full quarters of 2026 (plus 31 events from a third). Lender behaviour changes; refit on newer filings before relying on it. In the paper, models refitted on data to 2025 gain 0.04 to 0.05 MRR on 2026 (Tranche-2B was not refitted).
- The data pipeline has been reviewed by AI models. Two model reviews found and fixed three data defects.
- A shortlist aid for people, not a decision-maker. Nothing here is financial advice.
Licence and citation
Weights: Apache-2.0, as for the base model. Training data: LenderBench, derived from public SEC filings.
@misc{palanisamy2026lenderbench, title = {LenderBench: Benchmarking Specialized Decision Models for Private Credit}, author = {Palanisamy, Sathish Kumar}, year = {2026}, note = {MindGryd Software Private Limited}}