Skip to content

Save partial imatrix data #7910

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

CISC
Copy link
Collaborator

@CISC CISC commented Jun 12, 2024

Allow saving partial imatrix data again to be able to load it later with --in-file.

If an imatrix with partial or otherwise non-normal data is attempted used for quantization, remove the affected entries with a warning, non-imatrix quantization will then be performed on these tensors (if allowed).

Also allow resuming with a previously generated imatrix with non-normal data by clearing the affected data.

@mofosyne mofosyne added the Review Complexity : Medium Generally require more time to grok but manageable by beginner to medium expertise level label Jun 13, 2024
@ggerganov
Copy link
Member

Not sure about this change - it's better to just have proper imatrix data instead of adding extra logic. If you have imatrices with nans - just delete those as they are pretty much useless

@CISC
Copy link
Collaborator Author

CISC commented Jun 13, 2024

Not sure about this change - it's better to just have proper imatrix data instead of adding extra logic. If you have imatrices with nans - just delete those as they are pretty much useless

Being able to load a partial imatrix is essential for the already existing resume-functionality, adding the recovery of corrupted data was just an afterthought since I can't see any downside to it, it will effectively erase the bad data.

Copy link

@vignesh1507 vignesh1507 left a comment

Choose a reason for hiding this comment

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

Not sure what's happening in this PR can anyone pls explain me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Review Complexity : Medium Generally require more time to grok but manageable by beginner to medium expertise level
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants