Downloads · 30 days
5
9% of all-time downloads
heegyu/1011-hh-rlhf-1.1b-128-1e-5-epoch-1
1011-hh-rlhf-1.1b-128-1e-5-epoch-1 is a text classification model from heegyu. Use it when you need a label for a piece of text. It is set up for transformers.
- base model: PY007/TinyLlama-1.1B-intermediate-step-480k-1T - helpful accuracy: 68.37 - harmless accuracy: 69.71 - total accuracy: 68.74 - 1011-hh-rlhf-1.1b-128-1e-5-epoch-1 (1024 sequence length)
Downloads · 30 days
5
9% of all-time downloads
All-time downloads
57
Public
Repo size
12.4 GB
Likes
0
Public
Click a slice to open those files.
.bin6.2 GB · 100%
From the Hugging Face model README
usage:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("heegyu/1011-hh-rlhf-1.1b-128-1e-5-epoch-1")
model = AutoModelForSequenceClassification.from_pretrained("heegyu/1011-hh-rlhf-1.1b-128-1e-5-epoch-1")
text = """Human: Hi, how are you today?
Assistant: It's so nice!"""
inputs = tokenizer(text, return_tensors="pt")
print(model(**inputs).logits)
# tensor([[0.4552]])
text = """Human: Hi, how are you today?
Assistant: It's so nice!
Human: Really? I'm not so good today
Assistant: Haha!! That's too bad!"""
inputs = tokenizer(text, return_tensors="pt")
print(model(**inputs).logits)
# tensor([[0.0179]])