Skip to content

Commit e195bcc

Browse files
author
YASH Nankani
committed
handle review comments
Signed-off-by: YASH Nankani <ynankani@2u1g-x570-0073.ipp2a1.colossus.nvidia.com>
1 parent bbfbdb9 commit e195bcc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

modelopt/torch/export/unified_export_hf.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,16 @@
3030
import torch.nn as nn
3131
from safetensors.torch import load_file, save_file
3232

33+
from .diffusers_utils import (
34+
build_layerwise_quant_metadata,
35+
pad_nvfp4_weights,
36+
swizzle_nvfp4_scales,
37+
)
38+
3339
try:
3440
import diffusers
3541

3642
from .diffusers_utils import (
37-
build_layerwise_quant_metadata,
3843
generate_diffusion_dummy_forward_fn,
3944
get_diffusion_components,
4045
get_diffusion_model_type,
@@ -44,8 +49,6 @@
4449
is_diffusers_object,
4550
is_qkv_projection,
4651
merge_diffusion_checkpoint,
47-
pad_nvfp4_weights,
48-
swizzle_nvfp4_scales,
4952
)
5053

5154
HAS_DIFFUSERS = True

0 commit comments

Comments
 (0)