Model reference · open weights

gte-large-en

Embeddings Alibaba-NLP Embeddings 1 build Open weights 922k dl/mo

gte-large-en is an open-weight embedding model from Alibaba. gte-large-en-v1.5 (FP32) weighs 868 MB; the smallest configuration that runs it is RTX 3060 12 GB.

  • gte-large-en-v1.5 is a text embedding model developed by Alibaba for sentence-similarity tasks in English.
  • It features 434 million parameters, supports a context length of 8192 tokens, and is licensed under Apache-2.0.
  • The model achieves an average score of 65.39 on the MTEB benchmark and 86.71 on LoCo long-context retrieval tests.

Summary of the Alibaba-NLP/gte-large-en-v1.5 model card, 2026-10-01

What it is

Released byAlibaba
Released2024-04-20
Parameters434M
VRAM868 MB for the weights

What it runs on

Memory and cards for gte-large-en-v1.5 (FP32)

868 MBweights, file size
1.1 GBruntime overhead
CardRunsMemory
RTX 3060 12 GBfits11.6 GB
RTX 4060 Ti 16 GBfits15.4 GB
RTX 3090 24 GBfits23.4 GB
RTX 4090 24 GBfits23.4 GB
RTX 5090 32 GBfits31.0 GB
L40S 48 GBfits44.0 GB
A100 80 GBfits78.2 GB
H100 80 GBfits78.1 GB
RTX PRO 6000 Blackwell 96 GBfits93.8 GB
DGX Spark (GB10) 128 GB unifiedfits107 GB
H200 141 GBfits138 GB
B200 180 GBfits176 GB

From the model card

What Alibaba says about gte-large-en

Read the model card

We introduce gte-v1.5 series, upgraded gte embeddings that support the context length of up to 8192, while further enhancing model performance. The models are built upon the transformer++ encoder backbone (BERT + RoPE + GLU).

The gte-v1.5 series achieve state-of-the-art scores on the MTEB benchmark within the same model size category and prodvide competitive on the LoCo long-context retrieval tests (refer to Evaluation).

We also present the gte-Qwen1.5-7B-instruct, a SOTA instruction-tuned multi-lingual embedding model that ranked 2nd in MTEB and 1st in C-MTEB.

Model list

ModelsLanguageModel SizeMax Seq. LengthDimensionMTEB-enLoCo
gte-Qwen1.5-7B-instructMultiple772032768409667.3487.57
gte-large-en-v1.5English4348192102465.3986.71
gte-base-en-v1.5English137819276864.1187.44

How to Get Started with the Model

Use the code below to get started with the model.

# Requires transformers>=4.36.0

import torch.nn.functional as F
from transformers import AutoModel, AutoTokenizer

input_texts = [
    "what is the capital of China?",
    "how to implement quick sort in python?",
    "Beijing",
    "sorting algorithms"
]

model_path = 'Alibaba-NLP/gte-large-en-v1.5'
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModel.from_pretrained(model_path, trust_remote_code=True)

# Tokenize the input texts
batch_dict = tokenizer(input_texts, max_length=8192, padding=True, truncation=True, return_tensors='pt')

outputs = model(**batch_dict)
embeddings = outputs.last_hidden_state[:, 0]

# (Optionally) normalize embeddings
embeddings = F.normalize(embeddings, p=2, dim=1)
scores = (embeddings[:1] @ embeddings[1:].T) * 100
print(scores.tolist())

It is recommended to install xformers and enable unpadding for acceleration, refer to enable-unpadding-and-xformers.

Use with sentence-transformers:

# Requires sentence_transformers>=2.7.0

from sentence_transformers import SentenceTransformer
from sentence_transformers.util import cos_sim

sentences = ['That is a happy person', 'That is a very happy person']

model = SentenceTransformer('Alibaba-NLP/gte-large-en-v1.5', trust_remote_code=True)
embeddings = model.encode(sentences)
print(cos_sim(embeddings[0], embeddings[1]))

Use with transformers.js:

// npm i @xenova/transformers
import { pipeline, dot } from '@xenova/transformers';

