Downloads · 30 days
11
2% of all-time downloads
RikoteMaster/sanity_check_model
sanity_check_model is a machine learning model from RikoteMaster. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft.
This model is fine-tuned on the sanity check dataset for multiple choice question answering.
Downloads · 30 days
11
2% of all-time downloads
All-time downloads
508
Public
Repo size
740 MB
Likes
0
Public
Click a slice to open those files.
.pt324 MB · 54%
From the Hugging Face model README
This model is fine-tuned on the sanity check dataset for multiple choice question answering.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("RikoteMaster/sanity_check_model")
tokenizer = AutoTokenizer.from_pretrained("RikoteMaster/sanity_check_model")
# Example usage
question = "What is 2+2?"
choices = ["3", "4", "5", "6"]
messages = [{
"role": "user",
"content": question + "\n" + "\n".join([f"{chr(65+i)}. {choice}" for i, choice in enumerate(choices)])
}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=10)
print(tokenizer.decode(outputs[0]))
### Framework versions
- PEFT 0.15.2