From b9bd1d014113b7498f04ad4d28e6021d5f4cddad Mon Sep 17 00:00:00 2001 From: Oleksandr Nikitin Date: Sun, 12 Mar 2023 14:16:33 +0200 Subject: python/pytorch compat notes (#44) --- convert-pth-to-ggml.py | 1 + 1 file changed, 1 insertion(+) (limited to 'convert-pth-to-ggml.py') diff --git a/convert-pth-to-ggml.py b/convert-pth-to-ggml.py index 98693e3..ef50fc6 100644 --- a/convert-pth-to-ggml.py +++ b/convert-pth-to-ggml.py @@ -86,6 +86,7 @@ for p in range(n_parts): if (p > 0): fname_out = sys.argv[1] + "/ggml-model-" + ftype_str[ftype] + ".bin" + "." + str(p) + # weights_only requires torch 1.13.1, remove this param or update if you get an "invalid keyword argument" error model = torch.load(fname_model, map_location="cpu", weights_only=True) fout = open(fname_out, "wb") -- cgit v1.2.3