Downloads · 30 days
816
62% of all-time downloads
OzzyGT/Krea_2_Turbo_bnb_nf4
Krea_2_Turbo_bnb_nf4 is a text-to-image model from OzzyGT. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as other.
Downloads · 30 days
816
62% of all-time downloads
All-time downloads
1.3K
Public
Parameters
7B
12 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors12 GB · 100%
How the weights are stored.
U86B · 86%
From the Hugging Face model README

Left: original bf16 · Right: this NF4 model (same prompt and seed).
This is an NF4 (4-bit NormalFloat) quantized version of krea/Krea-2-Turbo using bitsandbytes.
Note: You need bitsandbytes installed
You can find ready-to-use scripts in the diffusers-recipes repository.
The quantized (right) image above was generated with the following prompt and settings (seed 7):
import torch
from diffusers import DiffusionPipeline
pipe = DiffusionPipeline.from_pretrained("OzzyGT/Krea_2_Turbo_bnb_nf4", torch_dtype=torch.bfloat16)
pipe.to("cuda")
prompt = (
"A cozy corner bookstore-cafe on a rainy evening, cinematic wide shot. "
'A large hand-lettered chalkboard sign in the window reads "FRESH COFFEE & OLD BOOKS" '
"and below it in smaller chalk letters \"open 'til late\". "
"Warm golden light spills onto wet cobblestones that mirror pink and blue neon reflections. "
"Inside, tall mahogany shelves are packed with hundreds of colorful book spines with tiny legible titles, "
"a barista in a striped apron pours delicate latte art, steam curling upward, "
"a tabby cat sleeps on a windowsill beside a stack of paperbacks. "
"Intricate detail, sharp focus, shallow depth of field, photorealistic, rich color grading."
)
image = pipe(
prompt,
num_inference_steps=8,
guidance_scale=0.0,
height=1024,
width=1024,
generator=torch.Generator("cuda").manual_seed(7),
).images[0]
image.save("sample.png")