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

Cepo #1

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Cepo #1

wants to merge 9 commits into from

Conversation

pawelf-cerebras
Copy link
Collaborator

No description provided.

optillm/cepo.py Outdated Show resolved Hide resolved
@erich-cerebras
Copy link
Collaborator

Do we also want to maybe edit the ReadMe.md here: https://github.com/CerebrasResearch/cb_optillm/blob/cepo/README.md#implemented-techniques ?

This will allow users to do the following:
1. Cli where if they can pass in anything that's "cepo_<name-of-attribute>"
2. Yaml file where if they pass it in as "<name-of-attribute>"
3. If none of them have a specific attribute, we use the default setting
4. If both of them have the specific attribute, we error out
Copy link
Collaborator

@erich-cerebras erich-cerebras left a comment

Choose a reason for hiding this comment

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

Just a couple of small comments, besides that it LGTM!


try:
rating = float(rating_response)
ratings.append(rating)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: Merge the two lines together since we don't need rating afterwards:

ratings.append(float(rating_response))

except ValueError:
ratings.append(0)

rating_messages = rating_messages[:-2]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a comment on why you're using the magic number -2?

erich-cerebras and others added 2 commits December 19, 2024 08:21
Add modification of CePO configs through yaml and cli arguments
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