Downloads · 30 days
18
29% of all-time downloads
Anas989898/creator-reranker-v2
creator-reranker-v2 is a machine learning model from Anas989898. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Fine-tuned reranker trained with preference learning (RewardTrainer / Bradley-Terry loss) on top of creator-reranker-v1.
Downloads · 30 days
18
29% of all-time downloads
All-time downloads
63
Public
Parameters
278M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 99%
From the Hugging Face model README
Fine-tuned reranker trained with preference learning (RewardTrainer / Bradley-Terry loss) on top of creator-reranker-v1.
from transformers import AutoModelForSequenceClassification, AutoTokenizer
import torch
model = AutoModelForSequenceClassification.from_pretrained("YourHFUsername/creator-reranker-v2")
tokenizer = AutoTokenizer.from_pretrained("YourHFUsername/creator-reranker-v2")
def score(query, fact):
inputs = tokenizer(query, fact, return_tensors="pt", truncation=True, max_length=512)
with torch.no_grad():
return model(**inputs).logits.squeeze().item()
print(score("works in fashion and beauty", "beauty influencer, collaborates with luxury brands"))
BAAI/bge-reranker-base → fine-tuned → creator-reranker-v1 → preference training → creator-reranker-v2