#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}") |