Merge pull request #84 from iammerrick/patch-1

Update convert.py
This commit is contained in:
Awni Hannun 2023-12-12 17:02:21 -08:00 committed by GitHub
commit 66253a324c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ if __name__ == "__main__":
)
args = parser.parse_args()
model_path = Path(args.model_path)
state = torch.load(str(model_path / "consolidated.00.pt"))
state = torch.load(str(model_path / "consolidated.00.pth"))
np.savez(
str(model_path / "weights.npz"),
**{k: v.to(torch.float16).numpy() for k, v in state.items()},