sayakpaul HF staff stevhliu HF staff commited on
Commit
40bfde4
1 Parent(s): f4fde93

update org card (#3)

Browse files

- update org card (8c5f1a21a68014cfced04876bdcd3ed04eead000)
- Update README.md (97d2cf7fc5d8118c01f4ad6a8d834e1b80931bde)


Co-authored-by: Steven Liu <[email protected]>

Files changed (1) hide show
  1. README.md +24 -4
README.md CHANGED
@@ -7,10 +7,30 @@ sdk: static
7
  pinned: false
8
  ---
9
 
10
- # Welcome to the 🧨 `diffusers` organization!
 
 
11
 
12
- `diffusers` is the go-to library for state-of-the-art pretrained diffusion models for multi-modal generative AI.
13
 
14
- [GitHub](https://github.com/huggingface/diffusers), [Docs](https://huggingface.co/docs/diffusers/index)
15
 
16
- In this organization, you can find some utilities and models we have made for you 🫶
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  pinned: false
8
  ---
9
 
10
+ <div class="flex justify-center">
11
+ <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/diffusers-org-logo.png"/>
12
+ </div>
13
 
14
+ [Diffusers](https://github.com/huggingface/diffusers) is a library of state-of-the-art pretrained diffusion models for *all* of your generative AI needs and use cases.
15
 
16
+ The library provides three main classes.
17
 
18
+ 1. The [Pipeline](https://hf.co/docs/diffusers/api/pipelines/overview) class provides an easy and unified way to perform inference with many models.
19
+
20
+ ```py
21
+ import torch
22
+ from diffusers import FluxPipeline
23
+
24
+ pipeline = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=torch.bfloat16)
25
+ pipeline.enable_model_cpu_offload()
26
+
27
+ prompt = "A cat holding a sign that says hello world"
28
+ image = pipeline(prompt, guidance_scale=0.0, output_type="pil", num_inference_steps=4, max_sequence_length=256, generator=torch.Generator("cpu").manual_seed(33)).images[0]
29
+ image.save("flux-schnell.png")
30
+ ```
31
+
32
+ 2. Diffusers also provides [models](https://hf.co/docs/diffusers/api/models/overview) and [schedulers](https://hf.co/docs/diffusers/api/schedulers/overview) that you can mix and match to build or train your own diffusion systems.
33
+
34
+ In addition to these classes, Diffusers is invested in lowering the barrier for everyone. The library is optimized to run on memory-constrained hardware, accelerate inference on PyTorch, hardware (GPU/CPU/TPUs), and model accelerators.
35
+
36
+ Visit the [documentation](https://hf.co/docs/diffusers/index) if you're interested in learning more. We're excited to see what you create with Diffusers! 🤗