Zen Embeddings
Collection
Embedding model family for RAG and semantic search. • 7 items • Updated
How to use zenlm/zen-embedding-0.6B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="zenlm/zen-embedding-0.6B-GGUF", filename="zen-embedding-0.6B-Q8_0.gguf", )
llm.create_chat_completion( messages = "\"Today is a sunny day and I will get some ice cream.\"" )
How to use zenlm/zen-embedding-0.6B-GGUF with llama.cpp:
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf zenlm/zen-embedding-0.6B-GGUF:Q8_0 # Run inference directly in the terminal: llama-cli -hf zenlm/zen-embedding-0.6B-GGUF:Q8_0
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf zenlm/zen-embedding-0.6B-GGUF:Q8_0 # Run inference directly in the terminal: llama-cli -hf zenlm/zen-embedding-0.6B-GGUF:Q8_0
# 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 zenlm/zen-embedding-0.6B-GGUF:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf zenlm/zen-embedding-0.6B-GGUF:Q8_0
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 zenlm/zen-embedding-0.6B-GGUF:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf zenlm/zen-embedding-0.6B-GGUF:Q8_0
docker model run hf.co/zenlm/zen-embedding-0.6B-GGUF:Q8_0
How to use zenlm/zen-embedding-0.6B-GGUF with Ollama:
ollama run hf.co/zenlm/zen-embedding-0.6B-GGUF:Q8_0
How to use zenlm/zen-embedding-0.6B-GGUF with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for zenlm/zen-embedding-0.6B-GGUF to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for zenlm/zen-embedding-0.6B-GGUF to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for zenlm/zen-embedding-0.6B-GGUF to start chatting
How to use zenlm/zen-embedding-0.6B-GGUF with Pi:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf zenlm/zen-embedding-0.6B-GGUF:Q8_0
# Install Pi:
npm install -g @mariozechner/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
"providers": {
"llama-cpp": {
"baseUrl": "http://localhost:8080/v1",
"api": "openai-completions",
"apiKey": "none",
"models": [
{
"id": "zenlm/zen-embedding-0.6B-GGUF:Q8_0"
}
]
}
}
}# Start Pi in your project directory: pi
How to use zenlm/zen-embedding-0.6B-GGUF with Hermes Agent:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf zenlm/zen-embedding-0.6B-GGUF:Q8_0
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default zenlm/zen-embedding-0.6B-GGUF:Q8_0
hermes
How to use zenlm/zen-embedding-0.6B-GGUF with Docker Model Runner:
docker model run hf.co/zenlm/zen-embedding-0.6B-GGUF:Q8_0
How to use zenlm/zen-embedding-0.6B-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull zenlm/zen-embedding-0.6B-GGUF:Q8_0
lemonade run user.zen-embedding-0.6B-GGUF-Q8_0
lemonade list
GGUF quantized 0.6B Zen Embedding model for efficient semantic search on CPU.
GGUF quantization for efficient CPU and mixed CPU/GPU inference using llama.cpp and compatible runtimes.
Developed by Hanzo AI and the Zoo Labs Foundation.
# Download and run with llama.cpp
./llama-cli -m zen-embedding-0.6B.Q4_K_M.gguf -p "Hello, how can I help you?" -n 512
# With llama-cpp-python
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="zenlm/zen-embedding-0.6B-GGUF",
filename="*Q4_K_M.gguf",
)
output = llm("Hello!", max_tokens=512)
print(output["choices"][0]["text"])
| Attribute | Value |
|---|---|
| Parameters | 0.6B |
| Format | GGUF (quantized) |
| Context | 8K tokens |
| License | Apache 2.0 |
Apache 2.0
8-bit
Base model
zenlm/zen-embedding