How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf CompendiumLabs/bge-base-en-v1.5-gguf:
# Run inference directly in the terminal:
llama cli -hf CompendiumLabs/bge-base-en-v1.5-gguf:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf CompendiumLabs/bge-base-en-v1.5-gguf:
# Run inference directly in the terminal:
llama cli -hf CompendiumLabs/bge-base-en-v1.5-gguf:
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf CompendiumLabs/bge-base-en-v1.5-gguf:
# Run inference directly in the terminal:
./llama-cli -hf CompendiumLabs/bge-base-en-v1.5-gguf:
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf CompendiumLabs/bge-base-en-v1.5-gguf:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf CompendiumLabs/bge-base-en-v1.5-gguf:
Use Docker
docker model run hf.co/CompendiumLabs/bge-base-en-v1.5-gguf:
Quick Links
Compendium Labs

bge-base-en-v1.5-gguf

Source model: https://huggingface.co/BAAI/bge-base-en-v1.5

Quantized and unquantized embedding models in GGUF format for use with llama.cpp. A large benefit over transformers is almost guaranteed and the benefit over ONNX will vary based on the application, but this seems to provide a large speedup on CPU and a modest speedup on GPU for larger models. Due to the relatively small size of these models, quantization will not provide huge benefits, but it does generate up to a 30% speedup on CPU with minimal loss in accuracy.


Files Available

Filename Quantization Size
bge-base-en-v1.5-f32.gguf F32 417 MB
bge-base-en-v1.5-f16.gguf F16 209 MB
bge-base-en-v1.5-q8_0.gguf Q8_0 113 MB
bge-base-en-v1.5-q4_k_m.gguf Q4_K_M 66 MB

Usage

These model files can be used with pure llama.cpp or with the llama-cpp-python Python bindings

from llama_cpp import Llama
model = Llama(gguf_path, embedding=True)
embed = model.embed(texts)

Here texts can either be a string or a list of strings, and the return value is a list of embedding vectors. The inputs are grouped into batches automatically for efficient execution. There is also LangChain integration through langchain_community.embeddings.LlamaCppEmbeddings.

Downloads last month
2,338
GGUF
Model size
0.1B params
Architecture
bert
Hardware compatibility
Log In to add your hardware

4-bit

8-bit

16-bit

32-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Spaces using CompendiumLabs/bge-base-en-v1.5-gguf 3

Collection including CompendiumLabs/bge-base-en-v1.5-gguf