Granite Embedding

Granite Embedding 30M Sparse

by IBM watsonx · Current and publicly available open-weight model; released through IBM Granite Experiments

IBM Granite Embedding 30M Sparse is an open-weight English retrieval encoder with approximately 30 million parameters. It produces weighted sparse token representations for semantic search, lexical-semantic hybrid retrieval, ranking, and sparse-vector indexing, with a 512-token input limit and no hosted usage price specified.

Embeddings Reasoning Coding
Granite Embedding 30M Sparse is an open-weight model from IBM’s Granite Experimental suite designed specifically for retrieval rather than conversation or text generation. Its approximately 30 million parameters produce variable-length, vocabulary-sized sparse representations, allowing search systems to combine learned semantic expansion with the exact-term behavior of traditional keyword search. The model is particularly relevant for English enterprise search, document retrieval, ranking, and hybrid BM25-plus-vector systems.
Outputs

What Granite Embedding 30M Sparse can produce

Embeddings
Inputs

What it can understand

Text
Model profile

Performance characteristics

1/10 Reasoning
1/10 Coding
8/10 Speed
9/10 Cost efficiency
Specifications

Technical details

Family Granite Embedding
Type Embedding
Context window 512 tokens
Max output tokens tokens
Release date 2025-02-26
Status Current and publicly available open-weight model; released through IBM Granite Experiments
Knowledge cutoff notes

Embedding models do not have a provider-documented knowledge cutoff in the cited model documentation. The model is trained for retrieval and representation learning rather than factual question answering.

Model notes

The canonical model identifier is ibm-granite/granite-embedding-30m-sparse. It is an approximately 30M-parameter, six-layer RoBERTa-like sparse encoder with a 50,265-token vocabulary and a 512-token maximum sequence length. The output is a variable-length sparse representation rather than a fixed-size dense vector; IBM's examples use Sentence Transformers SparseEncoder and Milvus sparse-vector search. The model is English-only and distributed under Apache 2.0. IBM reports a BEIR Retrieval score of 50.8 on its reported 13-task comparison. No official hosted API pricing is specified for the downloadable weights.

Model guide

Granite Embedding 30M Sparse: IBM’s Compact Sparse Search Encoder

IBM Granite Embedding 30M Sparse is a compact, English-only sparse embedding model for semantic search and hybrid information retrieval. Rather than producing a fixed-length dense vector, it returns weighted token representations that can work with inverted indexes, sparse-vector databases, BM25 pipelines, and ranking systems.

What is Granite Embedding 30M Sparse?

IBM Granite Embedding 30M Sparse is an English-language sparse embedding encoder for information retrieval. Its official Hugging Face identifier is ibm-granite/granite-embedding-30m-sparse. IBM describes it as a 30-million-parameter sparse biencoder developed by the Granite Embedding Team and released under the Apache 2.0 license.

The model converts text into a sparse representation: a set of vocabulary tokens and learned relevance weights. This differs from a dense embedding model, which normally returns a fixed-length list of numerical values. Sparse output can be stored and searched using inverted indexes or sparse-vector infrastructure, while retaining some of the semantic expansion associated with neural retrieval.

For example, a query may activate terms related to the words entered by the user. A document containing those related terms can therefore be considered relevant even when it does not repeat the query literally. At the same time, the token-based representation remains more interpretable and compatible with lexical search than a conventional dense vector.

Where it fits in IBM’s Granite lineup

Granite Embedding 30M Sparse belongs to IBM’s Granite Embedding family and the broader Granite Experiments work. It is a specialized retrieval model, not a general-purpose Granite language model. Its purpose is to encode queries and documents for search, matching, ranking, and retrieval-augmented pipelines.

This positioning is important when evaluating the model. It does not produce conversational answers, write code, summarize documents, or generate structured responses. An application may use it before a generative model in a retrieval-augmented generation system, but the encoder itself only produces sparse embeddings.

How the sparse output works

The model uses a RoBERTa-like encoder architecture trained to produce weighted vocabulary activations. Its vocabulary contains 50,265 tokens, and the resulting representation can contain active dimensions corresponding to tokens or token expansions that the model considers relevant.

In practical terms, the output resembles a weighted bag of words rather than a dense coordinate vector. A search engine can use those weights to match queries and documents through sparse indexes. The approach can preserve exact or near-exact term matching while also expanding the search representation toward related terminology.

This makes sparse retrieval a useful middle ground between traditional lexical methods such as BM25 and dense semantic retrieval. It can be easier to inspect than a dense vector, although the representation may become less storage- and computation-efficient when long inputs activate many vocabulary dimensions.

Verified technical specifications

SpecificationValue
ProviderIBM
Model familyGranite Embedding
Model typeSparse text embedding encoder
ParametersApproximately 30 million
ArchitectureEncoder-only, RoBERTa-like transformer
Layers6
Attention heads12
Intermediate size1,536
ActivationGeLU
Vocabulary size50,265 tokens
Maximum sequence length512 tokens
Primary languageEnglish
OutputVariable-length sparse token-weight representation
LicenseApache 2.0
Release dateFebruary 26, 2025

The 512-token maximum is a meaningful operational limit. Applications handling longer documents should split them into passages before encoding, then retrieve and rank those passages rather than attempting to embed an entire long document as one input.

Search and retrieval use cases

The model is intended for systems that need document or query representations rather than generated language. Suitable applications include:

  • Enterprise document search
  • Technical documentation search
  • Semantic and keyword-hybrid retrieval
  • Question-answering retrieval stages
  • Query-document matching
  • Search ranking and reranking pipelines
  • Inverted-index or sparse-vector retrieval

