aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--convert-pth-to-ggml.py3
2 files changed, 1 insertions, 3 deletions
diff --git a/README.md b/README.md
index 1c80d8a..3437862 100644
--- a/README.md
+++ b/README.md
@@ -136,7 +136,6 @@ ls ./models
65B 30B 13B 7B tokenizer_checklist.chk tokenizer.model
# install Python dependencies
-# preferred versions: python 3.10 (not 3.11), torch 1.13.1+
python3 -m pip install torch numpy sentencepiece
# convert the 7B model to ggml FP16 format
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")