Downloads · 30 days
13
11% of all-time downloads
Miao025/Qwen-KinderChatbot-Reward
Qwen-KinderChatbot-Reward is a text ranking model from Miao025. Use it for the text ranking task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This is a text Reranker model to score if a text is kindergarten-teacher style.
Downloads · 30 days
13
11% of all-time downloads
All-time downloads
118
Public
Parameters
67M
269 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This is a text Reranker model to score if a text is kindergarten-teacher style.
from transformers import AutoTokenizer, AutoModelForCausalLM
# Load tokenizer and reranker model (Note that you can also download the models and load with local path.)
tokenizer_reward = AutoTokenizer.from_pretrained("Miao025/Qwen-KinderChatbot-Reward")
reward_model = AutoModelForSequenceClassification.from_pretrained("Miao025/Qwen-KinderChatbot-Reward")
# For each prompt-response pair, get the score
inputs = tokenizer_reward(prompt, response, return_tensors="pt", truncation=True)
with torch.no_grad():
logits = reward_model(**inputs).logits
score = torch.softmax(logits, dim=-1)[0,1].item()
[Training Dataset Card](to be add) Training process can be found on Github.
For any questions, please contact the author [email protected]