, weights_only=True
Browse files
hyvideo/modules/fp8_optimization.py
CHANGED
@@ -85,7 +85,7 @@ def convert_fp8_linear(module, dit_weight_path, original_dtype, params_to_keep={
|
|
85 |
# loading fp8 mapping file
|
86 |
fp8_map_path = dit_weight_path.replace(".pt", "_map.pt")
|
87 |
if os.path.exists(fp8_map_path):
|
88 |
-
fp8_map = torch.load(fp8_map_path, map_location=lambda storage, loc: storage)
|
89 |
else:
|
90 |
raise ValueError(f"Invalid fp8_map path: {fp8_map_path}.")
|
91 |
|
|
|
85 |
# loading fp8 mapping file
|
86 |
fp8_map_path = dit_weight_path.replace(".pt", "_map.pt")
|
87 |
if os.path.exists(fp8_map_path):
|
88 |
+
fp8_map = torch.load(fp8_map_path, weights_only=True, map_location=lambda storage, loc: storage)
|
89 |
else:
|
90 |
raise ValueError(f"Invalid fp8_map path: {fp8_map_path}.")
|
91 |
|