Downloads · 30 days
9
8% of all-time downloads
samhitha2601/llama3-gsm8k-critic
llama3-gsm8k-critic is a machine learning model from samhitha2601. Use it for the machine learning 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 critic/reward model (single scalar output) converted from an FSDP checkpoint to Hugging Face format.
Downloads · 30 days
9
8% of all-time downloads
All-time downloads
118
Public
Parameters
3.2B
6.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.4 GB · 100%
From the Hugging Face model README
This is a critic/reward model (single scalar output) converted from an FSDP checkpoint to Hugging Face format.
Details
meta-llama/Llama-3.2-3Bscore (1-dim regression)from transformers import AutoModelForSequenceClassification, AutoTokenizer
import torch
model = AutoModelForSequenceClassification.from_pretrained("samhitha2601/llama3-gsm8k-critic")
tokenizer = AutoTokenizer.from_pretrained("samhitha2601/llama3-gsm8k-critic")
text = "Question: What is 2+2? Answer: 4"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=1024, padding=True)
with torch.no_grad():
out = model(**inputs)
# The reward is in the logits output
reward = out.logits[0, 0].item()
print("Reward:", reward)