File size: 413 Bytes
94b39ce 9eb1e64 94b39ce |
1 2 3 4 5 6 7 8 9 10 11 12 |
#DEBUG
import os
from safetensors.torch import load_file
lora_path = "lora_trained_model.safetensors"
if os.path.exists(lora_path):
try:
lora_data = load_file(lora_path)
print("✅ LoRA file loaded successfully.")
print("🔹 LoRA Keys:", list(lora_data.keys())) # Check if keys match expected LoRA format
except Exception as e:
print(f"❌ Error reading LoRA file: {e}") |