You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(fast) (base) root@76faf61dd144:/workspace/HunyuanVideo/ckpts/hunyuan-video-t2v-720p# python process.py
/workspace/HunyuanVideo/ckpts/hunyuan-video-t2v-720p/process.py:9: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
state_dict = torch.load(pt_file_path, map_location="cuda") # 加载为 CPU 以避免 GPU 内存问题
Traceback (most recent call last):
File "/workspace/HunyuanVideo/ckpts/hunyuan-video-t2v-720p/process.py", line 12, in <module>
save_file(state_dict, safetensors_file_path)
File "/workspace/miniconda3/envs/fast/lib/python3.10/site-packages/safetensors/torch.py", line 286, in save_file
serialize_file(_flatten(tensors), filename, metadata=metadata)
File "/workspace/miniconda3/envs/fast/lib/python3.10/site-packages/safetensors/torch.py", line 470, in _flatten
raise ValueError(f"Key {k} is invalid, expected torch.Tensor but received {type(v)}")
ValueError: Key module is invalid, expected torch.Tensor but received <class 'dict'>
I find the config is below. Does it mean we have two models now in the .pt?
It is risky to use .pt ckpt considering previous experience from Bytedance.
Is there any way to convert safetensors ckpt?
I try to use this command but it fails. It seems that the loading is different from VAE. Can you
error message
I find the config is below. Does it mean we have two models now in the .pt?
The text was updated successfully, but these errors were encountered: