marcsun13 HF Staff commited on
Commit
bb5f850
·
verified ·
1 Parent(s): 39a22b3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
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-int4",
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