-
Notifications
You must be signed in to change notification settings - Fork 12.7k
imatrix: calculate activation-based statistics for new format (GGUF) imatrices #14891
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
Draft
EAddario
wants to merge
40
commits into
ggml-org:master
Choose a base branch
from
EAddario:imatrix
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+379
−150
Draft
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
09bc7c2
Use activations to calculate the stats
EAddario 2097f03
Refactor variable names
EAddario 78ddb47
Fix problem up when GGUF does not have in_sum
EAddario 9744a4a
Determine calculation mode
EAddario cce514a
Compute entropy for activations
EAddario b7fb362
Compute cosine similarity based on activations
EAddario 9b841eb
Compute l2 norm
EAddario ee2509f
Adjust threshold
EAddario fc8f925
Update table display
EAddario 4c01f51
Remove inactive
EAddario a32a2ec
Reformat report layout
EAddario 4d1325e
Refactor variables
EAddario 5324558
Update table layout
EAddario fce05aa
Refactor lambda into compute_tensor_averages() function
EAddario be60469
Refactor function names
EAddario a6155a8
Add compute_layer_statistics() function
EAddario 2117c4e
Update aggregated statistic report layout
EAddario 90cb1be
Minor cosmetic changes
EAddario f1c2a4c
Fix printing l2 norm when calc_mode = 1
EAddario c39c4e2
Refactor variable name
EAddario adbff66
Merge branch 'master' into imatrix
EAddario 5e40cf4
Do not resize if in_sum is null
EAddario b373934
Compute aggregated (per layer) l2 norm
EAddario 906548a
Update aggregated sum of squared activations per layer
EAddario aea9b31
Make ZD Score two-tailed
EAddario 49996a1
Refactor variable names
EAddario 4c3fea8
Update report layout
EAddario 88854c9
Refactor legacy mode
EAddario 030ed3c
Merge branch 'master' into imatrix
EAddario c7959ed
Merge branch 'master' into imatrix
EAddario 3e9d53c
Refactor variable names
EAddario e0d6471
Reverse conditional logic to match convention
EAddario dadd90e
Rename report heading
EAddario 5bb2def
Add --activation-statistics parameter
EAddario c5ecdaa
Add Euclidean–Cosine Score (ECS)
EAddario 59af503
Update README.md
EAddario 9467963
Merge branch 'master' into imatrix
EAddario 6fe51e1
Fix typo in ECS formula
EAddario dcac206
Add --activation-statistics logic to avoid doubling the imatrix size …
EAddario 89051cd
Update README.md
EAddario File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.