Skip to content

Conversation

@PhungVanDuy
Copy link
Collaborator

No description provided.

@PhungVanDuy PhungVanDuy marked this pull request as draft May 24, 2023 14:41

def reward_fn(samples, prompts, original_output, **kwargs):
samples = [s[s.find("<|prompter|>") :] for s in samples]
prompts = [p[p.find("<|prompter|>") :] for p in prompts]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this has to be done here? Is it to strip <|system|> from some of the prompts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants