Spaces:
Running
Running
Update skyreels_v2_infer/modules/clip.py
Browse files
skyreels_v2_infer/modules/clip.py
CHANGED
@@ -497,7 +497,7 @@ class CLIPModel(ModelMixin):
|
|
497 |
)
|
498 |
self.model = self.model.eval().requires_grad_(False)
|
499 |
logging.info(f"loading {checkpoint_path}")
|
500 |
-
self.model.load_state_dict(torch.load(checkpoint_path, map_location="cpu"))
|
501 |
|
502 |
# init tokenizer
|
503 |
self.tokenizer = HuggingfaceTokenizer(
|
|
|
497 |
)
|
498 |
self.model = self.model.eval().requires_grad_(False)
|
499 |
logging.info(f"loading {checkpoint_path}")
|
500 |
+
self.model.load_state_dict(torch.load(checkpoint_path, map_location="cpu", weights_only=True))
|
501 |
|
502 |
# init tokenizer
|
503 |
self.tokenizer = HuggingfaceTokenizer(
|