(self, hidden_states: torch.Tensor, residual: torch.Tensor)
| 500 | self.hidden_dropout = config.hidden_dropout |
| 501 | |
| 502 | def forward(self, hidden_states: torch.Tensor, residual: torch.Tensor) -> torch.Tensor: |
| 503 | intermediate_output = self.down_proj(F.silu(self.gate_proj(hidden_states)) * self.up_proj(hidden_states)) |
| 504 | output = dropout_add(intermediate_output, residual, self.hidden_dropout, self.training) |
| 505 | return output |
| 506 | |
| 507 | |
| 508 | class TelechatBlock(nn.Module): |
nothing calls this directly
no test coverage detected