KBlueLeaf/danbooru2023-webp-4Mpixel
Viewer β’ Updated β’ 199M β’ 1.94k β’ 82
How to use John6666/sumeshi-flux1s-v002e-fp8-flux with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("John6666/sumeshi-flux1s-v002e-fp8-flux", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]Original model is here.
Note: This model is a Schnell based model, but it requires CFG scale 3.5 or higher (not guidance scale) and 20 steps or more. Needs to be used with clip_l_sumeshi_f1s_v002. (It's the 234.74 MB file in the menu on the right.)
This model created by FA770.
This is an experimental conversion in Spaces using a homebrew script. serverless Inference API does not currently support torch float8_e4m3fn, so it does not work. I have not been able to confirm if the conversion is working properly. Please consider this as a test run only.
Base model
black-forest-labs/FLUX.1-schnell