Instructions to use ido-pluto/SamBERT-Hebrew-Embedding-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ido-pluto/SamBERT-Hebrew-Embedding-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible embeddings server: llama serve -hf ido-pluto/SamBERT-Hebrew-Embedding-GGUF:Q4_K_M --embeddings
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible embeddings server: llama serve -hf ido-pluto/SamBERT-Hebrew-Embedding-GGUF:Q4_K_M --embeddings
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible embeddings server: ./build/bin/llama serve -hf ido-pluto/SamBERT-Hebrew-Embedding-GGUF:Q4_K_M --embeddings
- Llama new
- LM Studio
- Jan
- Ollama
How to use ido-pluto/SamBERT-Hebrew-Embedding-GGUF with Ollama:
ollama run hf.co/ido-pluto/SamBERT-Hebrew-Embedding-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use ido-pluto/SamBERT-Hebrew-Embedding-GGUF with Docker Model Runner:
docker model run hf.co/ido-pluto/SamBERT-Hebrew-Embedding-GGUF:Q4_K_M
- Lemonade
How to use ido-pluto/SamBERT-Hebrew-Embedding-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ido-pluto/SamBERT-Hebrew-Embedding-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.SamBERT-Hebrew-Embedding-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Add SamBERT Q4_K_M GGUF and model card
Browse filesFiles changed (3)
- .gitattributes+1
- README.mdAdded+55
- sambert-Q4_K_M.ggufAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textsambert-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455---language:- hebase_model: MPA/sambertbase_model_relation: quantizedpipeline_tag: sentence-similaritylibrary_name: gguftags:- gguf- llama-cpp- bert- embeddings- feature-extraction- sentence-similarity---
# SamBERT - Hebrew Embedding GGUF
A Q4_K_M GGUF conversion of [MPA/sambert](https://huggingface.co/MPA/sambert), a Hebrew sentence embedding model. All credit for the original model and its training belongs to its authors. This repository provides a format conversion and quantization; it does not introduce additional training.
SamBERT produces 768-dimensional embeddings for sentences and paragraphs, suitable for semantic search, sentence similarity, and clustering. It uses a BERT encoder with mean pooling and supports sequences up to 512 tokens.
## Model file
| File | Quantization | Size || --- | --- | ---: || `sambert-Q4_K_M.gguf` | Q4_K_M | 138,000,992 bytes (138.00 MB) |
SHA-256: `d738d9403554d32f183a4f5ae1f9bf0b69aaf5b0c16df46a805017f41312ae30`
## Usage with llama.cpp
Download `sambert-Q4_K_M.gguf` and run:
```shllama-embedding \ -m sambert-Q4_K_M.gguf \ -p 'אמא הלכה לגן' \ --pooling mean \ --embd-normalize 2 \ --embd-output-format json```
This example returns an L2-normalized sentence embedding. Use the same model and normalization settings for both indexed documents and search queries.
## Conversion and verification
- Source: [MPA/sambert](https://huggingface.co/MPA/sambert), revision `fa7f994cc23c2ed843512369f5074d046cf5f795`.- Converted through F16 using llama.cpp converter revision `f174553e1621c6a22a64e7bfcbb58d3a5c49e6fb`, then quantized to Q4_K_M.- Loaded and executed with llama.cpp build 10964 (`b29c606e2`) on CPU, producing finite 768-dimensional embeddings.- On six short samples (five Hebrew, one English), the mean cosine agreement between normalized quantized embeddings and original Hugging Face embeddings was **0.98486**, with a range of **0.97543–0.98879**. This small conversion check is not a retrieval benchmark.
The conversion preserves vocabulary IDs and embedding rows. Eleven unreachable NUL-containing or empty continuation vocabulary entries are represented by unique unused placeholders for GGUF loader compatibility; BERT text normalization removes those control characters before tokenization.
See the [original model card](https://huggingface.co/MPA/sambert) for training details and the authors' underlying Hebrew BERT research citation.123version https://git-lfs.github.com/spec/v1oid sha256:d738d9403554d32f183a4f5ae1f9bf0b69aaf5b0c16df46a805017f41312ae30size 138000992.gitattributes+1
README.mdAdded+55
sambert-Q4_K_M.ggufAdded+3