Skip to content

Commit

Permalink
fix misplaced parenthesis and update license
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Jan 4, 2025
1 parent bb31de8 commit 03dbdb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2023-2024 Sebastian Raschka
Copyright 2023-2025 Sebastian Raschka

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ch05/01_main-chapter-code/gpt_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,4 @@ def main(gpt_config, settings):
# 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))

0 comments on commit 03dbdb1

Please sign in to comment.