-
Notifications
You must be signed in to change notification settings - Fork 272
Modernize datasets: type hints and data splits handling #1959
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
Modernize datasets: type hints and data splits handling #1959
Conversation
Signed-off-by: ojeda-e <estefania.b.ojeda@gmail.com>
Summary of ChangesHello @ojeda-e, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on modernizing the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
The pull request modernizes the datasets module by adding type hints and improving data splits handling. The changes include using | None for optional types, replacing Optional[Dict[str, Dataset]] with dict[str, Dataset] | None, and using a match statement for handling different types of splits. The code also includes renaming a variable for clarity.
|
👋 Hi! Thank you for contributing to llm-compressor. Please add the ready label when the PR is ready for review. Note: This is required to complete the testing suite, please only add the label once the PR is code complete and local testing has been performed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind addressing some of the test failures?
Head branch was pushed to by a user without write access
Signed-off-by: ojeda-e <estefania.b.ojeda@gmail.com>
3b857e9 to
b8f1c53
Compare
|
thanks @dsikka, thanks for catching that. I added a fix for it that hopefully will address the failed tests. |
|
@dsikka commit I think this error is unrelated to the changes in this PR. Can you offer any pointers here? |
|
re-running to see if ci/cd errors persist |
|
thanks @brian-dellabetta all test passing now. |
SUMMARY:
Part of #1927. Addresses changes in
datasetsmodule ->src/llmcompressor/datasets/utils.pyTEST PLAN:
make testmake stylepytest tests -m smoke