Spaces:
Sleeping
Sleeping
Debug: log reliability_binary flag + reliability_head shape + ckpt info
Browse files
app.py
CHANGED
|
@@ -104,6 +104,15 @@ COLLATER = InferenceCollater(
|
|
| 104 |
prot_max_len=MODEL_ARGS.prot_max_len,
|
| 105 |
)
|
| 106 |
PROMPT = "Swiss-Prot description: "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
print("Ready.")
|
| 108 |
|
| 109 |
|
|
|
|
| 104 |
prot_max_len=MODEL_ARGS.prot_max_len,
|
| 105 |
)
|
| 106 |
PROMPT = "Swiss-Prot description: "
|
| 107 |
+
|
| 108 |
+
print(f"[debug] MODEL_ARGS.reliability_binary = {getattr(MODEL_ARGS, 'reliability_binary', '<missing>')}")
|
| 109 |
+
print(f"[debug] BLIP2.reliability_binary = {getattr(BLIP2, 'reliability_binary', '<missing>')}")
|
| 110 |
+
_rh_w = BLIP2.reliability_head[1].weight
|
| 111 |
+
print(f"[debug] reliability_head output dim = {_rh_w.shape[0]} (binary=2, 4-class=4)")
|
| 112 |
+
print(f"[debug] ckpt mtime / size = {os.path.getmtime(CKPT_PATH):.0f}, {os.path.getsize(CKPT_PATH):,} bytes")
|
| 113 |
+
_ckpt_keys_head = [k for k in _state_dict if "reliability_head" in k]
|
| 114 |
+
for _k in _ckpt_keys_head:
|
| 115 |
+
print(f"[debug] ckpt has {_k}: shape={tuple(_state_dict[_k].shape)}")
|
| 116 |
print("Ready.")
|
| 117 |
|
| 118 |
|