Update README.md
Browse files
README.md
CHANGED
|
@@ -32,11 +32,11 @@ After installing the required library, you can run the following script:
|
|
| 32 |
from diffusers import FluxPipeline
|
| 33 |
|
| 34 |
pipe = FluxPipeline.from_pretrained(
|
| 35 |
-
"diffusers/FLUX.1-dev-torchao-
|
| 36 |
torch_dtype=torch.bfloat16,
|
| 37 |
-
use_safetensors=False
|
|
|
|
| 38 |
)
|
| 39 |
-
pipe.to("cuda")
|
| 40 |
|
| 41 |
prompt = "Baroque style, a lavish palace interior with ornate gilded ceilings, intricate tapestries, and dramatic lighting over a grand staircase."
|
| 42 |
|
|
|
|
| 32 |
from diffusers import FluxPipeline
|
| 33 |
|
| 34 |
pipe = FluxPipeline.from_pretrained(
|
| 35 |
+
"diffusers/FLUX.1-dev-torchao-int8",
|
| 36 |
torch_dtype=torch.bfloat16,
|
| 37 |
+
use_safetensors=False,
|
| 38 |
+
device_map="balanced"
|
| 39 |
)
|
|
|
|
| 40 |
|
| 41 |
prompt = "Baroque style, a lavish palace interior with ornate gilded ceilings, intricate tapestries, and dramatic lighting over a grand staircase."
|
| 42 |
|