composer
composer copied to clipboard
[WIP] Error logging callback
What does this PR do?
This PR adds a callback that logs ICL outputs during eval. It modifies the custom metrics to keep track of incorrect model outputs. Each metric is responsible for specifying the table schema for logging cached responses as well as specifying how to format the cached responses using the tokenizer.
The EvalOutputLogging callback is then responsible for logging the cached results in table format after each evaluation.
Design doc
What issue(s) does this change relate to?
Before submitting
- [x] Have you read the contributor guidelines?
- [ ] Is this change a documentation change or typo fix? If so, skip the rest of this checklist.
- [ ] Was this change discussed/approved in a GitHub issue first? It is much more likely to be merged if so.
- [x] Did you update any related docs and document your change?
- [x] Did you update any related tests and add any new tests related to your change? (see testing)
- [x] Did you run the tests locally to make sure they pass?
- [x] Did you run
pre-commit
on your change? (see thepre-commit
section of prerequisites)