Skip to content

Commit

Permalink
fix ia3 mlp infused adapter (#8597)
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Cui <chcui@nvidia.com>
  • Loading branch information
cuichenx authored Mar 6, 2024
1 parent c945058 commit 7d0d39a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ def glu(x):
else:
intermediate_parallel = self.activation_func(intermediate_parallel)

infused_adapter = self.get_adapter_module(AdapterName.MLP_INFUSED)
if infused_adapter:
intermediate_parallel = infused_adapter(intermediate_parallel)

# [s, b, h]
output, output_bias = self.linear_fc2(intermediate_parallel)

Expand Down

0 comments on commit 7d0d39a

Please sign in to comment.