// Create feature extraction pipeline
const extractor = await pipeline('feature-extraction', 'Alibaba-NLP/gte-large-en-v1.5', {
    quantized: false, // Comment out this line to use the quantized version
});

// Generate sentence embeddings
const sentences = [
    "what is the capital of China?",
    "how to implement quick sort in python?",
    "Beijing",
    "sorting algorithms"
]
const output = await extractor(sentences, { normalize: true, pooling: 'cls' });

// Compute similarity scores
const [source_embeddings, ...document_embeddings ] = output.tolist();
const similarities = document_embeddings.map(x => 100 * dot(source_embeddings, x));
console.log(similarities); // [41.86354093370361, 77.07076371259589, 37.02981979677899]

Training Details

Training Data

  • Masked language modeling (MLM): c4-en
  • Weak-supervised contrastive pre-training (CPT): GTE pre-training data
  • Supervised contrastive fine-tuning: GTE fine-tuning data

Training Procedure

To enable the backbone model to support a context length of 8192, we adopted a multi-stage training strategy. The model first undergoes preliminary MLM pre-training on shorter lengths. And then, we resample the data, reducing the proportion of short texts, and continue the MLM pre-training.

The entire training process is as follows:

  • MLM-512: lr 2e-4, mlm_probability 0.3, batch_size 4096, num_steps 300000, rope_base 10000
  • MLM-2048: lr 5e-5, mlm_probability 0.3, batch_size 4096, num_steps 30000, rope_base 10000
  • MLM-8192: lr 5e-5, mlm_probability 0.3, batch_size 1024, num_steps 30000, rope_base 160000
  • CPT: max_len 512, lr 5e-5, batch_size 28672, num_steps 100000
  • Fine-tuning: TODO

Evaluation

MTEB

The results of other models are retrieved from MTEB leaderboard.

The gte evaluation setting: mteb==1.2.0, fp16 auto mix precision, max_length=8192, and set ntk scaling factor to 2 (equivalent to rope_base * 2).

Model NameParam Size (M)DimensionSequence LengthAverage (56)Class. (12)Clust. (11)Pair Class. (3)Reran. (4)Retr. (15)STS (10)Summ. (1)
gte-large-en-v1.54091024819265.3977.7547.9584.6358.5057.9181.4330.91
mxbai-embed-large-v1335102451264.6875.6446.7187.260.1154.398532.71
multilingual-e5-large-instruct5601024

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

Benchmarks

Reported results

As published on the model card: the maker's own numbers, not measured by AxForge.

TaskDatasetMetricScore
ClassificationMTEB AmazonCounterfactualClassification (en)accuracy73.015
ClassificationMTEB AmazonCounterfactualClassification (en)ap35.053
ClassificationMTEB AmazonCounterfactualClassification (en)f166.713
ClassificationMTEB AmazonPolarityClassificationaccuracy93.972
ClassificationMTEB AmazonPolarityClassificationap90.595
ClassificationMTEB AmazonPolarityClassificationf193.958
ClassificationMTEB AmazonReviewsClassification (en)accuracy54.196
ClassificationMTEB AmazonReviewsClassification (en)f153.801
RetrievalMTEB ArguAnamap_at_147.297
RetrievalMTEB ArguAnamap_at_1064.303
RetrievalMTEB ArguAnamap_at_10064.541
RetrievalMTEB ArguAnamap_at_100064.541
RetrievalMTEB ArguAnamap_at_360.728
RetrievalMTEB ArguAnamap_at_563.114
RetrievalMTEB ArguAnamrr_at_148.435
RetrievalMTEB ArguAnamrr_at_1064.657
RetrievalMTEB ArguAnamrr_at_10064.901
RetrievalMTEB ArguAnamrr_at_100064.901
RetrievalMTEB ArguAnamrr_at_361.060
RetrievalMTEB ArguAnamrr_at_563.514
RetrievalMTEB ArguAnandcg_at_147.297
RetrievalMTEB ArguAnandcg_at_1072.107
RetrievalMTEB ArguAnandcg_at_10072.963
RetrievalMTEB ArguAnandcg_at_100072.963
© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms