From d8f3d2e7013d200201e4aa6759c7bf7045562735 Mon Sep 17 00:00:00 2001 From: Samuel Sloniker Date: Sun, 16 Apr 2023 15:36:29 -0700 Subject: [PATCH] Bump model version 99ad07a876a375aa41cc8deef7f6a0300c4c88a6 broke the model format, although probably only in a few edge cases Still enough of a change for a model version bump --- gptc/model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gptc/model.py b/gptc/model.py index b9613d3..845c3f6 100644 --- a/gptc/model.py +++ b/gptc/model.py @@ -120,7 +120,7 @@ class Model: } def serialize(self, file: BinaryIO) -> None: - file.write(b"GPTC model v5\n") + file.write(b"GPTC model v6\n") file.write( json.dumps( { @@ -154,7 +154,7 @@ class TransparentConfidences(Confidences): def deserialize(encoded_model: BinaryIO) -> Model: prefix = encoded_model.read(14) - if prefix != b"GPTC model v5\n": + if prefix != b"GPTC model v6\n": raise InvalidModelError() config_json = b""