keeganmccallum / nemesis

Reward Model framework for LLM RLHF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reward-Model

Reward Model training framework for LLM RLHF. For in-depth understanding of Reward modeling, checkout our blog The word nemesis originally meant the distributor of fortune, neither good nor bad, simply in due proportion to each according to what was deserved.

Quick Start

  • Inference
from transformers import AutoModelForSequenceClassification, AutoTokenizer
MODEL = "shahules786/Reward-model-gptneox-410M"

model = AutoModelForSequenceClassification.from_pretrained(MODEL)
tokenizer = AutoTokenizer.from_pretrained(MODEL)
  • Training
python src/training.py --config-name <your-config-name>

Contributions

  • All contributions are welcome. Checkout #issues

About

Reward Model framework for LLM RLHF

License:Apache License 2.0


Languages

Language:Python 100.0%