Views
No views yet
1import tarfile, torch 2with tarfile.open("malicious_model.nemo", "r") as tar: 3 ckpt = tar.extractfile("model_weights.ckpt").read() 4 with open("/tmp/ckpt.bin", "wb") as f: f.write(ckpt) 5torch.load("/tmp/ckpt.bin", weights_only=False) # ACE