IBM’s examples show use with the Sentence Transformers sparse-encoder interface and integration with Milvus for sparse-vector search. The examples also use different active-token limits for queries and documents: 50 active query tokens and 192 active document tokens. Those values are implementation examples rather than a universal requirement for every deployment.

Performance and practical trade-offs

IBM reports a BEIR Retrieval score of 50.8 for the model across its reported 13-task evaluation subset. The same IBM comparison reports a slightly higher score than its similarly sized dense Granite Embedding 30M English model and a higher score than SPLADE-v3-distilbert in that comparison. These are provider-reported benchmark results; they should not be treated as a guarantee for a particular search corpus.

The main practical advantage of sparse output is the combination of learned semantic expansion and lexical-style matching. Sparse representations can work naturally with inverted indexes and can make individual activated terms easier to inspect. They may also be a convenient fit for systems that already support sparse vectors or hybrid BM25 workflows.

The trade-off is that sparse output is not automatically cheaper or simpler for every workload. Long passages can activate more vocabulary dimensions, increasing index size and search work. Dense embeddings may be preferable when an existing vector database and fixed-size vector pipeline are already optimized for them. A production team should evaluate retrieval quality, latency, memory use, and index behavior on its own data.

Inputs, outputs, and unsupported capabilities

Granite Embedding 30M Sparse accepts text input and returns sparse embedding representations. It does not return text, images, audio, video, or conversational responses. It has no documented maximum generated-output limit because it is not a generative model.

The model should not be treated as a reasoning or coding model. It can help retrieve documents about a technical or programming topic, but it does not independently solve problems, write code, call tools, browse the web, or produce function-call arguments. Conventional language-model features such as chat completion, text-generation streaming, JSON mode, and web search do not apply to its primary operation.

There is also no documented multimodal support. The supported modality is English text input, with sparse numerical representations as output.

Pricing and deployment

The weights are publicly downloadable, and the supplied IBM documentation does not specify an official hosted per-token or per-request price for this model. Therefore, there is no verified provider API price to quote. Deployment cost depends on the hardware, serving arrangement, index technology, storage, and search traffic used by the application.

Local deployment is the model’s clearest availability path. A typical workflow encodes documents and queries with a sparse encoder, stores the document representations in a compatible sparse or hybrid index, and searches that index at query time. The Apache 2.0 license permits broad use subject to the license terms, but teams should still review their own redistribution and operational requirements.

Main strengths and limitations

Strengths

  • Small size at approximately 30 million parameters.
  • Designed specifically for retrieval rather than being adapted from a general text-generation model.
  • Combines semantic token expansion with lexical-style matching.
  • Can fit inverted-index and sparse-vector retrieval architectures.
  • Open weights and Apache 2.0 licensing support local deployment.
  • Potentially easier to inspect than a dense representation because active token dimensions have recognizable vocabulary associations.

Limitations

  • English-only, according to the supplied model documentation.
  • Maximum sequence length is 512 tokens.
  • It returns sparse embeddings, not natural-language answers.
  • It does not provide chat, generation, tool use, web search, or multimodal understanding.
  • Longer passages may create more active dimensions and increase index or retrieval costs.
  • As an experimental retrieval model, it requires evaluation against dense, lexical, and hybrid alternatives on the target collection.

When to choose this model

Choose Granite Embedding 30M Sparse when the application needs an English retrieval encoder that can combine semantic expansion with keyword-sensitive search. It is a particularly reasonable candidate for enterprise document search, technical knowledge bases, hybrid BM25-plus-vector systems, and deployments where open weights and local operation matter.

A dense embedding model may be more appropriate when the existing infrastructure is built around fixed-length dense vectors, when sparse index growth is a concern, or when dense retrieval performs better on the target data. A multilingual model is more suitable for cross-language or non-English search. A generative language model is necessary when the system must answer questions, summarize retrieved material, write code, or interact with tools.

In short, this model is best evaluated as a focused retrieval component. Its value comes from the balance between compact model size, sparse semantic representations, and compatibility with lexical search—not from general-purpose language generation.

Availability

Granite Embedding 30M Sparse is available through IBM’s official Granite organization on Hugging Face at ibm-granite/granite-embedding-30m-sparse. IBM’s model card and technical materials identify it as an open-weight model released in February 2025 under the Apache 2.0 license.


Answers to Frequently Asked Questions

Is Granite Embedding 30M Sparse free to deploy, and does it have an official API price?
The model weights are publicly downloadable under the Apache 2.0 license, enabling local deployment subject to the license terms. The supplied IBM documentation does not specify an official hosted per-token or per-request price, so deployment costs depend on hardware, serving, indexing, storage, and search traffic.
What are the main technical specifications and limitations of Granite Embedding 30M Sparse?
The model has approximately 30 million parameters, uses a 6-layer RoBERTa-like encoder with 12 attention heads, supports a vocabulary of 50,265 tokens, and has a maximum sequence length of 512 tokens. It primarily supports English text, returns sparse token-weight representations, and does not generate text, provide chat, use tools, or support multimodal inputs.
How does Granite Embedding 30M Sparse differ from a dense embedding model?
Granite Embedding 30M Sparse returns a variable-length set of vocabulary tokens and learned relevance weights rather than a fixed-length numerical vector. This allows it to combine semantic term expansion with lexical-style matching and work with inverted indexes or sparse-vector infrastructure.
What is IBM Granite Embedding 30M Sparse used for?
IBM Granite Embedding 30M Sparse is an English-language sparse embedding encoder for information retrieval. It can encode queries and documents for enterprise search, technical documentation search, hybrid BM25 and semantic retrieval, question-answering retrieval stages, and sparse-vector indexing.
What is the official Hugging Face identifier for Granite Embedding 30M Sparse?
The official Hugging Face identifier is ibm-granite/granite-embedding-30m-sparse.


Sources 4
AI Provider

About IBM watsonx