Skip to content

Commit 8a26723

Browse files
committed
add else statement for non-swiglu acts
Signed-off-by: Peter St. John <pstjohn@nvidia.com>
1 parent 0d30652 commit 8a26723

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

models/amplify/src/amplify/amplify_te.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ def __init__(self, config: AMPLIFYConfig, **kwargs):
169169
intermediate_size = int(2 * config.intermediate_size / 3)
170170
intermediate_size = multiple_of * ((intermediate_size + multiple_of - 1) // multiple_of)
171171

172+
else:
173+
intermediate_size = config.intermediate_size
174+
172175
self.transformer_encoder = nn.ModuleList()
173176
for layer_num in range(config.num_hidden_layers):
174177
self.transformer_encoder.append(

0 commit comments

Comments
 (0)