Text Ranking
sentence-transformers
GGUF
English
finance
legal
code
stem
medical
llama-cpp
gguf-my-repo
Instructions to use godkingleto/zerank-2-Q4_K_M-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use godkingleto/zerank-2-Q4_K_M-GGUF with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("godkingleto/zerank-2-Q4_K_M-GGUF") query = "Which planet is known as the Red Planet?" passages = [ "Venus is often called Earth's twin because of its similar size and proximity.", "Mars, known for its reddish appearance, is often referred to as the Red Planet.", "Jupiter, the largest planet in our solar system, has a prominent red spot.", "Saturn, famous for its rings, is sometimes mistaken for the Red Planet." ] scores = model.predict([(query, passage) for passage in passages]) print(scores) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use godkingleto/zerank-2-Q4_K_M-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 godkingleto/zerank-2-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf godkingleto/zerank-2-Q4_K_M-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 godkingleto/zerank-2-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf godkingleto/zerank-2-Q4_K_M-GGUF:Q4_K_M
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 server with a web UI: ./build/bin/llama serve -hf godkingleto/zerank-2-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf godkingleto/zerank-2-Q4_K_M-GGUF:Q4_K_M
Use Docker
docker model run hf.co/godkingleto/zerank-2-Q4_K_M-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use godkingleto/zerank-2-Q4_K_M-GGUF with Ollama:
ollama run hf.co/godkingleto/zerank-2-Q4_K_M-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use godkingleto/zerank-2-Q4_K_M-GGUF with Docker Model Runner:
docker model run hf.co/godkingleto/zerank-2-Q4_K_M-GGUF:Q4_K_M
- Lemonade
How to use godkingleto/zerank-2-Q4_K_M-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull godkingleto/zerank-2-Q4_K_M-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.zerank-2-Q4_K_M-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!