mirror of
https://github.com/karpathy/nanochat.git
synced 2026-04-04 06:35:23 +00:00
Merge a991ed8e39 into 788dadeb88
This commit is contained in:
commit
e093326f0e
|
|
@ -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