mirror of
https://git.datalinker.icu/kijai/ComfyUI-CogVideoXWrapper.git
synced 2025-12-08 20:34:23 +08:00
Update model_loading.py
This commit is contained in:
parent
ea5ee0b017
commit
87ed4a56cf
@ -418,8 +418,8 @@ class DownloadAndLoadCogVideoGGUFModel:
|
||||
else:
|
||||
transformer = CogVideoXTransformer3DModel.from_config(transformer_config)
|
||||
|
||||
if "2b" in model:
|
||||
params_to_keep = {"patch_embed", "pos_embedding", "time_embedding"}
|
||||
if "2b" in model:
|
||||
cast_dtype = torch.float16
|
||||
elif "1_5" in model:
|
||||
params_to_keep = {"norm1.linear.weight", "patch_embed", "time_embedding", "ofs_embedding", "norm_final", "norm_out", "proj_out"}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user