mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2025-08-28 10:30:36 +00:00
fix misplaced parenthesis and update license (#466)
This commit is contained in:
parent
57fdd94358
commit
05a816e270
@ -189,7 +189,7 @@
|
|||||||
same "printed page" as the copyright notice for easier
|
same "printed page" as the copyright notice for easier
|
||||||
identification within third-party archives.
|
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");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
@ -239,4 +239,4 @@ if __name__ == "__main__":
|
|||||||
# Save and load model
|
# Save and load model
|
||||||
torch.save(model.state_dict(), "model.pth")
|
torch.save(model.state_dict(), "model.pth")
|
||||||
model = GPTModel(GPT_CONFIG_124M)
|
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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user