inline comment change
This commit is contained in:
@@ -384,7 +384,7 @@ class LlamaDifferentialAttentionBase(nn.Module):
|
|||||||
"""
|
"""
|
||||||
attn = self.subln(attn)
|
attn = self.subln(attn)
|
||||||
# NOTE: this may need to be added back in, but doesn't interact well with
|
# NOTE: this may need to be added back in, but doesn't interact well with
|
||||||
# `diff_attn_mix`.
|
# `diff_attn_mix`, and doesn't allow us to preserve the original model output.
|
||||||
# attn = attn * self.diff_attn_mix * (1 - self.lambda_init)
|
# attn = attn * self.diff_attn_mix * (1 - self.lambda_init)
|
||||||
attn = attn.transpose(1, 2).reshape(bsz, q_len, self.config.hidden_size)
|
attn = attn.transpose(1, 2).reshape(bsz, q_len, self.config.hidden_size)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user