File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
ch05/01_main-chapter-code Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 189
189
same "printed page" as the copyright notice for easier
190
190
identification within third-party archives.
191
191
192
- Copyright 2023-2024 Sebastian Raschka
192
+ Copyright 2023-2025 Sebastian Raschka
193
193
194
194
Licensed under the Apache License, Version 2.0 (the "License");
195
195
you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change @@ -239,4 +239,4 @@ def main(gpt_config, settings):
239
239
# Save and load model
240
240
torch .save (model .state_dict (), "model.pth" )
241
241
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 ) )
You can’t perform that action at this time.
0 commit comments