alt.freeweights.vision / Matroyshka-ReRanker-passage
From: BAAI <huggingface.co/BAAI>Newsgroups: alt.freeweights.visionSubject:

Matroyshka-ReRanker-passage

Date: 2026-11-15Commit: b483748Signed: 2DC28CC7B26A283B ✓

Text classification model with 7.1B parameters. Safetensors weights, 29.2 GB in all. Published by BAAI under Apache-2.0.

7.1B params29.2GBMatroyshka-ReRanker-passagesafetensorspermissive
FactsParams7.1BSize29.2 GBFormatssafetensorsTasktext classificationLicenseApache-2.0From sourcepermissive
$ fw get BAAI/Matroyshka-ReRanker-passage
# manifest sha256 9f20ed4cf84d… · 29.2 GB · 45 files
$ fw verify ./Matroyshka-ReRanker-passage BAAI/Matroyshka-ReRanker-passage
From sourceHosted (signed)BAAI/Matroyshka-ReRanker-passageLast check: 2026-11-15 04:16 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
29.2 GB
Weights
29.1 GB (safetensors)
Parameters
7.1B
Formats
safetensors
Task
text classification
License
Apache-2.0 (permissive)
Files
45, each with a sha256
Publisher
BAAI
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 04:16 UTCpassed

Model card

From the publisher at commit b483748. Shown as plain text with links; images open at the publisher.

Matroyshka Re-Ranker#

More details please refer to our Github: FlagEmbedding.

Matroyshka Re-Ranker (paper)

Usage#

git clone https://github.com/FlagOpen/FlagEmbedding.git
cd ./FlagEmbedding/research/Matroyshka_reranker
from rank_model import MatroyshkaReranker

compress_ratio = 2 # config your compress ratio
compress_layers = [8, 16] # cofig your layers to compress
cutoff_layers = [20, 24] # config your layers to output

reranker = MatroyshkaReranker(
    model_name_or_path='BAAI/Matroyshka-ReRanker-passage',
    peft_path=[
        './models/Matroyshka-ReRanker-passage/compensate/layer/full'
    ]
    use_fp16=True,
    cache_dir='./model_cache',
    compress_ratio=compress_ratio,
    compress_layers=compress_layers,
    cutoff_layers=cutoff_layers
)

score = reranker.compute_score(['query', 'passage'])
print(score)

scores = reranker.compute_score([['what is panda?', 'hi'], ['what is panda?', 'The giant panda (Ailuropoda melanoleuca), sometimes called a panda bear or simply panda, is a bear species endemic to China.']])
print(scores)

Citation#

If you find this repository useful, please consider giving a star and citation

@inproceedings{liu2025fitting,
  title={Fitting Into Any Shape: A Flexible LLM-Based Re-Ranker With Configurable Depth and Width},
  author={Liu, Zheng and Li, Chaofan and Xiao, Shitao and Li, Chaozhuo and Zhang, Chen Jason and Liao, Hao and Lian, Defu and Shao, Yingxia},
  booktitle={Proceedings of the ACM on Web Conference 2025},
  pages={3942--3951},
  year={2025}
}

Files

