We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb7fb66 commit 6cad1d5Copy full SHA for 6cad1d5
docs/source/en/quantization/quanto.md
@@ -56,7 +56,12 @@ from diffusers import FluxTransformer2DModel, QuantoConfig
56
57
model_id = "black-forest-labs/FLUX.1-dev"
58
quantization_config = QuantoConfig(weights_dtype="float8", modules_to_not_convert=["proj_out"])
59
-transformer = FluxTransformer2DModel.from_pretrained(model_id, quantization_config=quantization_config, torch_dtype=torch.bfloat16)
+transformer = FluxTransformer2DModel.from_pretrained(
60
+ model_id,
61
+ subfolder="transformer",
62
+ quantization_config=quantization_config,
63
+ torch_dtype=torch.bfloat16,
64
+)
65
```
66
67
## Using `from_single_file` with the Quanto Backend
0 commit comments