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

[Testing Github workflow] Updating workflows and makefile #214

Merged
merged 6 commits into from
Feb 10, 2025

Conversation

zeenolife
Copy link
Contributor

Adding automated testing for CI pipeline

@zeenolife
Copy link
Contributor Author

PTAL @lewtun

Copy link
Member

@lewtun lewtun left a comment

Choose a reason for hiding this comment

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

Thanks for adding the CI! LGTM with some small changes

Makefile Outdated
@@ -14,6 +14,8 @@ quality:
isort --check-only $(check_dirs) setup.py
flake8 --max-line-length 119 $(check_dirs) setup.py

test:
pytest tests/
Copy link
Member

Choose a reason for hiding this comment

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

nit for debugging failed runs:

Suggested change
pytest tests/
pytest -sv tests/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point

Copy link
Member

Choose a reason for hiding this comment

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

Could we rename this action to tests.yml please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, do you mean rename the filename or creating another for tests?

@zeenolife zeenolife requested a review from lewtun February 7, 2025 20:22
@zeenolife
Copy link
Contributor Author

re-pinging @lewtun

@@ -59,10 +59,10 @@ def format_reward(completions, **kwargs):
def reasoning_steps_reward(completions, **kwargs):
"""Reward function that checks for clear step-by-step reasoning.
Copy link
Member

Choose a reason for hiding this comment

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

maybe this instead?

Suggested change
"""Reward function that checks for clear step-by-step reasoning.
r"""Reward function that checks for clear step-by-step reasoning.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that's cleaner, thanks

self.assertEqual(reward_fn, 0)
completions = [[{"content": "test test test"}]]
rewards = reward_fn(completions)
self.assertEqual(rewards, [0.0])
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test was failing, because it was comparing int to function. I guess this was the intention

Copy link
Member

Choose a reason for hiding this comment

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

you can remove this test

Copy link
Member

@qgallouedec qgallouedec left a comment

Choose a reason for hiding this comment

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

thanks, please just remove the test mentioned and we're good to merge

@zeenolife
Copy link
Contributor Author

Done

@qgallouedec qgallouedec merged commit 517addd into huggingface:main Feb 10, 2025
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.

3 participants