import json
from pathlib import Path

# Point index to our fresh checkpoint.pt in parent dir
index_path = Path("storage/proto_lm/checkpoints/index.json")
if index_path.exists():
    index_path.unlink()

# Create minimal index that won't interfere
index_data = {"records": [], "active": None}
with open(index_path, 'w') as f:
    json.dump(index_data, f, indent=2)

print("Index cleared - will now load from checkpoint_path directly")
