(self, hidden_states: torch.Tensor, scale: float = 1.0)
| 666 | self.net.append(nn.Dropout(dropout)) |
| 667 | |
| 668 | def forward(self, hidden_states: torch.Tensor, scale: float = 1.0) -> torch.Tensor: |
| 669 | compatible_cls = (GEGLU,) if USE_PEFT_BACKEND else (GEGLU, LoRACompatibleLinear) |
| 670 | for module in self.net: |
| 671 | if isinstance(module, compatible_cls): |
| 672 | hidden_states = module(hidden_states, scale) |
| 673 | else: |
| 674 | hidden_states = module(hidden_states) |
| 675 | return hidden_states |
nothing calls this directly
no outgoing calls
no test coverage detected