mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2025-08-29 11:00:55 +00:00
remove redundant line
This commit is contained in:
parent
cb194fa8fa
commit
e1046746e8
@ -431,7 +431,6 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"optimizer = torch.optim.AdamW(model.parameters(), lr=0.0004, weight_decay=0.1)\n",
|
"optimizer = torch.optim.AdamW(model.parameters(), lr=0.0004, weight_decay=0.1)\n",
|
||||||
"optimizer.load_state_dict(checkpoint[\"optimizer_state_dict\"])\n",
|
"optimizer.load_state_dict(checkpoint[\"optimizer_state_dict\"])\n",
|
||||||
"model.to(device)\n",
|
|
||||||
"model.train();"
|
"model.train();"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user