fix misplaced parenthesis and update license (#466)

This commit is contained in:
Sebastian Raschka
2025-01-04 11:14:08 -06:00
committed by GitHub
parent 57fdd94358
commit 05a816e270
2 changed files with 2 additions and 2 deletions

View File

@@ -239,4 +239,4 @@ if __name__ == "__main__":
# Save and load model
torch.save(model.state_dict(), "model.pth")
model = GPTModel(GPT_CONFIG_124M)
model.load_state_dict(torch.load("model.pth"), weights_only=True)
model.load_state_dict(torch.load("model.pth", weights_only=True))