Instructions to use ggml-org/embeddinggemma-300M-qat-q4_0-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ggml-org/embeddinggemma-300M-qat-q4_0-GGUF with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ggml-org/embeddinggemma-300M-qat-q4_0-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 ggml-org/embeddinggemma-300M-qat-q4_0-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 ggml-org/embeddinggemma-300M-qat-q4_0-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf ggml-org/embeddinggemma-300M-qat-q4_0-GGUF:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ggml-org/embeddinggemma-300M-qat-q4_0-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf ggml-org/embeddinggemma-300M-qat-q4_0-GGUF:Q4_0
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 ggml-org/embeddinggemma-300M-qat-q4_0-GGUF:Q4_0 # Run inference directly in the terminal: ./llama-cli -hf ggml-org/embeddinggemma-300M-qat-q4_0-GGUF:Q4_0
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 ggml-org/embeddinggemma-300M-qat-q4_0-GGUF:Q4_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf ggml-org/embeddinggemma-300M-qat-q4_0-GGUF:Q4_0
Use Docker
docker model run hf.co/ggml-org/embeddinggemma-300M-qat-q4_0-GGUF:Q4_0
- LM Studio
- Jan
- Ollama
How to use ggml-org/embeddinggemma-300M-qat-q4_0-GGUF with Ollama:
ollama run hf.co/ggml-org/embeddinggemma-300M-qat-q4_0-GGUF:Q4_0
- Unsloth Desktop
- Docker Model Runner
How to use ggml-org/embeddinggemma-300M-qat-q4_0-GGUF with Docker Model Runner:
docker model run hf.co/ggml-org/embeddinggemma-300M-qat-q4_0-GGUF:Q4_0
- Lemonade
How to use ggml-org/embeddinggemma-300M-qat-q4_0-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ggml-org/embeddinggemma-300M-qat-q4_0-GGUF:Q4_0
Run and chat with the model
lemonade run user.embeddinggemma-300M-qat-q4_0-GGUF-Q4_0
List all available models
lemonade list
- Atomic Chat
Update README.md (#1)
Browse files- Update README.md (3bffe327c13df5446eed12c6136985443751acb2)
Co-authored-by: Oleg Shulyakov <olegshulyakov@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
base_model:
|
| 3 |
-
- google/embeddinggemma-
|
| 4 |
---
|
| 5 |
# embeddinggemma-300M-qat-q4_0 GGUF
|
| 6 |
|
|
@@ -45,4 +50,4 @@ This can be passed in the request body to `llama-server`, for example:
|
|
| 45 |
And for `llama-embedding`, by passing `--embd-normalize <value>`, for example:
|
| 46 |
```sh
|
| 47 |
llama-embedding -hf ggml-org/embeddinggemma-300M-qat-q4_0-GGUF --embd-normalize -1 -p "Hello embeddings"
|
| 48 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
+
license: gemma
|
| 3 |
+
tags:
|
| 4 |
+
- sentence-transformers
|
| 5 |
+
- sentence-similarity
|
| 6 |
+
- feature-extraction
|
| 7 |
base_model:
|
| 8 |
+
- google/embeddinggemma-300m-qat-q4_0-unquantized
|
| 9 |
---
|
| 10 |
# embeddinggemma-300M-qat-q4_0 GGUF
|
| 11 |
|
|
|
|
| 50 |
And for `llama-embedding`, by passing `--embd-normalize <value>`, for example:
|
| 51 |
```sh
|
| 52 |
llama-embedding -hf ggml-org/embeddinggemma-300M-qat-q4_0-GGUF --embd-normalize -1 -p "Hello embeddings"
|
| 53 |
+
```
|