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

How to get the mean value of massive activation #3

Open
pengyao96 opened this issue Mar 5, 2024 · 1 comment
Open

How to get the mean value of massive activation #3

pengyao96 opened this issue Mar 5, 2024 · 1 comment

Comments

@pengyao96
Copy link

  1. How to get the mean value of massive activation?e.g. 2546.8/-1502.0 in hook.py
  2. Mean value is still large, what is the difference between using the mean value and using the original value?
@Eric-mingjie
Copy link
Collaborator

Hi, Thanks for you interest in our work.

To get the mean value, we simply evaluate 100 sequences from RedPajama and record the value of massive activations of each sequence.

In practice, we find no performance difference between using the mean value or the original value. But the original value may vary by each sequence, see Table 2, so it might be hard to justify which original value to use.

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

No branches or pull requests

2 participants