Upload folder using huggingface_hub ca8f873 verified
GPUStack commited on
How to use gpustack/gte-multilingual-reranker-base-GGUF with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("gpustack/gte-multilingual-reranker-base-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]How to use gpustack/gte-multilingual-reranker-base-GGUF with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="gpustack/gte-multilingual-reranker-base-GGUF") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("gpustack/gte-multilingual-reranker-base-GGUF", device_map="auto")How to use gpustack/gte-multilingual-reranker-base-GGUF with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf gpustack/gte-multilingual-reranker-base-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf gpustack/gte-multilingual-reranker-base-GGUF:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf gpustack/gte-multilingual-reranker-base-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf gpustack/gte-multilingual-reranker-base-GGUF:Q4_K_M
# 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 gpustack/gte-multilingual-reranker-base-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf gpustack/gte-multilingual-reranker-base-GGUF:Q4_K_M
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 gpustack/gte-multilingual-reranker-base-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf gpustack/gte-multilingual-reranker-base-GGUF:Q4_K_M
docker model run hf.co/gpustack/gte-multilingual-reranker-base-GGUF:Q4_K_M
How to use gpustack/gte-multilingual-reranker-base-GGUF with Ollama:
ollama run hf.co/gpustack/gte-multilingual-reranker-base-GGUF:Q4_K_M
How to use gpustack/gte-multilingual-reranker-base-GGUF with Docker Model Runner:
docker model run hf.co/gpustack/gte-multilingual-reranker-base-GGUF:Q4_K_M
How to use gpustack/gte-multilingual-reranker-base-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull gpustack/gte-multilingual-reranker-base-GGUF:Q4_K_M
lemonade run user.gte-multilingual-reranker-base-GGUF-Q4_K_M
lemonade list