From 1a0161f345191d78a19eec829f9d73b2c2c72f94 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 16 Apr 2023 09:44:12 +0200 Subject: Update --- models/clip/embeddings.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'models/clip') diff --git a/models/clip/embeddings.py b/models/clip/embeddings.py index 840f8ae..4444cf9 100644 --- a/models/clip/embeddings.py +++ b/models/clip/embeddings.py @@ -74,8 +74,7 @@ class ManagedCLIPTextEmbeddings(CLIPTextEmbeddings): save_file({"embed": self.get_embed(input_ids)}, filename) def persist(self): - self.token_embedding.eval() - self.token_embedding.merged = False + self.token_embedding.persist() def get_embed(self, input_ids: Union[list[int], torch.LongTensor]): if isinstance(input_ids, list): -- cgit v1.2.3-70-g09d2