[Models](/models)/Alibaba-NLP/gte-multilingual-base

Apache-2.0

# gte-multilingual-base

by Alibaba-NLP

8192 tokens, 70+ languages, 768 dimensions, and 305M parameters

376likes

305Mparams

[HuggingFace](https://huggingface.co/Alibaba-NLP/gte-multilingual-base)[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

Identifiers

Model ID

`Alibaba-NLP/gte-multilingual-base`

## Deploy gte-multilingual-base

Single-tenant

Mixpeek has no managed extractor for this model. On a single-tenant deployment you upload the weights and a custom plugin serves them next to the rest of your pipeline.

[Read the customer-hosted guide](https://mixpeek.com/docs/customer-hosted/overview) [Talk to us about single-tenant](/demo)

## Overview

gte-multilingual-base covers the case the sentence-transformers classics do not: long multilingual passages. Its card claims support for over 70 languages and a context window of 8192 tokens, at 305 million parameters, which is an order of magnitude smaller than the 7B instruct-style embedding models and cheap enough to run over a large corpus.

It pools from the CLS token rather than by mean, which matters if you are writing the encoding step yourself: mean pooling over this model's outputs produces a vector that works well enough to pass a smoke test and measurably worse than the intended one. The repo also ships sparse vector support and elastic dense output, so one model can produce a shorter vector when storage is the constraint.

It requires trust\_remote\_code, because the architecture is a custom one registered as model\_type "new" rather than a standard transformers class. That is an operational fact worth surfacing before a security review finds it.

## Architecture

Custom encoder registered as model\_type "new", 12 layers, 768-dimensional hidden state, 305,369,089 parameters, 250,048-token vocabulary, max\_position\_embeddings 8192. CLS pooling (pooling\_mode\_cls\_token true, mean pooling false), and sentence\_bert\_config.json sets max\_seq\_length to the full 8192. Loading it through transformers or sentence-transformers requires trust\_remote\_code.

## Mixpeek SDK Integration

IngestRetrieve

// Runs on your side; upsert the vectors. Two details decide whether the
// embeddings are any good: CLS pooling (not mean), and trust\_remote\_code=True
// when you load it.
const res = await fetch(
  "https://api.mixpeek.com/v1/namespaces/ns\_your\_namespace/documents/upsert",
  {
    method: "POST",
    headers: {
      Authorization: "Bearer API\_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      collection\_id: "col\_your\_collection",
      documents: \[
        {
          document\_id: "doc-2026-0412-section-2",
          vectors: { "text-embedding": yourVector },
          payload: { language: "ja", source\_key: "contracts/2026/0412.pdf" },
        },
      \],
    }),
  },
);

## Capabilities

*   8192-token context, so a long document section embeds without chunking
*   Over 70 languages, per the model card, including cross-lingual retrieval
*   768-dimensional dense output with elastic shorter variants for storage savings
*   Sparse term-weight vectors alongside the dense ones, for hybrid retrieval from one model

## Use Cases on Mixpeek

Multilingual document search where chunks are long

Cross-lingual retrieval: one query language, many corpus languages

Hybrid retrieval using its dense and sparse outputs together

Replacing an English-only embedding model without moving to a 7B one

## Performance

Input Size8192 tokens

Embedding Dim768 (elastic shorter outputs supported)

GPU LatencyInput dependent

GPU ThroughputBatch dependent

GPU MemoryModel dependent

Not benchmarked here. The card publishes MIRACL, MLDR, MKQA, BEIR and LoCo results, and the MTEB leaderboard carries independent scores.

## Common Pipeline Companions

[

BAAI/bge-m3

The other one-model hybrid option, at 568M parameters and the same 8192 window

](/model/BAAI/bge-m3)[

intfloat/multilingual-e5-large-instruct

Mixpeek's managed multilingual default, 1024 dimensions and a 512-token window

](/model/intfloat/multilingual-e5-large-instruct)

## Frequently Asked Questions

### Does gte-multilingual-base really handle 8192 tokens?

Its config sets max\_position\_embeddings to 8192 and the sentence-transformers config sets max\_seq\_length to the same, so nothing truncates below that. Whether a single 8192-token vector is useful for retrieval is a separate question: a vector averaged over that much text loses the specificity that makes a match precise, so long-window support is best used to avoid splitting a coherent section, not to index whole documents as one point.

### Why does it need trust\_remote\_code?

The architecture is registered as model\_type "new" with an auto\_map pointing at code in the repo, so loading it executes Python shipped by the model author. Pin a revision and review that code if your environment has a policy about it.

### CLS pooling or mean pooling?

CLS. The repo's 1\_Pooling/config.json sets pooling\_mode\_cls\_token true and pooling\_mode\_mean\_tokens false. Mean pooling over this model produces vectors that retrieve plausibly and score worse, which is a failure that passes every smoke test.

## Explore on Mixpeek

[

Browse all models

Search the full model catalog

](/models)[

Feature Extractors

See how Mixpeek runs models as extractors

](/extractors)[

Mixpeek Vector Store

Store & search embeddings at scale

](/mvs)[

Pricing

Usage-based pricing for pipelines

](/pricing)[

All Curated Lists

Compare models, APIs & infrastructure

](/curated-lists)

### Specification

OrganizationAlibaba-NLP

Retriever\-

Parameters305M

LicenseApache-2.0

Downloads/moN/A

Likes376

[

### Research Paper

mGTE: Generalized Long-Context Text Representation and Reranking Models for Multilingual Text Retrieval

arxiv.org](https://arxiv.org/abs/2407.19669)

### Build a pipeline with gte-multilingual-base

Add this model to a processing pipeline alongside other extractors. Combine with retrieval stages for end-to-end search.

[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)