mirror of
https://github.com/osmarks/nanogpt-experiments.git
synced 2024-11-10 20:09:58 +00:00
oops optimizer now demands to know device_type
This commit is contained in:
parent
34720df284
commit
580902617c
2
bench.py
2
bench.py
@ -57,7 +57,7 @@ gptconf = GPTConfig(
|
||||
model = GPT(gptconf)
|
||||
model.to(device)
|
||||
|
||||
optimizer = model.configure_optimizers(weight_decay=1e-2, learning_rate=1e-4, betas=(0.9, 0.95))
|
||||
optimizer = model.configure_optimizers(weight_decay=1e-2, learning_rate=1e-4, betas=(0.9, 0.95), device_type=device_type)
|
||||
|
||||
if compile:
|
||||
print("Compiling model...")
|
||||
|
Loading…
Reference in New Issue
Block a user