CompendiumLabs' bge-small-en-v1.5 Hits 816K Downloads as a 24MB Local Search Tool
A llama.cpp-ready build of BAAI's 33M-parameter embedding model is quietly powering local RAG pipelines, with 24MB quantized files and near-zero accuracy loss.
Takeaways
- BAAI bge-small-en-v1.5 now available in GGUF format for
llama.cpp, with 816K+ downloads - Four variants: F32 (128MB), F16 (65MB), Q8_0 (36MB), and Q4_K_M at just 24MB
- Quantization delivers up to 30% CPU speedup with minimal accuracy loss
- 33.4M parameters, 384-dim embeddings, 512-token context, scores 53.86 on MTEB English v2 retrieval
- Works out of the box with Ollama, LM Studio, Jan, Docker Model Runner, and llama-cpp-python
- MIT licensed, English only; ideal for local RAG where embedding and LLM share one runtime
At the time of writing, CompendiumLabs’ GGUF repository for bge-small-en-v1.5 displays more than 816,000 downloads. The package converts BAAI’s compact English embedding model into the format used by llama.cpp, allowing local retrieval systems to avoid a separate PyTorch or sentence-transformers deployment.
Hugging Face’s counter can include repeated and automated file fetches, so it does not represent unique installations. Its scale still reflects demand for embedding models that fit the same local inference toolchain as chat and completion models.
A familiar encoder in a portable file
GGUF stores model weights and metadata in a single file optimized for runtimes such as llama.cpp. It also supports quantization, which reduces numerical precision to shrink the model and lower memory bandwidth requirements.
BAAI’s bge-small-en-v1.5 contains about 33.4 million parameters, accepts sequences up to 512 tokens, and produces 384-dimensional vectors. It was trained for dense retrieval, semantic search, clustering, and text similarity. The v1.5 release improved similarity-score distribution and reduced its dependence on query instructions, although BGE’s retrieval recipe still recommends a query prefix for short query-to-passage searches.
On MTEB English v2 retrieval, the full-precision model is reported at 53.86, compared with 54.75 for bge-base-en-v1.5, which has roughly three times as many parameters. MTEB is a standardized collection of embedding evaluations. Those scores describe the original models under benchmark conditions; each quantized build still needs application-level testing.
Four files, one practical choice
| Variant | Approximate size | Precision | Suggested use |
|---|---|---|---|
| F32 | 128 MB | 32-bit floating point | Reference output and quality comparisons |
| F16 | 65 MB | 16-bit floating point | High-fidelity local inference |
| Q8_0 | 36 MB | 8-bit quantization | Conservative size reduction |
| Q4_K_M | 24 MB | Mixed 4-bit quantization | CPU-focused and storage-constrained deployments |
Quantization cuts the Q4 model file to less than one-fifth of the F32 build. The repository reports up to a 30% CPU speedup for the quantized model, along with larger CPU gains over a Transformers stack and workload-dependent results against ONNX. Throughput will vary with hardware, batch size, sequence length, and runtime version, so production benchmarks should include both latency and retrieval recall.
File size describes the stored weights alone. The tokenizer, runtime buffers, context, operating system, and application consume additional memory. Q8_0 offers a cautious default when retrieval quality matters, while Q4_K_M is the smaller starting point for CPU and edge deployments.
Serve embeddings with llama.cpp
The repository lists the model under the MIT license, which permits commercial use, modification, and redistribution subject to the license terms. A current llama.cpp build can download and expose the Q4 model through an OpenAI-style embeddings endpoint:
llama-server \
-hf CompendiumLabs/bge-small-en-v1.5-gguf:Q4_K_M \
--embedding \
--pooling cls \
--port 8080
Builds without Hugging Face download support can load a previously downloaded file with -m /path/to/model.gguf. BGE uses CLS pooling, so explicitly setting --pooling cls prevents an incompatible pooling strategy from changing the vectors.
An application can then send one string or a batch to /v1/embeddings:
curl http://127.0.0.1:8080/v1/embeddings \
-H "Content-Type: application/json" \
-d '{
"model": "bge-small-en-v1.5",
"input": [
"How long is the refund window?",
"Orders can be returned within 30 days."
]
}'
One llama-server process normally loads one model. A local application using both a chat model and this embedder will generally run two processes on separate ports, while reusing the same executable, model format, and deployment tooling.
Python applications can run the GGUF file in process through llama-cpp-python:
from llama_cpp import Llama
model = Llama(
model_path="/path/to/model.gguf",
embedding=True,
n_ctx=512,
)
texts = ["refund policy", "shipping policy"]
vectors = model.embed(texts)
A list input returns one 384-value vector per string. The bindings batch work internally, and batch-related options can be tuned for offline document indexing. LangChain also exposes the runtime through LlamaCppEmbeddings.
Preprocessing sets retrieval quality
Consistent tokenization, query formatting, normalization, and indexing have a direct effect on recall. A reliable BGE pipeline should follow these steps:
- Chunk with the model tokenizer. Keep every passage within the 512-token limit and account for any overlap or metadata added to the text. Character counts are an unreliable substitute for tokens.
- Prefix retrieval queries. BGE recommends
Represent this sentence for searching relevant passages:before short queries. Passage text should remain unprefixed, and the prefix counts toward the token limit. - Check normalization. Some runtimes return normalized vectors and others expose raw output. For cosine search, normalize stored and query vectors when the runtime has not already done so. Dot product and cosine produce the same ranking for unit-length vectors.
- Keep the index aligned. Use the same model, quantization build, preprocessing policy, and normalization behavior for indexing and querying. A model change requires a complete reindex.
- Benchmark retrieval end to end. Measure recall on representative queries and documents. Embedding throughput alone does not reveal whether quantization changes the ranking of close results.
Where 24 MB works
The Q4 build fits local RAG over personal documents, offline search tools, browser-adjacent utilities, and CPU-focused prototypes. It also suits applications that already distribute llama.cpp and want to remove a Python-specific embedding service from the production stack.
- Local document search on laptops and small servers
- Edge deployments with tight model-storage limits
- Moderate corpora where low query latency matters
- Development environments that need reproducible, single-file model distribution
A 384-dimensional float32 vector occupies 1,536 bytes before index and metadata overhead. One million vectors therefore require about 1.43 GiB of raw vector storage, giving this model a useful database-footprint advantage over encoders that produce 768 or 1,024 dimensions.
English-only training, a 512-token ceiling, and compact model capacity define its main constraints. Multilingual collections, long-document retrieval, specialized domains, and recall-sensitive applications should benchmark newer compact encoders, including nomic-embed-text-v1.5 and offerings from Snowflake, IBM, and Google. Their dimensions, context limits, licenses, and runtime support differ, so replacing the model may also require schema changes and reindexing.
GGUF removes a deployment layer
The package’s practical value comes from operational consistency. Teams can distribute, quantize, load, and serve an embedding model with the same toolchain used for local language models, eliminating a dedicated Transformers runtime while retaining an OpenAI-style API. The vector database, chunking policy, evaluation set, and separate model process remain part of the system, but the embedding runtime becomes smaller and easier to ship.