Skip to content

Bug in LlamaMLP layer to detect neurons (inside Neuron Detection folder) #6

Description

@RadiantCrystal

Is not it bug in the given line https://github.com/DAMO-NLP-SG/multilingual_analysis/blob/main/neuron_detection/transformers/models/llama/modeling_llama.py#L246

return real_output, torch.sum(torch.abs(self.up_proj(x)), dim=1).squeeze().tolist(), torch.sum(torch.abs(self.up_proj(x)), dim=1).squeeze().tolist()

Should it not be self.up_proj(x) and self.down_proj(x)?

Can authors please clarify this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions