security: repair scanning and close stale alert sources

This commit is contained in:
ruv
2026-08-02 15:22:13 -04:00
parent 42492e14a5
commit 5780c239e4
48 changed files with 427 additions and 325 deletions
+4 -1
View File
@@ -36,7 +36,10 @@ def main():
dev = a.device
net = PoseNet().to(dev)
net.load_state_dict(torch.load(a.base, map_location=dev), strict=False)
# Checkpoints are tensor state dictionaries; never invoke pickle object loading.
net.load_state_dict(
torch.load(a.base, map_location=dev, weights_only=True), strict=False
)
net.add_lora(r=a.rank).to(dev)
for k, p in net.named_parameters():
p.requires_grad = k.endswith(".A") or k.endswith(".B")
+4 -1
View File
@@ -25,7 +25,10 @@ def main():
dev = a.device
net = PoseNet().to(dev)
net.load_state_dict(torch.load(a.base, map_location=dev), strict=False)
# Checkpoints are tensor state dictionaries; never invoke pickle object loading.
net.load_state_dict(
torch.load(a.base, map_location=dev, weights_only=True), strict=False
)
if a.adapter:
net.add_lora(r=a.rank).to(dev)
z = np.load(a.adapter)