gte-multilingual-base
Will it run on your hardware?
Pick your GPU memory - see which quantizations fit, and the cheapest card for the rest
Need an exact figure for your context length? Use the VRAM calculator.
Run it locally
Copy-paste - running in under a minute
vllm serve Alibaba-NLP/gte-multilingual-baseNew to this? Start with Ollama · serve to many users with vLLM.
Deep dive
Notes, sources, and the full write-up
gte-multilingual-base is an open-weight text embedding model published by Alibaba-NLP on Hugging Face in July 2024, with 310M parameters under the apache-2.0 license.
Among the 24 text embedding models in this directory it ranks 10th by monthly Hugging Face downloads, and 10 of the others are larger.
HardwareLink to this section
Unquantized FP16 weights take about 1 GB; 8-bit brings that to ~1 GB and 4-bit (Q4_K_M) to ~1 GB, before activations and any context or image buffers. At this size it runs on almost any recent GPU, on Apple Silicon, and usable on a modern CPU. Check exact numbers for your card with the VRAM calculator.
Similar text embedding modelsLink to this section
- bge-large-en-v1.5 - 340M, 15,257,360 downloads/month
- multilingual-e5-large - 560M, 7,865,958 downloads/month
- multilingual-e5-base - 280M, 4,912,314 downloads/month
- voyage-4-nano - 350M, 260,477 downloads/month
- jina-embeddings-v5-text-nano - 210M, 72,955 downloads/month
PopularityLink to this section
gte-multilingual-base was downloaded 7,886,242 times on Hugging Face in the last month (40,808,135 all-time) and has 386 likes.
Run it locallyLink to this section
Weights and usage instructions are on the Alibaba-NLP/gte-multilingual-base model card; it loads with sentence-transformers.
Local runtimes that fit this model:
- transformers - the reference Python library most model cards target
PaperLink to this section
From the community
What users are saying
“@thenlper Can you at least ensure that the model can be seamlessly exported using torch.onnx.export ? Compatibility with torch.script would also be super helpful. The GTE family are great models but it is very difficult to deploy at scale for practitioners.”
“The xformers has flash attention 2 kernel, and will dispatch to it when on the appropriate device and data type, ref to https://huggingface.co/Alibaba-NLP/new-implrecommendation-enable-unpadding-and-acceleration-with-xformers”
“Yes, we will release the MLM model. Just finished my vacation and will be uploading it soon.”
Frequently asked
Quick answers to common questions
How much VRAM does gte-multilingual-base need?
gte-multilingual-base with 310M parameters needs approximately 1 GB at Q4_K_M quantization. Use our VRAM calculator for an exact estimate.
Is gte-multilingual-base better than other Alibaba-NLP models?
gte-multilingual-base has 310M parameters - a strong choice for embeddings.
What license is gte-multilingual-base under?
gte-multilingual-base is released under the apache-2.0 license, making it suitable for most commercial and personal projects.
What hardware runs gte-multilingual-base well?
With 310M parameters, gte-multilingual-base is small enough for most consumer GPUs, Apple Silicon Macs, and many CPUs. Check our hardware directory for specific recommendations.
What is the best quantization for gte-multilingual-base?
Q4_K_M is the recommended sweet spot - ~98% of FP16 quality at ~27% of the size. Q5_K_M (~1 GB) is an option if you have spare VRAM. Use our VRAM calculator to compare.
What models compete with gte-multilingual-base?
gte-multilingual-base competes with other models in its class. Browse our model directory for comparisons, benchmarks, and community reviews to find the best fit.
Nearby options
Similar models and compatible hardware by spec