Model reference · open weights

gte-Qwen2

gte-Qwen2 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 2 variants 883k downloads/mo
Request this model on EU hardware All served models Not on the shared API today — deployed on request.

About

What gte-Qwen2 is

gte-Qwen2-1.5B-instruct gte-Qwen2-1.5B-instruct is the latest model in the gte (General Text Embedding) model family. The model is built on Qwen2-1.5B LLM model and use the same training data and strategies as the gte-Qwen2-7B-instruct model. The model incorporates several key advancements: - Integration of bidirectional attention mechanisms, enriching its contextual understanding. - Instruction tuning, applied solely on the query side for streamlined efficiency - Comprehensive training across a vast, multilingual text corpus spanning diverse domains and scenarios. This training leverages both weakly supervised and supervised data, ensuring the model's applicability across numerous languages and a wide array of downstream tasks. Model Information - Model Size: 1.5B - Embedding Dimension: 1536 - Max Input Tokens: 32k Requirements Usage Sentence Transformers Observe the configsentencetransformers.json to see all pre-built prompt names. Otherwise, you can use model.encode(queries, prompt="Instruct: ...\nQuery: " to use a custom prompt of your choice. Transformers infinityemb Usage via infinity, MIT Licensed. Evaluation MTEB & C-MTEB You can use the scripts/evalmteb.py to reproduce the following result of gte-Qwen2-1.5B-instruct on MTEB(English)/C-MTEB(Chinese): GTE Models The gte series models have consistently released two types of models: encoder-only models (based on the BERT architecture) and decode-only models (based on the LLM architecture). Cloud API Services In addition to the open-source GTE series models, GTE series models are also available as commercial API services on Alibaba Cloud. - Embedding Models: Three versions of the text embedding models are available: text-embedding-v1/v2/v3, with v3 being the latest API service. - ReRank Models: The gte-rerank model service is available. Note that the models behind the commercial APIs are not entirely identical to the open-source models. Community support Fine-tuning GTE models can be fine-tuned with a third party framework SWIFT. Citation If you find our paper or models helpful, please consider cite:

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)1.8B
Context128k tokens
Variants2
Runs withsentence-transformers
Released2024-06-29
Popularity883k downloads / month
Likes483
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-Qwen2-1.5B-instruct1.8BBF16~4.1 GBWeights ↗
gte-Qwen2-7B-instruct7.6BBF16~17.5 GBWeights ↗

Benchmarks

Reported results

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

TaskDatasetMetricScore
ClassificationMTEB AmazonCounterfactualClassification (en)accuracy83.985
ClassificationMTEB AmazonCounterfactualClassification (en)ap50.93
ClassificationMTEB AmazonCounterfactualClassification (en)f178.504
ClassificationMTEB AmazonPolarityClassificationaccuracy96.611
ClassificationMTEB AmazonPolarityClassificationap94.892
ClassificationMTEB AmazonPolarityClassificationf196.609
ClassificationMTEB AmazonReviewsClassification (en)accuracy55.614
ClassificationMTEB AmazonReviewsClassification (en)f154.906
RetrievalMTEB ArguAnamap_at_145.164
RetrievalMTEB ArguAnamap_at_1061.519
RetrievalMTEB ArguAnamap_at_10061.769
RetrievalMTEB ArguAnamap_at_100061.769
RetrievalMTEB ArguAnamap_at_357.444
RetrievalMTEB ArguAnamap_at_560.058
RetrievalMTEB ArguAnamrr_at_146.088
RetrievalMTEB ArguAnamrr_at_1061.861
RetrievalMTEB ArguAnamrr_at_10062.118
RetrievalMTEB ArguAnamrr_at_100062.118
RetrievalMTEB ArguAnamrr_at_357.729
RetrievalMTEB ArguAnamrr_at_560.392
RetrievalMTEB ArguAnandcg_at_145.164
RetrievalMTEB ArguAnandcg_at_1069.72
RetrievalMTEB ArguAnandcg_at_10070.719
RetrievalMTEB ArguAnandcg_at_100070.719

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys gte-qwen2 for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (gte-qwen2 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-qwen2","input":"text to embed"}'

Details

Languages, data & research

Tags

sentence-transformers safetensors qwen2 text-generation mteb transformers Qwen2 sentence-similarity custom_code model-index text-embeddings-inference endpoints_compatible deploy:sagemaker

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-Qwen2 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