ModelsReviewed · Alibaba (Alibaba-NLP team)

gte-base-en-v1.5

gte-base-en-v1.5 is an English text embedding model for developers building search and text matching, but its documented Python setup requires allowing custom repository code. It has 137 million parameters, produces 768-dimensional vectors and supports inputs up to 8,192 tokens.

Researched 13 Nov 2026

In short.

gte-base-en-v1.5 is an English text embedding model for developers building search and document retrieval, but its documented Python loaders require trusting custom repository code. Its 137 million parameters produce 768-dimensional vectors from inputs up to 8,192 tokens. Alibaba reports a 64.11 average across 56 MTEB tasks and 87.44 across five LoCo retrieval tasks. These are published results, not independently reproduced findings. Minimum hardware, deployment costs and quality on a reader's documents are unknown; no code was executed for this report.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage comprises the complete supplied README at https://huggingface.co/Alibaba-NLP/gte-base-en-v1.5/raw/a829fd0e060bb84554da0dfd354d0de0f7712b7f/README.md, including its Apache-2.0 metadata and citation text. No separate license or notice files were supplied. Linked pages, other folders, model weights and custom implementation code are outside this evidence. All numerical performance results are source-reported. Loading, inference, acceleration, quantization and server deployment were not executed or assessed.

The overview

Identity

Alibaba-NLP/gte-base-en-v1.5 is a text embedding model developed by the Institute for Intelligent Computing, Alibaba Group. It belongs to the gte-v1.5 series and converts English text into numerical representations for comparison.

