fix cuda
Browse files- finetune_model.ipynb +1 -1
finetune_model.ipynb
CHANGED
@@ -213,7 +213,7 @@
|
|
213 |
"\n",
|
214 |
"# Load model with quantization\n",
|
215 |
"#device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n",
|
216 |
-
"device_name = 'cuda
|
217 |
"device = torch.device(device_name)\n",
|
218 |
"model = AutoModelForCausalLM.from_pretrained(\n",
|
219 |
" model_name, \n",
|
|
|
213 |
"\n",
|
214 |
"# Load model with quantization\n",
|
215 |
"#device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n",
|
216 |
+
"device_name = 'cuda' if torch.cuda.is_available() else 'cpu'\n",
|
217 |
"device = torch.device(device_name)\n",
|
218 |
"model = AutoModelForCausalLM.from_pretrained(\n",
|
219 |
" model_name, \n",
|