Feature Extraction
GGUF
sentence-transformers
llama.cpp
embedding
multimodal
multilingual
quantized
imatrix
conversational
Instructions to use ngquocvinh/EmbeddingGemma-2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ngquocvinh/EmbeddingGemma-2-GGUF with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ngquocvinh/EmbeddingGemma-2-GGUF") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ngquocvinh/EmbeddingGemma-2-GGUF with 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 ngquocvinh/EmbeddingGemma-2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf ngquocvinh/EmbeddingGemma-2-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ngquocvinh/EmbeddingGemma-2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf ngquocvinh/EmbeddingGemma-2-GGUF:Q4_K_M
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 ngquocvinh/EmbeddingGemma-2-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf ngquocvinh/EmbeddingGemma-2-GGUF:Q4_K_M
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 ngquocvinh/EmbeddingGemma-2-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf ngquocvinh/EmbeddingGemma-2-GGUF:Q4_K_M
Use Docker
docker model run hf.co/ngquocvinh/EmbeddingGemma-2-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use ngquocvinh/EmbeddingGemma-2-GGUF with Ollama:
ollama run hf.co/ngquocvinh/EmbeddingGemma-2-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use ngquocvinh/EmbeddingGemma-2-GGUF with Docker Model Runner:
docker model run hf.co/ngquocvinh/EmbeddingGemma-2-GGUF:Q4_K_M
- Lemonade
How to use ngquocvinh/EmbeddingGemma-2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ngquocvinh/EmbeddingGemma-2-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.EmbeddingGemma-2-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Add TQ1_0 after embedding smoke pass
Browse files- .gitattributes +1 -0
- EmbeddingGemma-2-TQ1_0.gguf +3 -0
- SHA256SUMS.txt +1 -0
- reproducibility/artifact-measurements.tsv +1 -0
- reproducibility/manifest.md +8 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ EmbeddingGemma-2-IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
EmbeddingGemma-2-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 59 |
EmbeddingGemma-2-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 60 |
EmbeddingGemma-2-IQ1_S.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 58 |
EmbeddingGemma-2-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 59 |
EmbeddingGemma-2-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 60 |
EmbeddingGemma-2-IQ1_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
EmbeddingGemma-2-TQ1_0.gguf filter=lfs diff=lfs merge=lfs -text
|
EmbeddingGemma-2-TQ1_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a55f16a919b1e31c9bd15ca957167b57437d9d91efc6bd5badb8980e294f6a1c
|
| 3 |
+
size 131928704
|
SHA256SUMS.txt
CHANGED
|
@@ -22,4 +22,5 @@ ea25550b050fa8826707c5e44659a7c18259606dcc6ba449f771e3c75cf4e663 EmbeddingGemma
|
|
| 22 |
0c0dc8e88bc69c720f997ea1dd9cf4a57bbbccaecfa85925455a6608654d2d81 EmbeddingGemma-2-Q5_K_S.gguf
|
| 23 |
21693ca41877ffb20727763e167c503b0467eac4ccef51551230d72c2afcd37e EmbeddingGemma-2-Q6_K.gguf
|
| 24 |
eec0ccc2e76aa85b415651e869c25e476279d6b7d1985533c8296f13989efa10 EmbeddingGemma-2-Q8_0.gguf
|
|
|
|
| 25 |
b663b6822d1f2d641acc54fc0adfc143b630b7ac87ec54fd60888f325071a0de mmproj-EmbeddingGemma-2-BF16.gguf
|
|
|
|
| 22 |
0c0dc8e88bc69c720f997ea1dd9cf4a57bbbccaecfa85925455a6608654d2d81 EmbeddingGemma-2-Q5_K_S.gguf
|
| 23 |
21693ca41877ffb20727763e167c503b0467eac4ccef51551230d72c2afcd37e EmbeddingGemma-2-Q6_K.gguf
|
| 24 |
eec0ccc2e76aa85b415651e869c25e476279d6b7d1985533c8296f13989efa10 EmbeddingGemma-2-Q8_0.gguf
|
| 25 |
+
a55f16a919b1e31c9bd15ca957167b57437d9d91efc6bd5badb8980e294f6a1c EmbeddingGemma-2-TQ1_0.gguf
|
| 26 |
b663b6822d1f2d641acc54fc0adfc143b630b7ac87ec54fd60888f325071a0de mmproj-EmbeddingGemma-2-BF16.gguf
|
reproducibility/artifact-measurements.tsv
CHANGED
|
@@ -24,3 +24,4 @@ EmbeddingGemma-2-IQ2_XXS.gguf 107177600 0.107178 PASS_EMBEDDING_CPU
|
|
| 24 |
EmbeddingGemma-2-IQ2_S.gguf 127600256 0.127600 PASS_EMBEDDING_CPU
|
| 25 |
EmbeddingGemma-2-IQ2_M.gguf 130909824 0.130910 PASS_EMBEDDING_CPU
|
| 26 |
EmbeddingGemma-2-IQ1_S.gguf 100558464 0.100558 PASS_EMBEDDING_CPU
|
|
|
|
|
|
| 24 |
EmbeddingGemma-2-IQ2_S.gguf 127600256 0.127600 PASS_EMBEDDING_CPU
|
| 25 |
EmbeddingGemma-2-IQ2_M.gguf 130909824 0.130910 PASS_EMBEDDING_CPU
|
| 26 |
EmbeddingGemma-2-IQ1_S.gguf 100558464 0.100558 PASS_EMBEDDING_CPU
|
| 27 |
+
EmbeddingGemma-2-TQ1_0.gguf 131928704 0.131929 PASS_EMBEDDING_CPU
|
reproducibility/manifest.md
CHANGED
|
@@ -224,3 +224,11 @@ The fixed task evaluation uses the full MTEB STSBenchmark `test` split and the u
|
|
| 224 |
- Quantization command: `llama-quantize --imatrix calibration/embeddinggemma-2/embeddinggemma-2-sts.imatrix.gguf embeddinggemma-2-text-BF16.gguf EmbeddingGemma-2-IQ1_S.gguf IQ1_S 8`.
|
| 225 |
- CPU `llama-server --embedding --pooling mean -ngl 0` smoke passed with finite normalized 768-dimensional text vectors.
|
| 226 |
- Build cgroup: `MemoryMax=32G`, `MemorySwapMax=0`; peak memory `842952704` bytes and swap peak `0` bytes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 224 |
- Quantization command: `llama-quantize --imatrix calibration/embeddinggemma-2/embeddinggemma-2-sts.imatrix.gguf embeddinggemma-2-text-BF16.gguf EmbeddingGemma-2-IQ1_S.gguf IQ1_S 8`.
|
| 225 |
- CPU `llama-server --embedding --pooling mean -ngl 0` smoke passed with finite normalized 768-dimensional text vectors.
|
| 226 |
- Build cgroup: `MemoryMax=32G`, `MemorySwapMax=0`; peak memory `842952704` bytes and swap peak `0` bytes.
|
| 227 |
+
- IQ1_S public Hub commit: `8dbeabbbe21be49508f4fd940a2308fd2af1009b`; remote LFS SHA256 and size match the local file.
|
| 228 |
+
|
| 229 |
+
## Incremental experiment: TQ1_0
|
| 230 |
+
|
| 231 |
+
- Artifact: `EmbeddingGemma-2-TQ1_0.gguf`; SHA256 `a55f16a919b1e31c9bd15ca957167b57437d9d91efc6bd5badb8980e294f6a1c`; decimal size `0.131929 GB`.
|
| 232 |
+
- Quantization command: `llama-quantize --imatrix calibration/embeddinggemma-2/embeddinggemma-2-sts.imatrix.gguf embeddinggemma-2-text-BF16.gguf EmbeddingGemma-2-TQ1_0.gguf TQ1_0 8`.
|
| 233 |
+
- CPU `llama-server --embedding --pooling mean -ngl 0` smoke passed with finite normalized 768-dimensional text vectors. This is a runtime smoke result, not a quality result.
|
| 234 |
+
- Build cgroup: `MemoryMax=32G`, `MemorySwapMax=0`; peak memory `875728896` bytes and swap peak `0` bytes.
|