Skip to content

Prefix tuning with "gated add" for Roberta  #20

@GeondoPark

Description

@GeondoPark

Hi, thanks for publishing the paper and sharing the source code.

I found that the "attn_output" is not used after definition.
When learning roberta for parameter efficient learning, the paper version of prefix tuning does not seem to work properly.

Could you please check it out?!

if self.config.attn_mode != "none" and self.config.attn_composition == "gate_add":
attn_output = context_layer * w_attn + cross_attn_output * w_prefix

Thanks!

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