-
Notifications
You must be signed in to change notification settings - Fork 255
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
Visualize layer activations and weights to simplify the quantization process. #607
base: main
Are you sure you want to change the base?
Conversation
Hi, @HIT-cwh |
Support for this feature is currently in development and will be progressively enhanced in the forthcoming iterations. |
Can we use |
May add user guide about the usage of this great tool. |
The commit that fixes the load ckpt bug has been split out. Please refer to pr690 |
Usage
For instance, the code below presents the visualized results of computing the absolute maximum value across multiple tokens specifically for the input of all 'q_proj' linear layers within DecoderLayers 0 and 1
Output:
For instance, the code below presents the visualized results of the relationship between the input of all 'q_proj' linear layers within DecoderLayers 0 and 1, and their corresponding weights.
For instance, the code below displays a boxplot showcasing the absolute maximum values computed across multiple tokens, specifically for the input of all 'q_proj' linear layers.
For instance, the code below illustrates the computed maximum and minimum values across multiple tokens, specifically for the input of all 'q_proj' linear layers within DecoderLayers 0 and 1.