MCPcopy Create free account
hub / github.com/Standard-Intelligence/hertz-dev / Config

Class Config

transformer.py:324–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322@si_module
323class 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__()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected