mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2026-04-10 12:33:42 +00:00
show how to use the finetuned model
This commit is contained in:
@@ -2326,7 +2326,7 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"model_state_dict = torch.load(\"review_classifier.pth\")\n",
|
||||
"model_state_dict = torch.load(\"review_classifier.pth\", map_location=device)\n",
|
||||
"model.load_state_dict(model_state_dict)"
|
||||
]
|
||||
},
|
||||
@@ -2372,7 +2372,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.4"
|
||||
"version": "3.12.2"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
Reference in New Issue
Block a user