licesma commited on
Commit
ef32c53
·
1 Parent(s): 9687f25
Files changed (1) hide show
  1. 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:0' 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",
 
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",