From 7a3433b4b673e637fd301828f2f7f198f100e4ff Mon Sep 17 00:00:00 2001 From: Galunid Date: Tue, 7 Nov 2023 07:25:43 +0100 Subject: [PATCH] store_true defaults to False, not None --- convert-hf-to-gguf.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/convert-hf-to-gguf.py b/convert-hf-to-gguf.py index 7628043e9..c77c8b158 100755 --- a/convert-hf-to-gguf.py +++ b/convert-hf-to-gguf.py @@ -870,16 +870,12 @@ else: # output in the same directory as the model by default fname_out = dir_model / f'ggml-model-{ftype_str[ftype]}.gguf' -is_big_endian = False -if args.bigendian is not None: - is_big_endian = True - print(f"Loading model: {dir_model.name}") hparams = Model.load_hparams(dir_model) model_class = Model.from_model_architecture(hparams["architectures"][0]) -model_instance = model_class(dir_model, ftype, fname_out, is_big_endian) +model_instance = model_class(dir_model, ftype, fname_out, args.bigendian) print("Set model parameters") model_instance.set_gguf_parameters()