Skip to content

Regarding the function "select_activation_function" #2

@tue147

Description

@tue147

In file mlp.py, and similar MLP files, I believe the function select_activation_function should be called inside the forward function. Else, it would not change the state of MLP gradient by simply changing the config:
`model.cfg.use_lrp = True
model.cfg.LRP_rules = ['LN-rule', 'Identity-rule', 'Half-rule']

model.set_use_attn_result(True)
model.set_use_hook_mlp_in(True)
model.set_use_attn_in(True)
model.set_use_split_qkv_input(True)`, as in the notebook.

Thanks for reviewing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions