Model reference · open weights
gte-multilingual 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.
About
gte-multilingual-base The gte-multilingual-base model is the latest in the GTE (General Text Embedding) 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 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. - Elastic Dense Embedding: Support elastic output dense representation while maintaining the effectiveness of downstream tasks, which significantly reduces storage costs and improves execution efficiency. - Sparse Vectors: In addition to dense representations, it can also generate sparse vectors. Paper: mGTE: Generalized Long-Context Text Representation and Reranking Models for Multilingual Text Retrieval Model Information - Model Size: 305M - Embedding Dimension: 768 - Max Input Tokens: 8192 Usage - It is recommended to install xformers and enable unpadding for acceleration, refer to enable-unpadding-and-xformers. - How to use it offline: new-impl/discussions/2 - How to use with TEI: refs/pr/7 Get Dense Embeddings with Transformers Use with sentence-transformers Use with infinity Usage via docker and infinity, MIT Licensed. Use with Text Embeddings Inference (TEI) Usage via Docker and Text Embeddings Inference (TEI): - 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): Use with custom code to get dense embeddings and sparse token weights Evaluation We validated the performance of the gte-multilingual-base model on multiple downstream tasks, including multilingual retrieval, cross-lingual retrieval, long text retrieval, and general text representation evaluation on the MTEB Leaderboard, among others. Retrieval
Summarised from the published model card. Read the full card on the HuggingFace links below.
Specifications
| Maker | Alibaba-NLP |
|---|---|
| Type | Embedding models |
| Parameters (lead) | 305M |
| Context | 8k tokens |
| Variants | 1 |
| Runs with | sentence-transformers |
| Released | 2024-07-20 |
| Popularity | 1.4M downloads / month |
| Likes | 374 |
| Licence | Open weights |
How it works
Variants
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.
| Variant | Params | Precision | VRAM | Fits 16 GB | Weights |
|---|---|---|---|---|---|
| gte-multilingual-base | 305M | BF16 | ~0.7 GB | ✓ | Weights ↗ |
Benchmarks
As published on the model card — the maker's own numbers, not measured by AxForge.
| Task | Dataset | Metric | Score |
|---|---|---|---|
| Clustering | MTEB 8TagsClustering | v_measure | 33.667 |
| STS | MTEB AFQMC | cos_sim_spearman | 43.548 |
| STS | MTEB ATEC | cos_sim_spearman | 48.912 |
| Classification | MTEB AllegroReviews | accuracy | 41.69 |
| Clustering | MTEB AlloProfClusteringP2P | v_measure | 54.202 |
| Clustering | MTEB AlloProfClusteringS2S | v_measure | 44.341 |
| Reranking | MTEB AlloprofReranking | map | 64.915 |
| Retrieval | MTEB AlloprofRetrieval | ndcg_at_10 | 53.638 |
| Classification | MTEB AmazonCounterfactualClassification (en) | accuracy | 75.955 |
| Classification | MTEB AmazonPolarityClassification | accuracy | 80.718 |
| Classification | MTEB AmazonReviewsClassification (en) | accuracy | 43.642 |
| Classification | MTEB AmazonReviewsClassification (de) | accuracy | 40.108 |
| Classification | MTEB AmazonReviewsClassification (es) | accuracy | 40.17 |
| Classification | MTEB AmazonReviewsClassification (fr) | accuracy | 39.568 |
| Classification | MTEB AmazonReviewsClassification (ja) | accuracy | 35.75 |
| Classification | MTEB AmazonReviewsClassification (zh) | accuracy | 33.342 |
| Retrieval | MTEB ArguAna | ndcg_at_10 | 58.231 |
| Retrieval | MTEB ArguAna-PL | ndcg_at_10 | 53.166 |
| Clustering | MTEB ArxivClusteringP2P | v_measure | 46.019 |
| Clustering | MTEB ArxivClusteringS2S | v_measure | 41.066 |
| Reranking | MTEB AskUbuntuDupQuestions | map | 61.875 |
| STS | MTEB BIOSSES | cos_sim_spearman | 81.215 |
| STS | MTEB BQ | cos_sim_spearman | 51.716 |
| Retrieval | MTEB BSARDRetrieval | ndcg_at_10 | 26.115 |
Using it via the API
Once AxForge deploys gte-multilingual for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (gte-multilingual 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-multilingual","input":"text to embed"}'
Details
Languages
Tags
Papers
Licence
Open weights under apache-2.0 — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗
Explore