jimmycarter commited on
Commit
6a686d2
·
verified ·
1 Parent(s): 59ed1db

Setting the dtype gives a big speed boost

Browse files
Files changed (1) hide show
  1. README.md +3 -0
README.md CHANGED
@@ -40,11 +40,14 @@ LibreFLUX is an Apache 2.0 version of [FLUX.1-schnell](https://huggingface.co/bl
40
  To use the model, just call the custom pipeline using [diffusers](https://github.com/huggingface/diffusers).
41
 
42
  ```py
 
43
  from diffusers import DiffusionPipeline
 
44
  pipe = DiffusionPipeline.from_pretrained(
45
  "jimmycarter/LibreFLUX",
46
  custom_pipeline="jimmycarter/LibreFLUX",
47
  use_safetensors=True,
 
48
  trust_remote_code=True,
49
  )
50
 
 
40
  To use the model, just call the custom pipeline using [diffusers](https://github.com/huggingface/diffusers).
41
 
42
  ```py
43
+ import torch
44
  from diffusers import DiffusionPipeline
45
+
46
  pipe = DiffusionPipeline.from_pretrained(
47
  "jimmycarter/LibreFLUX",
48
  custom_pipeline="jimmycarter/LibreFLUX",
49
  use_safetensors=True,
50
+ torch_dtype=torch.bfloat16,
51
  trust_remote_code=True,
52
  )
53