From 7c9e54e55e4106f84688245fb15207f6df917e12 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sun, 12 Mar 2023 20:59:01 +0200 Subject: Revert "weights_only" arg - this causing more trouble than help --- convert-pth-to-ggml.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'convert-pth-to-ggml.py') diff --git a/convert-pth-to-ggml.py b/convert-pth-to-ggml.py index ef50fc6..fc217c7 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") -- cgit v1.2.3