Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Fix snapshot serialization/deserialization: rename logits to last_logits #438

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

lucksus
Copy link
Contributor

@lucksus lucksus commented Nov 3, 2023

Snapshot deserialization was broken.

InferenceSnapshotRef<'_> implements serde::Serialize while InferenceSnapshot implements serde::Deserialize. But trying to deserialize an InferenceSnapshot yielded:

missing field "last_logits"

The name for this field was different in the two structs. This fixes that.

@philpax philpax merged commit aeafa44 into rustformers:main Nov 3, 2023
14 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants