mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2026-04-10 12:33:42 +00:00
Fix empty device issue (#904)
This commit is contained in:
committed by
GitHub
parent
bcc73f731d
commit
58f45ae5a7
@@ -561,6 +561,8 @@
|
||||
" major, minor = map(int, torch.__version__.split(\".\")[:2])\n",
|
||||
" if (major, minor) >= (2, 9):\n",
|
||||
" device = torch.device(\"mps\")\n",
|
||||
" else:\n",
|
||||
" device = torch.device(\"cpu\")\n",
|
||||
"else:\n",
|
||||
" device = torch.device(\"cpu\")\n",
|
||||
"\n",
|
||||
|
||||
Reference in New Issue
Block a user