MCPcopy
hub / github.com/FareedKhan-dev/train-llm-from-scratch / train_reward.py

File train_reward.py

scripts/train_reward.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2Train the reward model on preference pairs with the Bradley-Terry loss.
3
4Initializes the reward backbone from the SFT checkpoint, adds a scalar reward head, and

Callers

nothing calls this directly

Calls 1

mainFunction · 0.70

Tested by

no test coverage detected