A Python library for defining, testing, and using reward functions, particularly for RLHF and AI alignment. Version 0.4.1, pre-1.0, active development with weekly releases.
pip install reward-kitNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize a reward function, load a dataset, and evaluate a sample.
Use 'from reward_kit import evaluate_reward' instead of 'from reward_kit.utils import evaluate_reward'
Pass a Model enum value, e.g., reward_kit.Model.MORALITY, or keep string but expect future removal.
Use model='morality_v2' or reward_kit.Model.MORALITY_V2.
Ensure you have internet access or expect ConnectionError.
Run 'pip install reward-kit' in the correct Python environment.
Use 'from reward_kit import evaluate_reward' instead of 'from reward_kit.utils import evaluate_reward'.
Use 'morality_v2' or import Model enum: reward_kit.Model.MORALITY_V2.