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

Improvement to enable quantization of Merge Models #623

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

Conversation

PedroPareja
Copy link

Fixes Inf and NaN values in the tensors that happen in the models produced by the merge of others. In those cases the inf values are replaced by MAX_VALUE.

I have successfully tested it in the quantization of invisietch/Nimbus-Miqu-v0.1-70B.

Fixes inf and nan values in the tensors that happen in the models produced by the merge of others. In those cases the inf values are replaced by MAX_VALUE.
Readme changes reverted
@turboderp
Copy link
Owner

I think this would be redundant with some of the recent changes. I don't like simply suppressing errors in the reference state, but I've added a check that allows for clamping +/- inf values if they make up a very small portion of the state.

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