Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prompts are not used in WinRateCallback #1859

Closed
qgallouedec opened this issue Jul 23, 2024 · 3 comments · Fixed by #2010
Closed

prompts are not used in WinRateCallback #1859

qgallouedec opened this issue Jul 23, 2024 · 3 comments · Fixed by #2010

Comments

@qgallouedec
Copy link
Member

          Not from your PR, but I do not think these prompts are ever used. Given the potentially high cost of running this callback, perhaps the user could provide the eval dataset or a subset of it directly, rather than assuming the callback needs to be run on the entire eval dataset.

Example:

...
    def __init__(
        self,
        eval_dataset: Dataset,
        judge: BaseJudge,
        trainer: Trainer,
        generation_config: Optional[GenerationConfig] = None,
        batch_size: int = 4,
    ):
        self.generation_config = generation_config
        self.judge = judge
        self.ref_completions = []
        self.trainer = trainer
        self.eval_dataset = eval_dataset
...

Originally posted by @edbeeching in #1856 (comment)

@qgallouedec
Copy link
Member Author

That's a good point!
I'll address this issue in a dedicated PR

Copy link

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

@qgallouedec
Copy link
Member Author

Still need to be addressed

@qgallouedec qgallouedec linked a pull request Sep 3, 2024 that will close this issue
5 tasks
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 a pull request may close this issue.

1 participant