1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

[Docs] Update gguf.md to remove generator from the pipeline from_pretrained (#10299)

Update gguf.md to remove generator from the pipeline from_pretrained
This commit is contained in:
Sayak Paul
2024-12-21 07:15:03 +05:30
committed by GitHub
parent a6288a5571
commit d41388145e

View File

@@ -45,12 +45,11 @@ transformer = FluxTransformer2DModel.from_single_file(
pipe = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev",
transformer=transformer,
generator=torch.manual_seed(0),
torch_dtype=torch.bfloat16,
)
pipe.enable_model_cpu_offload()
prompt = "A cat holding a sign that says hello world"
image = pipe(prompt).images[0]
image = pipe(prompt, generator=torch.manual_seed(0)).images[0]
image.save("flux-gguf.png")
```