(self, config: Config)
| 244 | |
| 245 | class Block(nn.Module): |
| 246 | def __init__(self, config: Config) -> None: |
| 247 | super().__init__() |
| 248 | self.norm_1 = config.norm_class(config.n_embd, eps=config.norm_eps) |
| 249 | self.attn = CausalSelfAttention(config) |
| 250 | if not config.shared_attention_norm: |
| 251 | self.norm_2 = config.norm_class(config.n_embd, eps=config.norm_eps) |
| 252 | self.mlp = config.mlp_class(config) |
| 253 | self.config = config |
| 254 | |
| 255 | def forward( |
| 256 | self, |
nothing calls this directly
no test coverage detected