Skip to content

Commit 146f2e6

Browse files
committed
fix wrong doc string
1 parent 36b1ea9 commit 146f2e6

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

nunchaku/models/transformers/transformer_zimage.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
This module provides Nunchaku FluxTransformer2DModel and its building blocks in Python.
2+
This module provides Nunchaku ZImageTransformer2DModel and its building blocks in Python.
33
"""
44

55
import json
@@ -223,7 +223,7 @@ def from_pretrained(cls, pretrained_model_name_or_path: str | os.PathLike[str],
223223
offload = kwargs.get("offload", False)
224224

225225
if offload:
226-
raise NotImplementedError("Offload is not supported for FluxTransformer2DModelV2")
226+
raise NotImplementedError("Offload is not supported for ZImageTransformer2DModel")
227227

228228
torch_dtype = kwargs.get("torch_dtype", torch.bfloat16)
229229

@@ -247,12 +247,7 @@ def from_pretrained(cls, pretrained_model_name_or_path: str | os.PathLike[str],
247247
print(f"quantization_config: {quantization_config}, rank={rank}, skip_refiners={skip_refiners}")
248248

249249
transformer._patch_model(skip_refiners=skip_refiners, precision=precision, rank=rank)
250-
251250
transformer = transformer.to_empty(device=device)
252-
# converted_state_dict = convert_flux_state_dict(model_state_dict)
253-
254251
transformer.load_state_dict(model_state_dict)
255252

256-
print(f"transformer type: {type(transformer)}")
257-
258253
return transformer

0 commit comments

Comments
 (0)