mirror of
https://github.com/karpathy/nanochat.git
synced 2026-04-17 22:38:32 +00:00
Merge a991ed8e39 into 8180e1d8c1
This commit is contained in:
commit
969e8980e7
|
|
@ -31,7 +31,7 @@ class MockModel:
|
|||
def __init__(self, vocab_size=262): # 256 bytes + 6 special tokens
|
||||
self.vocab_size = vocab_size
|
||||
self.config = MockConfig()
|
||||
self._device = "cpu"
|
||||
self._device = torch.device("cpu")
|
||||
|
||||
def get_device(self):
|
||||
return self._device
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user