We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbfbdb9 commit e195bccCopy full SHA for e195bcc
modelopt/torch/export/unified_export_hf.py
@@ -30,11 +30,16 @@
30
import torch.nn as nn
31
from safetensors.torch import load_file, save_file
32
33
+from .diffusers_utils import (
34
+ build_layerwise_quant_metadata,
35
+ pad_nvfp4_weights,
36
+ swizzle_nvfp4_scales,
37
+)
38
+
39
try:
40
import diffusers
41
42
from .diffusers_utils import (
- build_layerwise_quant_metadata,
43
generate_diffusion_dummy_forward_fn,
44
get_diffusion_components,
45
get_diffusion_model_type,
@@ -44,8 +49,6 @@
49
is_diffusers_object,
50
is_qkv_projection,
46
51
merge_diffusion_checkpoint,
47
- pad_nvfp4_weights,
48
- swizzle_nvfp4_scales,
52
)
53
54
HAS_DIFFUSERS = True
0 commit comments