Skip to content

Commit 7c9e54e

Browse files
committed
Revert "weights_only" arg - this causing more trouble than help
1 parent b9bd1d0 commit 7c9e54e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ ls ./models
136136
65B 30B 13B 7B tokenizer_checklist.chk tokenizer.model
137137

138138
# install Python dependencies
139-
# preferred versions: python 3.10 (not 3.11), torch 1.13.1+
140139
python3 -m pip install torch numpy sentencepiece
141140

142141
# convert the 7B model to ggml FP16 format

convert-pth-to-ggml.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ def get_n_parts(dim):
8686
if (p > 0):
8787
fname_out = sys.argv[1] + "/ggml-model-" + ftype_str[ftype] + ".bin" + "." + str(p)
8888

89-
# weights_only requires torch 1.13.1, remove this param or update if you get an "invalid keyword argument" error
90-
model = torch.load(fname_model, map_location="cpu", weights_only=True)
89+
model = torch.load(fname_model, map_location="cpu")
9190

9291
fout = open(fname_out, "wb")
9392

0 commit comments

Comments
 (0)