Skip to content

Commit 28ba975

Browse files
dotpy314ryanmiao
andauthored
Check the existence of f16_model_path_base in quantize.py (#574)
Co-authored-by: Jincheng Miao <[email protected]>
1 parent a6bdc47 commit 28ba975

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

quantize.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ def main():
7474
args.models_path, model, "ggml-model-f16.bin"
7575
)
7676

77+
if not os.path.isfile(f16_model_path_base):
78+
print(f'The file %s was not found' % f16_model_path_base)
79+
sys.exit(1)
80+
7781
f16_model_parts_paths = map(
7882
lambda filename: os.path.join(f16_model_path_base, filename),
7983
glob.glob(f"{f16_model_path_base}*")

0 commit comments

Comments
 (0)