Model reference · open weights
granite-embedding-english is an open-weight embedding model from ibm-granite, 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
Granite-Embedding-125m-English News: Granite Embedding R2 models with 8192 context length released. - granite-embedding-english-r2 (149M parameters): with an output embedding size of 768, replacing granite-embedding-125m-english. - granite-embedding-small-english-r2 (47M parameters): A first-of-its-kind reduced-size model, with fewer layers and a smaller output embedding size (384), replacing granite-embedding-30m-english. Model Summary: Granite-Embedding-125m-English is a 125M parameter dense biencoder embedding model from the Granite Embeddings suite that can be used to generate high quality text embeddings. This model produces embedding vectors of size 768. Compared to most other open-source models, this model was only trained using open-source relevance-pair datasets with permissive, enterprise-friendly license, plus IBM collected and generated datasets. While maintaining competitive scores on academic benchmarks such as BEIR, this model also performs well on many enterprise use cases. This model is developed using retrieval oriented pretraining, contrastive finetuning and knowledge distillation. - Developers: Granite Embedding Team, IBM - GitHub Repository: ibm-granite/granite-embedding-models - Website: Granite Docs - Paper: Technical Report - Release Date: December 18th, 2024 - License: Apache 2.0 Supported Languages: English. Intended use: The model is designed to produce fixed length vector representations for a given text, which can be used for text similarity, retrieval, and search applications. Usage with Sentence Transformers: The model is compatible with SentenceTransformer library and is very easy to use: First, install the sentence transformers library The model can then be used to encode pairs of text and find the similarity between their representations Usage with Huggingface Transformers: This is a simple example of how to use the Granite-Embedding-125m-English model with the Transformers library and PyTorch. First, install the required libraries The model can then be used to encode pairs of text Evaluation: The performance of the Granite-Embedding-125M-English model on MTEB Retrieval (i.e., BEIR) and code retrieval (CoIR) benchmarks is report
Summarised from the published model card. Read the full card on the HuggingFace links below.
Specifications
| Maker | ibm-granite |
|---|---|
| Type | Embedding models |
| Parameters (lead) | 125M |
| Context | 514 tokens |
| Variants | 2 |
| Runs with | sentence-transformers |
| Released | 2024-12-04 |
| Popularity | 122k downloads / month |
| Likes | 38 |
| 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.
Benchmarks
As published on the model card — the maker's own numbers, not measured by AxForge.
| Task | Dataset | Metric | Score |
|---|---|---|---|
| Classification | MTEB AmazonCounterfactualClassification (en-ext) | accuracy | 67.361 |
| Classification | MTEB AmazonCounterfactualClassification (en-ext) | f1 | 55.079 |
| Classification | MTEB AmazonCounterfactualClassification (en-ext) | f1_weighted | 73.551 |
| Classification | MTEB AmazonCounterfactualClassification (en-ext) | ap | 17.644 |
| Classification | MTEB AmazonCounterfactualClassification (en-ext) | ap_weighted | 17.644 |
| Classification | MTEB AmazonCounterfactualClassification (en-ext) | main_score | 67.361 |
| Classification | MTEB AmazonCounterfactualClassification (en) | accuracy | 63.403 |
| Classification | MTEB AmazonCounterfactualClassification (en) | f1 | 57.418 |
| Classification | MTEB AmazonCounterfactualClassification (en) | f1_weighted | 66.97 |
| Classification | MTEB AmazonCounterfactualClassification (en) | ap | 26.892 |
| Classification | MTEB AmazonCounterfactualClassification (en) | ap_weighted | 26.892 |
| Classification | MTEB AmazonCounterfactualClassification (en) | main_score | 63.403 |
| Classification | MTEB AmazonPolarityClassification (default) | accuracy | 64.587 |
| Classification | MTEB AmazonPolarityClassification (default) | f1 | 64.333 |
| Classification | MTEB AmazonPolarityClassification (default) | f1_weighted | 64.333 |
| Classification | MTEB AmazonPolarityClassification (default) | ap | 59.602 |
| Classification | MTEB AmazonPolarityClassification (default) | ap_weighted | 59.602 |
| Classification | MTEB AmazonPolarityClassification (default) | main_score | 64.587 |
| Classification | MTEB AmazonReviewsClassification (en) | accuracy | 33.534 |
| Classification | MTEB AmazonReviewsClassification (en) | f1 | 32.539 |
| Classification | MTEB AmazonReviewsClassification (en) | f1_weighted | 32.539 |
| Classification | MTEB AmazonReviewsClassification (en) | main_score | 33.534 |
| Retrieval | MTEB AppsRetrieval (default) | ndcg_at_1 | 6.932 |
| Retrieval | MTEB AppsRetrieval (default) | ndcg_at_3 | 9.577 |
Using it via the API
Once AxForge deploys granite-embedding-english for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (granite-embedding-english 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":"granite-embedding-english","input":"text to embed"}'
Licence
Open weights under apache-2.0 — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗
Sources
Explore