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

Add optional logging of text output to EvalOutputLogging #1283

Merged
merged 16 commits into from
Jul 1, 2024

Conversation

sjawhar
Copy link
Contributor

@sjawhar sjawhar commented Jun 14, 2024

Adds the ability to log text output using EvalOutputLogging in non-metrics/ICL use cases. This appears as a new outputs key in the logged dictionary, which is set to stats.outpus and de-tokenized when the model is a HuggingFaceModel and the dataset has a tokenizer.

@sjawhar sjawhar requested a review from a team as a code owner June 14, 2024 03:01
@mvpatel2000
Copy link
Collaborator

@maxisawesome can you please take a look?

CC: @dakinggg

@sjawhar
Copy link
Contributor Author

sjawhar commented Jun 14, 2024

image
YES!! It's finally working! The logging, that is. Not my fine-tuning, that's still garbage. But I can finally start debugging!

@maxisawesome
Copy link
Contributor

Looks great other than the one comment I left! Thanks for fixing this for non-generative evals.

@mvpatel2000
Copy link
Collaborator

@sjawhar if you can fix lint + unit tests (the CPU ones) that would be awesome! then we can merge

@sjawhar
Copy link
Contributor Author

sjawhar commented Jun 23, 2024

Anything else I can do to help get this merged?

@dakinggg
Copy link
Collaborator

@sjawhar sorry about that, will take a look this week!

Copy link
Collaborator

@dakinggg dakinggg left a comment

Choose a reason for hiding this comment

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

LGTM, please update the PR title and description to reflect the changes in this PR. Thank you!

@sjawhar sjawhar changed the title Try to fix eval_output_logging_callback.py Add optional logging of text output to EvalOutputLogging Jun 30, 2024
@sjawhar
Copy link
Contributor Author

sjawhar commented Jun 30, 2024

LGTM, please update the PR title and description to reflect the changes in this PR. Thank you!

Done

@dakinggg
Copy link
Collaborator

@sjawhar looks like the tests failed with the recent change

@dakinggg dakinggg enabled auto-merge (squash) June 30, 2024 22:13
@dakinggg dakinggg merged commit 68c2625 into mosaicml:main Jul 1, 2024
9 checks passed
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.

4 participants