From 7f0e6d9a71802cf848885d209f7c6f58972807fd Mon Sep 17 00:00:00 2001 From: ankandrew <61120139+ankandrew@users.noreply.github.com> Date: Thu, 29 Dec 2022 17:07:19 -0300 Subject: [PATCH] Frozen GPTConfig --- model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model.py b/model.py index 4b37837..327711a 100644 --- a/model.py +++ b/model.py @@ -90,7 +90,7 @@ class Block(nn.Module): x = x + self.mlp(self.ln_2(x)) return x -@dataclass +@dataclass(frozen=True) class GPTConfig: block_size: int = 1024 vocab_size: int = 50257