From 57af7909f007cf5e94ddcef793beaa23bc4078f1 Mon Sep 17 00:00:00 2001 From: Sayak Paul Date: Thu, 19 Dec 2024 12:07:39 +0530 Subject: [PATCH] Update gguf.md to remove generator from the pipeline from_pretrained --- docs/source/en/quantization/gguf.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/source/en/quantization/gguf.md b/docs/source/en/quantization/gguf.md index 2ff2a9293130..f7537d7e7882 100644 --- a/docs/source/en/quantization/gguf.md +++ b/docs/source/en/quantization/gguf.md @@ -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") ```