(self, hidden_states)
| 119 | skip_bias_add=True) |
| 120 | |
| 121 | def forward(self, hidden_states): |
| 122 | |
| 123 | # [s, b, 4hp] |
| 124 | intermediate_parallel, bias_parallel = self.dense_h_to_4h(hidden_states) |
| 125 | |
| 126 | if self.bias_gelu_fusion: |
| 127 | intermediate_parallel = \ |
| 128 | bias_gelu_impl(intermediate_parallel, bias_parallel) |
| 129 | else: |
| 130 | intermediate_parallel = \ |
| 131 | self.activation_func(intermediate_parallel + bias_parallel) |
| 132 | |
| 133 | # [s, b, h] |
| 134 | output, output_bias = self.dense_4h_to_h(intermediate_parallel) |
| 135 | return output, output_bias |
| 136 | |
| 137 | |
| 138 | class ParallelSelfAttention(MegatronModule): |
nothing calls this directly
no outgoing calls
no test coverage detected