Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,13 @@
|
|
1 |
import torch
|
2 |
|
3 |
-
#
|
4 |
-
|
|
|
|
|
|
|
5 |
|
6 |
# Load the checkpoint
|
7 |
-
lora_path = "./lora_checkpoint.pt" # Path to the checkpoint file
|
8 |
checkpoint = torch.load(lora_path, map_location=device)
|
9 |
|
10 |
-
# Print the checkpoint
|
11 |
print("Checkpoint keys:", checkpoint.keys())
|
|
|
1 |
import torch
|
2 |
|
3 |
+
# Specify the correct path to your LoRA checkpoint file
|
4 |
+
lora_path = "./lora_model.pt" # Replace with the correct file name
|
5 |
+
|
6 |
+
# Define the device (use CPU in this case)
|
7 |
+
device = torch.device("cpu")
|
8 |
|
9 |
# Load the checkpoint
|
|
|
10 |
checkpoint = torch.load(lora_path, map_location=device)
|
11 |
|
12 |
+
# Print the keys in the checkpoint to check the structure
|
13 |
print("Checkpoint keys:", checkpoint.keys())
|