Downloads · 30 days
396
38% of all-time downloads
tinyopsec/rank-zephyr-7b-v1-full-GGUF
rank-zephyr-7b-v1-full-GGUF is a text generation model from tinyopsec. Use it when you need the model to write or continue text. It is set up for gguf. The card lists the license as mit.
GGUF quantizations of castorini/rankzephyr7bv1full.
Downloads · 30 days
396
38% of all-time downloads
All-time downloads
1K
Public
Repo size
60 GB
Likes
0
Public
Click a slice to open those files.
.gguf60 GB · 100%
From the Hugging Face model README
GGUF quantizations of castorini/rank_zephyr_7b_v1_full.
| File | Bits | Size | Use Case |
|---|---|---|---|
model_f16.gguf | 16 | ~14 GB | Reference, maximum quality |
model_q8_0.gguf | 8 | ~7.5 GB | High quality, still large |
model_q6_k.gguf | 6 | ~5.8 GB | Balanced quality/size |
model_q5_k_m.gguf | 5 | ~4.8 GB | Good quality, recommended |
model_q5_k_s.gguf | 5 | ~4.6 GB | Slightly faster Q5 |
model_q4_k_m.gguf | 4 | ~3.8 GB | Standard quantization |
model_q4_k_s.gguf | 4 | ~3.6 GB | Slightly faster Q4 |
model_q3_k_l.gguf | 3 | ~3.0 GB | Small model variant |
model_q3_k_m.gguf | 3 | ~2.9 GB | Balanced 3-bit |
model_q3_k_s.gguf | 3 | ~2.7 GB | Fast 3-bit |
model_q2_k.gguf | 2 | ~2.0 GB | Minimal size, CPU-friendly |
| Quantization | GPU VRAM | RAM (CPU) |
|---|---|---|
| F16 | ~14 GB | ~17 GB |
| Q8_0 | ~8 GB | ~10 GB |
| Q6_K | ~6.5 GB | ~8 GB |
| Q5_K_M | ~5.5 GB | ~7 GB |
| Q4_K_M | ~4.5 GB | ~6 GB |
| Q3_K_M | ~3.5 GB | ~5 GB |
| Q2_K | ~2.5 GB | ~3.5 GB |
./main -m model_q5_k_m.gguf -n 256 --chat-template mistral -p "Your prompt here"
from llama_cpp import Llama
llm = Llama(
model_path="model_q5_k_m.gguf",
n_gpu_layers=-1,
n_ctx=2048,
chat_format="mistral"
)
response = llm.create_chat_completion(
messages=[{"role": "user", "content": "Your prompt here"}],
max_tokens=256
)
print(response["choices"][0]["message"]["content"])
.gguf file from this repoollama create rankzephyr -f Modelfile
Modelfile:
FROM model_q5_k_m.gguf
PARAMETER temperature 0.7
castorini/rank_zephyr_7b_v1_full — Fine-tuned version of Zephyr-7B-β designed for listwise reranking tasks. State-of-the-art open-source reranking model achieving 0.7803 NDCG@10 on DL19 and 0.8211 on DL20 with SPLADE++ ED first-stage retrieval.
RankZephyr is designed to rerank search results produced by first-stage retrievers. Provide it with a query and a list of documents, and it will output a reordered ranking based on relevance.
MIT (as per base model)
@ARTICLE{pradeep2023rankzephyr,
title = {{RankZephyr}: Effective and Robust Zero-Shot Listwise Reranking is a Breeze!},
author = {Ronak Pradeep and Sahel Sharifymoghaddam and Jimmy Lin},
year = {2023},
journal = {arXiv:2312.02724}
}