Skip to content

Commit 03dbdb1

Browse files
committed
fix misplaced parenthesis and update license
1 parent bb31de8 commit 03dbdb1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

LICENSE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
same "printed page" as the copyright notice for easier
190190
identification within third-party archives.
191191

192-
Copyright 2023-2024 Sebastian Raschka
192+
Copyright 2023-2025 Sebastian Raschka
193193

194194
Licensed under the Apache License, Version 2.0 (the "License");
195195
you may not use this file except in compliance with the License.

ch05/01_main-chapter-code/gpt_train.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,4 +239,4 @@ def main(gpt_config, settings):
239239
# Save and load model
240240
torch.save(model.state_dict(), "model.pth")
241241
model = GPTModel(GPT_CONFIG_124M)
242-
model.load_state_dict(torch.load("model.pth"), weights_only=True)
242+
model.load_state_dict(torch.load("model.pth", weights_only=True))

0 commit comments

Comments
 (0)