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:
parent
7f68dc6fc6
commit
d8f3d2e701
|
@ -120,7 +120,7 @@ class Model:
|
||||||
}
|
}
|
||||||
|
|
||||||
def serialize(self, file: BinaryIO) -> None:
|
def serialize(self, file: BinaryIO) -> None:
|
||||||
file.write(b"GPTC model v5\n")
|
file.write(b"GPTC model v6\n")
|
||||||
file.write(
|
file.write(
|
||||||
json.dumps(
|
json.dumps(
|
||||||
{
|
{
|
||||||
|
@ -154,7 +154,7 @@ class TransparentConfidences(Confidences):
|
||||||
|
|
||||||
def deserialize(encoded_model: BinaryIO) -> Model:
|
def deserialize(encoded_model: BinaryIO) -> Model:
|
||||||
prefix = encoded_model.read(14)
|
prefix = encoded_model.read(14)
|
||||||
if prefix != b"GPTC model v5\n":
|
if prefix != b"GPTC model v6\n":
|
||||||
raise InvalidModelError()
|
raise InvalidModelError()
|
||||||
|
|
||||||
config_json = b""
|
config_json = b""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user