The model card examined is fixed to repository commit a829fd0e060bb84554da0dfd354d0de0f7712b7f: [https://huggingface.co/Alibaba-NLP/gte-base-en-v1.5/raw/a829fd0e060bb84554da0dfd354d0de0f7712b7f/README.md].

Assessment

This is a reasonable candidate to evaluate when an English search application needs longer inputs while retaining 768-dimensional embeddings. The model card combines an 8,192-token input limit with documented Python, JavaScript and server integration examples.

The reported benchmarks support investigating its retrieval quality, but do not establish production latency, memory requirements or accuracy on a particular document collection. The custom Python implementation is not included in the supplied evidence.

Users

Developers building English document search, related-question matching or document grouping can use its vectors as application components. Beginners will need enough programming knowledge to load a model, encode text and compare the resulting vectors.

A plausible use in retrieval-augmented generation is finding relevant passages before a separate model drafts an answer. That application would also need document preparation, an index and answer-generation logic; the card demonstrates embedding and similarity operations.

Capabilities

The model accepts up to 8,192 tokens, meaning tokenizer-defined pieces of text rather than 8,192 words, and produces a 768-number vector for each input. The examples use these vectors to calculate sentence or query-to-document similarity.

The card reports evaluations covering retrieval, classification, clustering, pair classification, reranking, semantic textual similarity and summary evaluation. Its MTEB retrieval average is 54.09 and sentence-similarity average is 81.97. The SummEval results concern similarity correlations for summary evaluation; the documented inference output is a vector.

Using it

Requirements

The Python examples specify Transformers 4.36.0 or newer with PyTorch, or Sentence Transformers 2.7.0 or newer. Both model-loading examples set trust_remote_code=True, permitting custom repository code during loading. That implementation was not assessed.

The authors recommend xformers and unpadding for acceleration. Minimum RAM, GPU memory and measured throughput are not stated. The JavaScript example uses @xenova/transformers without pinning a package version.

Mechanism

The model uses the transformer++ encoder backbone, described as BERT with rotary position embeddings, or RoPE, and gated linear units, or GLU. The documented embedding comes from the first token's final hidden state, commonly called CLS pooling.

Optional L2 normalization makes vectors unit length, allowing their dot product to express cosine similarity. Training combines staged masked-language pretraining with contrastive pretraining and fine-tuning. The card names c4-en for masked-language modeling and refers to GTE paper datasets for the contrastive stages.

Setup

The Transformers recipe loads AutoTokenizer and AutoModel for Alibaba-NLP/gte-base-en-v1.5, tokenizes with padding, truncation and max_length=8192, then takes outputs.last_hidden_state[:, 0]. Normalization is optional in that recipe. The Sentence Transformers example loads the same identifier and calls encode.

The JavaScript recipe requests feature extraction with CLS pooling and normalization. It explicitly disables quantization and says removing that option uses a quantized version; comparative quality is not reported. A separate Infinity Docker example specifies CUDA, bfloat16 and batch size 32, which describe that example rather than minimum hardware requirements.

Example

The card illustrates matching the question about China's capital against three candidates: a Python quicksort question, Beijing and sorting algorithms. It encodes all four texts, normalizes their vectors and compares the question with each candidate.

The dot products are multiplied by 100 for display. These are similarity scores, not calibrated probabilities that a candidate answers the question. The source includes example output, but no scores were generated or reproduced for this report.

Assessment & evidence

Limitations

English is the only listed language, so suitability for other languages is unknown. The Transformers example truncates inputs beyond its configured token limit, which can discard relevant text.

Support for a long input does not establish how much detail its single output vector preserves. The card leaves the fine-tuning procedure marked TODO and provides no latency, peak-memory or quantization-quality measurements. Domain-specific reliability and robustness were not assessed.

Reasoning

For a search application, the reported retrieval average of 54.09 addresses the intended task more directly than the 64.11 average across many task types. Neither score predicts relevance on a particular collection.

The 8,192-token window makes longer English inputs possible, but the evidence does not compare whole-document embeddings with shorter chunks. Choosing how to split documents therefore requires examples of the questions and passages the application must match.

Alternatives

The card lists gte-large-en-v1.5 with 434 million parameters, 1,024-dimensional vectors and the same 8,192-token limit. Its reported MTEB average is higher at 65.39, while its LoCo average is lower at 86.71. The table does not establish a consistent quality advantage across tasks. Model address: [https://huggingface.co/Alibaba-NLP/gte-large-en-v1.5].

The listed bge-base-en-v1.5 has 109 million parameters, 768-dimensional vectors and a 512-token limit. Its reported MTEB average is 63.55, with higher reranking and sentence-similarity averages than gte-base-en-v1.5 in this table. Model address: [https://huggingface.co/BAAI/bge-base-en-v1.5]. These comparisons come from the supplied card; the linked model pages were not assessed.

Evidence

The evidence is the commit-specific model README, containing author-reported tables, dataset-level metrics, training information and integration examples. No model weights, custom implementation, linked papers or external leaderboard snapshot were supplied.

The stated MTEB setup uses mteb==1.2.0, fp16 automatic mixed precision, max_length=8192 and an NTK scaling factor of 2, described as equivalent to doubling rope_base. The quickstart does not explicitly set that factor. Several dataset revision fields, including Quora, SCIDOCS and TRECCOVID, are listed as None.

No code was executed, and no benchmark, deployment or compatibility result was independently reproduced.

Access & freshness

Costs

The model card states no download price, hosted-service tariff or deployment budget. Actual acquisition and operating costs are unknown.

Compute, memory, storage and serving costs would depend on the deployment. The parameter count and acceleration suggestions do not establish a running-cost estimate.

Rights

The README metadata declares Apache-2.0. Full license terms and any separate notice files are absent from the supplied text, so complete redistribution requirements are not established by this evidence.

Confirm the applicable license and notices for model files and custom implementation code before redistribution. The card separately describes Infinity as MIT-licensed; that statement concerns the server.

Freshness

The supplied snapshot was captured on 13 November 2026, but its capture date does not establish a model release or update date. Current maintenance, dependency compatibility and leaderboard position are unknown.

The Python quickstarts use model identifiers without explicit revisions. The Infinity example instead pins model revision 4c742dc2b781e4ab062a4a77f4f7cbad4bdee970 and server image version 0.0.68. Those references should not be assumed to identify the same artifacts as the README commit or current defaults.

Actions

Evaluate representative English queries with known relevant documents. Compare retrieval rankings for longer passages and shorter chunks, then measure latency and peak memory on the intended hardware. Include examples where important information appears near the end of an input.

Review custom loading code and pin model and implementation revisions before enabling trust_remote_code=True. Set truncation deliberately, confirm the pooling and normalization used by the application, and obtain the applicable license and notices before redistribution.

Evidence for this report

selected-page.txtselected · checked 2026-11-13