From 6c0c9243bd803f80f2d9e2a33d7d02b99838a9e2 Mon Sep 17 00:00:00 2001 From: Cebtenzzre Date: Wed, 6 Sep 2023 17:02:16 -0400 Subject: [PATCH] convert : fix F32 ftype not being saved --- convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert.py b/convert.py index 59d75141d..73159e055 100755 --- a/convert.py +++ b/convert.py @@ -862,7 +862,7 @@ class OutputFile: if params.f_rope_scale: self.gguf.add_rope_scale_linear(params.f_rope_scale) - if params.ftype: + if params.ftype is not None: self.gguf.add_file_type(params.ftype) def add_meta_vocab(self, vocab: Vocab) -> None: