alt.freeweights.embed / gte-multilingual-reranker-base
From: Alibaba-NLP <huggingface.co/Alibaba-NLP>Newsgroups: alt.freeweights.embedSubject:

gte-multilingual-reranker-base

Date: 2026-11-14Commit: 8215cf0Signed: 2DC28CC7B26A283B ✓

Text ranking model with 306M parameters. Safetensors weights, 629 MB in all. Published by Alibaba-NLP under Apache-2.0.

306M params629MBgte-multilingual-reranker-basesafetensorspermissive
FactsParams306MSize629 MBFormatssafetensorsTasktext rankingLicenseApache-2.0From sourcepermissive
$ fw get Alibaba-NLP/gte-multilingual-reranker-base
# manifest sha256 157ec15c250b… · 629 MB · 8 files
$ fw verify ./gte-multilingual-reranker-base Alibaba-NLP/gte-multilingual-reranker-base
From sourceHosted (signed)Alibaba-NLP/gte-multilingual-reranker-baseLast check: 2026-11-14 21:07 UTC

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

Works with

Evaluate with

Overview

Size
629 MB
Weights
612 MB (safetensors)
Parameters
306M
Formats
safetensors
Task
text ranking
License
Apache-2.0 (permissive)
Files
8, each with a sha256
Publisher
Alibaba-NLP
Added
2026-11-14
Section
alt.freeweights.embed
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-14 21:07 UTCpassed

Model card

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

gte-multilingual-reranker-base#

The gte-multilingual-reranker-base model is the first reranker model in the GTE family of models, featuring several key attributes:

  • High Performance: Achieves state-of-the-art (SOTA) results in multilingual retrieval tasks and multi-task representation model evaluations when compared to reranker models of similar size.
  • Training Architecture: Trained using an encoder-only transformers architecture, resulting in a smaller model size. Unlike previous models based on decode-only LLM architecture (e.g., gte-qwen2-1.5b-instruct), this model has lower hardware requirements for inference, offering a 10x increase in inference speed.
  • Long Context: Supports text lengths up to 8192 tokens.
  • Multilingual Capability: Supports over 70 languages.

Model Information#

  • Model Size: 306M
  • Max Input Tokens: 8192
Usage#
  • **It is recommended to install xformers and enable unpadding for acceleration,

refer to enable-unpadding-and-xformers.**

Using Huggingface transformers (transformers>=4.36.0)

import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer

model_name_or_path = "Alibaba-NLP/gte-multilingual-reranker-base"

tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)
model = AutoModelForSequenceClassification.from_pretrained(
    model_name_or_path, trust_remote_code=True,
    torch_dtype=torch.float16
)
model.eval()

pairs = [["中国的首都在哪儿","北京"], ["what is the capital of China?", "北京"], ["how to implement quick sort in python?","Introduction of quick sort"]]
with torch.no_grad():
    inputs = tokenizer(pairs, padding=True, truncation=True, return_tensors='pt', max_length=512)
    scores = model(**inputs, return_dict=True).logits.view(-1, ).float()
    print(scores)

# tensor([1.2315, 0.5923, 0.3041])

Usage with infinity:

Infinity, a MIT Licensed Inference RestAPI Server.

docker run --gpus all -v $PWD/data:/app/.cache -p "7997":"7997" \
michaelf34/infinity:0.0.68 \
v2 --model-id Alibaba-NLP/gte-multilingual-reranker-base --revision "main" --dtype bfloat16 --batch-size 32 --device cuda --engine torch --port 7997

Usage with Text Embeddings Inference (TEI):

  • CPU:
docker run --platform linux/amd64 \
  -p 8080:80 \
  -v $PWD/data:/data \
  --pull always \
  ghcr.io/huggingface/text-embeddings-inference:cpu-1.7 \
  --model-id Alibaba-NLP/gte-multilingual-reranker-base
  • GPU:
docker run --gpus all \
  -p 8080:80 \
  -v $PWD/data:/data \
  --pull always \
  ghcr.io/huggingface/text-embeddings-inference:1.7 \
  --model-id Alibaba-NLP/gte-multilingual-reranker-base

Then you can send requests to the deployed API via the /rerank route (see the Text Embeddings Inference OpenAPI Specification for more details):

curl https://0.0.0.0:8080/rerank \
  -H "Content-Type: application/json" \
  -d '{
    "query": "中国的首都在哪儿",
    "raw_scores": false,
    "return_text": false,
    "texts": [ "北京" ],
    "truncate": true,
    "truncation_direction": "right"
  }'

