Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions trainers/rewards/custom_rewards.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def custom_reward_func(completions: List[str], **kwargs) -> List[float]:
# - Check for specific patterns or keywords
# - Validate output format
# - Score based on custom criteria
_ = completion # Placeholder use; replace with real scoring logic
_ = completion # Placeholder use; replace with real scoring logic
reward = 0.0 # Placeholder: currently returns 0.0
rewards.append(reward)
# =========================================
Expand Down