diff options
Diffstat (limited to 'convert-pth-to-ggml.py')
-rw-r--r-- | convert-pth-to-ggml.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/convert-pth-to-ggml.py b/convert-pth-to-ggml.py index ef50fc65..fc217c7e 100644 --- a/convert-pth-to-ggml.py +++ b/convert-pth-to-ggml.py @@ -86,8 +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) + model = torch.load(fname_model, map_location="cpu") fout = open(fname_out, "wb") |