From 62f4926bdeef45df2563398d3305a07a0c4bb6b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Yusuf=20Sar=C4=B1g=C3=B6z?= Date: Fri, 28 Jul 2023 00:04:19 +0300 Subject: [PATCH] fix : fix errors upd writing example --- example.gguf | Bin 0 -> 928 bytes gguf.py | 46 ++++++++++++++++++++++++---------------------- 2 files changed, 24 insertions(+), 22 deletions(-) create mode 100644 example.gguf diff --git a/example.gguf b/example.gguf new file mode 100644 index 0000000000000000000000000000000000000000..42a152e7491156d432ce40933357f0979264a8b9 GIT binary patch literal 928 zcma)&dq`7J9LMJ~v1u04+mO^bo!jnp_wKyhIhmG9m^sSmX`9YR=~ml(Lq97|PE2VqEqWR(K?t9t2kWrwMM{xhmylR-b!Dp|SjlZ5p9Da_M#z~r+mfOV{#L@PHZ zv+}ljdg5>@ElzHr$%&V!<8&vjSUsO9&B3fL$I3S5TIszPopes0inf@mX!W)d)^sVC z`UK8n%9rCQYjv~ZOOlvs*O2M%AuW4a;-M&N8oL&=hI!ikS;eL*`bKMJBTt9v`938} zzMaOz{TvM#p2B|AtYb<2HS}ETOg8!1YF3CftouS4^-|Ab%fpGO{$K_T+N)-+ty=o~ zk8(gF$_DAsL9Rv&kP&j09E5?ujN7?exEW0rufvIP?@(v#4Y(Bb$6&(`y(hjFhr#J! z5PXcWfGncGuZ&Ke-N*@9I8D^RN&KJ~9rsme6B5u07zx)BUU-Cu!5zr)yEP%&V15D^ z3%X(!K`;sMkQ8$cGb&n-W!CA%D9W_#ClmAfgH;>++cuwA8tUSeicodC#E ay)TZ6&x0fW3-DqAp$4JRAmZ`57XBA>VHP3) literal 0 HcmV?d00001 diff --git a/gguf.py b/gguf.py index 31a03c43e..0f94b963e 100644 --- a/gguf.py +++ b/gguf.py @@ -124,30 +124,30 @@ class GGUFWriter: if vtype is None: vtype = GGUFValueType.get_type(val) - self.buffered_writer.write(struct.pack("