Model reference · open weights

gte-modernbert

gte-modernbert is an open-weight embedding model from Alibaba-NLP, listed in the AxForge catalogue. AxForge can bring it up on EU-owned hardware for you on request — with the licence handled where one is required.

Embeddings Alibaba-NLP 1 variants 206k downloads/mo
Request this model on EU hardware All served models Not on the shared API today — deployed on request.

About

What gte-modernbert is

gte-modernbert-base We are excited to introduce the gte-modernbert series of models, which are built upon the latest modernBERT pre-trained encoder-only foundation models. The gte-modernbert series models include both text embedding models and rerank models. The gte-modernbert models demonstrates competitive performance in several text embedding and text retrieval evaluation tasks when compared to similar-scale models from the current open-source community. This includes assessments such as MTEB, LoCO, and COIR evaluation. Model Overview - Developed by: Tongyi Lab, Alibaba Group - Model Type: Text Embedding - Primary Language: English - Model Size: 149M - Max Input Length: 8192 tokens - Output Dimension: 768 Model list Usage [!TIP] For transformers and sentence-transformers, if your GPU supports it, the efficient Flash Attention 2 will be used automatically if you have flashattn installed. It is not mandatory. bash pip install flashattn Use with transformers Use with sentence-transformers: Use with transformers.js: Additionally, you can also deploy Alibaba-NLP/gte-modernbert-base with Text Embeddings Inference (TEI) as follows: - CPU - GPU Then you can send requests to the deployed API via the OpenAI-compatible v1/embeddings route (more information about the OpenAI Embeddings API): Training Details The gte-modernbert series of models follows the training scheme of the previous GTE models, with the only difference being that the pre-training language model base has been replaced from GTE-MLM to ModernBert. For more training details, please refer to our paper: mGTE: Generalized Long-Context Text Representation and Reranking Models for Multilingual Text Retrieval Evaluation MTEB The results of other models are retrieved from MTEB leaderboard. Given that all models in the gte-modernbert series have a size of less than 1B parameters, we focused exclusively on the results of models under 1B from the MTEB leaderboard. LoCo (Long Document Retrieval)(NDCG@10) COIR (Code Retrieval Task)(NDCG@10) BEIR(NDCG@10) Hiring We have open positions for Research Interns and Full-Time Researchers to join our team at Tongyi Lab. We are seeking passionate individuals with expertise in

Summarised from the published model card. Read the full card on the HuggingFace links below.

Specifications

What it is

MakerAlibaba-NLP
TypeEmbedding models
Parameters (lead)149M
Context8k tokens
Variants1
Runs withtransformers
Based onanswerdotai/ModernBERT-base
Released2025-01-20
Popularity206k downloads / month
Likes201
LicenceOpen weights

How it works

How embedding models work

Your textsentence / documentEncodermaps meaningVectorlist of numbersAn embedding model turns text into a vector, so similar meanings sit close together — the basis of search and RAG.

Variants

Sizes & precisions

Open weights ship in several sizes and precisions. One page, all the variants — pick the one that fits your GPU. VRAM figures are estimates from model size.

VariantParamsPrecisionVRAMFits 16 GBWeights
gte-modernbert-base149MBF16~0.3 GBWeights ↗

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys gte-modernbert for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (gte-modernbert below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/embeddings \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gte-modernbert","input":"text to embed"}'

Details

Languages, data & research

Languages

en

Tags

transformers pytorch onnx safetensors modernbert feature-extraction sentence-transformers mteb embedding transformers.js text-embeddings-inference sentence-similarity en endpoints_compatible

Papers

Licence

Open weights

Open weights under apache-2.0 — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗

Sources

Weights & code

Want gte-modernbert on EU-owned hardware?

Request this model on EU hardware See what’s served now

Explore

More embedding models

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms