Fix small error

This commit is contained in:
Nripesh Niketan 2025-01-30 16:04:00 +00:00 committed by GitHub
parent e75ce46245
commit b6e3910fd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -802,7 +802,7 @@ if __name__ == "__main__":
default_device = "mps"
else:
default_device = "cpu"
torch.set_default_device("default_device")
torch.set_default_device(default_device)
torch.manual_seed(0)
args = ModelArgs()
x = torch.randint(0, args.vocab_size, (2, 128))