Evaluation#

Results of reranking based on multiple text retreival datasets

Image: image

More detailed experimental results can be found in the paper.

Cloud API Services#

In addition to the open-source GTE series models, GTE series models are also available as commercial API services on Alibaba Cloud.

  • Embedding Models: Three versions of the text embedding models are available: text-embedding-v1/v2/v3, with v3 being the latest API service.
  • ReRank Models: The gte-rerank model service is available.

Note that the models behind the commercial APIs are not entirely identical to the open-source models.

Citation#

If you find our paper or models helpful, please consider cite:

@inproceedings{zhang2024mgte,
  title={mGTE: Generalized Long-Context Text Representation and Reranking Models for Multilingual Text Retrieval},
  author={Zhang, Xin and Zhang, Yanzhao and Long, Dingkun and Xie, Wen and Dai, Ziqi and Tang, Jialong and Lin, Huan and Yang, Baosong and Xie, Pengjun and Huang, Fei and others},
  booktitle={Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: Industry Track},
  pages={1393--1412},
  year={2024}
}

Files

8 files · 629 MBWeights 612 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 8 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md5.66 KB3d010454d2949f8188bb3496951594e19c35076652e04d203cbd7e20ef3a3871
config.json1.49 KB995730781d157e147c13ccdfe0eb20a0875c486b6c4de8c97f0bbd845549dbc0
images/mgte-reranker.png238 KB2588b1442676484f941f4075bfcead1cdd7da83af4999d37ab45507495bdd784
model.safetensors612 MB10ebaa49322dd7e01a13a91c49810939e3f91f231aceaa47fdf0cab3083954f6
special_tokens_map.json964 B8c785abebea9ae3257b61681b4e6fd8365ceafde980c21970d001e834cf10835
tokenizer.json17.1 MBd6f76fe13d42f80dcee0cb86a1aeb5f14f8909bb8a8782f7a4a4ad76697ef164
tokenizer_config.json1.34 KB6f00514620aff01ba8b7291b2394e98daca5be264cb743805232d9ae27494b2a
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
8215cf0491 pinned now manifest updated, same commit2026-11-14 21:07 UTC8 files · 629 MB
8215cf04912026-11-14 21:07 UTC8 files · 629 MB

Use it

$ fw get Alibaba-NLP/gte-multilingual-reranker-base
# manifest sha256 157ec15c250b… · 629 MB · 8 files
$ fw verify ./gte-multilingual-reranker-base Alibaba-NLP/gte-multilingual-reranker-base
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/Alibaba-NLP/gte-multilingual-reranker-base.json --dir ./gte-multilingual-reranker-base $ python3 fw.py verify ./gte-multilingual-reranker-base ./Alibaba-NLP__gte-multilingual-reranker-base.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download Alibaba-NLP/gte-multilingual-reranker-base --revision 8215cf04918ba6f7b6a62bb44238ce2953d8831c --local-dir ./gte-multilingual-reranker-base

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-14
Text in
README.md
Text sha256
3d010454d2949f8188bb3496951594e19c35076652e04d203cbd7e20ef3a3871
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: Alibaba-NLP <huggingface.co/Alibaba-NLP>Newsgroups: alt.freeweights.embedSubject: gte-multilingual-reranker-baseDate: 2026-11-14Commit: 8215cf0Signed: 2DC28CC7B26A283B ✓
Upstream
Alibaba-NLP/gte-multilingual-reranker-base
Pinned commit
8215cf04918ba6f7b6a62bb44238ce2953d8831c
Manifest
gte-multilingual-reranker-base.json · .minisig
Manifest sha256
157ec15c250b476af5a24a012ad287fc4f5d15be0ca22d83153c97be234ab4f4
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:07 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/Alibaba-NLP/gte-multilingual-reranker-base.json $ curl -O https://freeweights.allternit.com/manifests/Alibaba-NLP/gte-multilingual-reranker-base.json.minisig $ minisign -Vm gte-multilingual-reranker-base.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

1 model in the catalog name this one as their parent.

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download Alibaba-NLP/gte-multilingual-reranker-base
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. gte-multilingual-reranker-base.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of gte-multilingual-reranker-base. Each has its own license check and page.

From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-MiniLM-L6-v1
From: unsloth <huggingface.co/unsloth>Subject: all-MiniLM-L6-v2
From: mlx-community <huggingface.co/mlx-community>Subject: all-MiniLM-L6-v2-4bit
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-mpnet-base-v1
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: allenai-specter
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: bert-base-nli-max-tokens