Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import torch
|
2 |
+
|
3 |
+
try:
|
4 |
+
lora_checkpoint = torch.load("lora_checkpoint.pt", map_location="cpu")
|
5 |
+
print("Checkpoint loaded successfully!")
|
6 |
+
print(type(lora_checkpoint)) # Print type to verify structure
|
7 |
+
except Exception as e:
|
8 |
+
print(f"Error loading checkpoint: {e}")
|