Frozen GPTConfig

This commit is contained in:
ankandrew committed 2022-12-29 17:07:19 -03:00
1 parent 682a0ac8f1
commit 7f0e6d9a71
1 file changed
+1 -1
+1 -1
View File
@@ -90,7 +90,7 @@ class Block(nn.Module):
x = x + self.mlp(self.ln_2(x)) x = x + self.mlp(self.ln_2(x))
return x return x
@dataclass @dataclass(frozen=True)
class GPTConfig: class GPTConfig:
block_size: int = 1024 block_size: int = 1024
vocab_size: int = 50257 vocab_size: int = 50257