Bump model version

99ad07a876 broke the model format,
although probably only in a few edge cases

Still enough of a change for a model version bump
This commit is contained in:
Samuel Sloniker 2023-04-16 15:36:29 -07:00
parent 7f68dc6fc6
commit d8f3d2e701
Signed by: kj7rrv
GPG Key ID: 1BB4029E66285A62

View File

@ -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""