| 322 | @si_module |
| 323 | class Stack(nn.Module): |
| 324 | class Config: |
| 325 | layers: int |
| 326 | dim: int |
| 327 | seq_len: int |
| 328 | n_head: int = 32 |
| 329 | ff_dim: int = None |
| 330 | kv_heads: int = None |
| 331 | eps: float = 1e-5 |
| 332 | theta: Union[int, float] = 10_000 |
| 333 | causal: bool = True |
| 334 | |
| 335 | from_pretrained: Optional[Tuple[str, int]] = None |
| 336 | |
| 337 | def __init__(self, c: Config): |
| 338 | super().__init__() |
nothing calls this directly
no outgoing calls
no test coverage detected