aboutsummaryrefslogtreecommitdiff
path: root/convert-pth-to-ggml.py
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2023-03-12 20:59:01 +0200
committerGeorgi Gerganov <ggerganov@gmail.com>2023-03-12 20:59:01 +0200
commit7c9e54e55e4106f84688245fb15207f6df917e12 (patch)
tree1cee2397c0d792a726aa39741cf31dea12a62a16 /convert-pth-to-ggml.py
parentb9bd1d014113b7498f04ad4d28e6021d5f4cddad (diff)
Revert "weights_only" arg - this causing more trouble than help
Diffstat (limited to 'convert-pth-to-ggml.py')
-rw-r--r--convert-pth-to-ggml.py3
1 files changed, 1 insertions, 2 deletions
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")