Downloads · 30 days
15
15% of all-time downloads
Jennny/llama3-1-8b-bb-rm
llama3-1-8b-bb-rm is a machine learning model from Jennny. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
15
15% of all-time downloads
All-time downloads
98
Public
Parameters
7.5B
15 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors15 GB · 100%
From the Hugging Face model README
reward_model = AutoModelForSequenceClassification.from_pretrained(
reward_model_path,
num_labels=1,
torch_dtype=torch.bfloat16,
attn_implementation="flash_attention_2",
use_cache=False,
)
inputs = xxxx (Left Padding Input Tokens)
reward = reward_model.model(*inputs).last_hidden_state
reward = reward_model.score(reward)[:, -1]
Cite OpenRLHF as:
@article{hu2024openrlhf,
title={OpenRLHF: An Easy-to-use, Scalable and High-performance RLHF Framework},
author={Jian Hu and Xibin Wu and Zilin Zhu and Xianyu and Weixun Wang and Dehao Zhang and Yu Cao},
journal={arXiv preprint arXiv:2405.11143},
year={2024}
}