45 files · 29.2 GBWeights 29.1 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 45 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md1.82 KBeff133e72dc4406a0684ec5f4bdc96ab2a83ae2546cde9fc3f0c1dafc499293b
compensate/layer/full/README.md5.11 KB196fbe597a57461df93306fa52fd4cd73cfc879376c3fe0e4aa0707d738e8e64
compensate/layer/full/adapter_config.json755 B0098fcf2663e8fef8a38353c4975c4685c6790537e0ac42af8a50cb339756051
compensate/layer/full/adapter_model.safetensors175 MB24baabc2b828ec94bd751f1f27b840391dffd3ebeac1d98d90830ae498f9b5da
compensate/layer/full/special_tokens_map.json438 B719833ff26ac897a3ec8ed946028a135de2a351470af59b4008744ab1f0ee9b7
compensate/layer/full/tokenizer.model493 KBdadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
compensate/layer/full/tokenizer_config.json997 B8e802871aac981f40a275c37ccc24a645f30ce789c6383ad8e87e1bc388e6a44
compensate/layer/full/training_args.bin6.46 KB78fa430567576e60bcb4dbdae1c31c484d1709b2d5d74c092507e8e2a7644419
compensate/token/compress_2/README.md5.11 KB196fbe597a57461df93306fa52fd4cd73cfc879376c3fe0e4aa0707d738e8e64
compensate/token/compress_2/adapter_config.json755 B1ee5ab5020fb60975c429a6e2308c1c8b9562f6e92e16323aa8402f053168dd4
compensate/token/compress_2/adapter_model.safetensors175 MBfae7e261f18df3fb34ab3704a561aca2563410a18986669bcb3e135850d6fc0f
compensate/token/compress_2/special_tokens_map.json438 B719833ff26ac897a3ec8ed946028a135de2a351470af59b4008744ab1f0ee9b7
compensate/token/compress_2/tokenizer.model493 KBdadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
compensate/token/compress_2/tokenizer_config.json997 B8e802871aac981f40a275c37ccc24a645f30ce789c6383ad8e87e1bc388e6a44
compensate/token/compress_2/training_args.bin6.52 KBc1f1c1f49885f2e50d58a714e19c4392d71403dc6a14c9e64fdd2c0b24b4a37f
compensate/token/compress_4/README.md5.11 KB196fbe597a57461df93306fa52fd4cd73cfc879376c3fe0e4aa0707d738e8e64
compensate/token/compress_4/adapter_config.json755 B4baabd6310859b610a8d4ae3d6198972e423c7dff0471c856156172a9e804c96
compensate/token/compress_4/adapter_model.safetensors175 MB18a96e0d1bf8017d610f535589ac6eb5dad7207e9c9e253699296015245364ed
compensate/token/compress_4/special_tokens_map.json438 B719833ff26ac897a3ec8ed946028a135de2a351470af59b4008744ab1f0ee9b7
compensate/token/compress_4/tokenizer.model493 KBdadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
compensate/token/compress_4/tokenizer_config.json997 B8e802871aac981f40a275c37ccc24a645f30ce789c6383ad8e87e1bc388e6a44
compensate/token/compress_4/training_args.bin6.52 KBba1eb245f531ccd6aaa01b40275ee359e183aa638a68083344113a7ba4ef92c6
compensate/token/compress_8/README.md5.11 KB196fbe597a57461df93306fa52fd4cd73cfc879376c3fe0e4aa0707d738e8e64
compensate/token/compress_8/adapter_config.json755 B5014502b8d8c246af207b48a7aaa1d2cc6f76259dc16a5712a0716d192bb8196
compensate/token/compress_8/adapter_model.safetensors175 MB130e1d28ecd756f07937030ddfb00da0ed8cf94787670739488e5e20c9f8f928
compensate/token/compress_8/special_tokens_map.json438 B719833ff26ac897a3ec8ed946028a135de2a351470af59b4008744ab1f0ee9b7
compensate/token/compress_8/tokenizer.model493 KBdadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
compensate/token/compress_8/tokenizer_config.json997 B8e802871aac981f40a275c37ccc24a645f30ce789c6383ad8e87e1bc388e6a44
compensate/token/compress_8/training_args.bin6.52 KBbcfc9f5bd0a0116d7c12455bb2f9420d8ae00ac0c2da87b6fc872dcc646e8fab
config.json1.05 KBa51df2d6fdbfbeba2992975ce606e083b5dc3afdb29a16548fa7d9f7aed4687d
generation_config.json111 B40dca590c6e43326b4c57fda896a24c6ad0e957c110ae09df0b1670a1f3e3671
mistral_config.py5.72 KB44d890f3b012c1a8d9f3dd4254dd944f9d2786e7119375434d66ff8f1922acf1
mistral_model.py33.4 KBbe95461e71d9291aa507852255685eb4f64b284eb7f34ad3829e564e7bb18294
model-00001-of-00006.safetensors4.99 GBe821f9fa243c6e3e02592d30a632a2c55feca0c45adb2ee0d867283836f64661
model-00002-of-00006.safetensors4.90 GB6d2663dce28c585a75754915d577692cf4944320ffe6134f4fd85f8a83180858
model-00003-of-00006.safetensors5.00 GBd44ee1bf1f2cdd66eb19d47114a23f9aa1ecf676505fc0f1a8278f37dc97e207
model-00004-of-00006.safetensors5.00 GBcae289ea644d03c9530edebfe17d8676dd9e21c54f6a1327c8d4d8af542e9e52
model-00005-of-00006.safetensors4.83 GB8b6be4beb63a4efbc3c0188e42b4944c44f4420f637200f2ba1d7c21dcef26c0
model-00006-of-00006.safetensors3.73 GB7b5e940a7b79d56c0b94e22150f711f8ed212f632a017f40cf691d684ed1161a
model.safetensors.index.json26.0 KB9f38008c5a694c08a5e03a42cb8fc211da9ae91762277b246ac603dd843e7a7b
special_tokens_map.json438 B719833ff26ac897a3ec8ed946028a135de2a351470af59b4008744ab1f0ee9b7
tokenizer.json3.51 MB1d5b9634c23bdd4540f633d327120e1fa4b57a2a723a56d7a92debfc4d15c061
tokenizer.model493 KBdadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
tokenizer_config.json998 Bf45f0e459449caa1cb7a2e58b74ff713b70b4b139987cd4f4aa766813b5c6566
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
b483748d42 pinned now2026-11-15 04:16 UTC45 files · 29.2 GB

Use it

$ fw get BAAI/Matroyshka-ReRanker-passage
# manifest sha256 9f20ed4cf84d… · 29.2 GB · 45 files
$ fw verify ./Matroyshka-ReRanker-passage BAAI/Matroyshka-ReRanker-passage
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/BAAI/Matroyshka-ReRanker-passage.json --dir ./Matroyshka-ReRanker-passage $ python3 fw.py verify ./Matroyshka-ReRanker-passage ./BAAI__Matroyshka-ReRanker-passage.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download BAAI/Matroyshka-ReRanker-passage --revision b483748d4249677bdc30eded672672c0af0d6983 --local-dir ./Matroyshka-ReRanker-passage

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
eff133e72dc4406a0684ec5f4bdc96ab2a83ae2546cde9fc3f0c1dafc499293b
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: BAAI <huggingface.co/BAAI>Newsgroups: alt.freeweights.visionSubject: Matroyshka-ReRanker-passageDate: 2026-11-15Commit: b483748Signed: 2DC28CC7B26A283B ✓
Upstream
BAAI/Matroyshka-ReRanker-passage
Pinned commit
b483748d4249677bdc30eded672672c0af0d6983
Manifest
Matroyshka-ReRanker-passage.json · .minisig
Manifest sha256
9f20ed4cf84de6ea4365dd778acaf3df725153b8f7650a1f5600ef016404024c
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:16 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/BAAI/Matroyshka-ReRanker-passage.json $ curl -O https://freeweights.allternit.com/manifests/BAAI/Matroyshka-ReRanker-passage.json.minisig $ minisign -Vm Matroyshka-ReRanker-passage.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download BAAI/Matroyshka-ReRanker-passage
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Matroyshka-ReRanker-passage.json. Provenance. Takedown history: none.
From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX