Views
No views yet
krea/Krea-2-Turbo, created for low-VRAM Krea2 inference.pipe.transformer with this SVDQuant transformer.1svdquant_config.json
2transformer_svdquant.safetensors
3README.md1quantized transformer layers: 224
2calibrated: true
3SVD ranks: attention=64, MLP=128
4residual: groupwise INT4, group_size=128
5checkpoint size: ~6.5GB
| Glasshouse cafe | Coastal bedroom | Lavender portrait | Neon bookstore |
|---|---|---|---|
![]() | ![]() | ![]() | ![]() |
a serene glasshouse cafe at golden hour, rain on windows, soft cinematic lighting, lush plants, pastel colors, aesthetic editorial photography, ultra detaileda dreamy coastal bedroom with linen curtains flowing in ocean breeze, warm sunset, minimalist interior, film grain, aesthetic lifestyle photographya cinematic portrait of a woman in a lavender field at dusk, soft backlight, shallow depth of field, ethereal fashion editorial, beautiful color gradinga cozy neon bookstore at night, reflections on wet street, cinematic bokeh, warm interior glow, aesthetic urban photography, ultra detailed1git clone https://github.com/Tanmaypatil123/krea2-svdquant.git
2cd krea2-svdquant
3python -m venv .venv
4source .venv/bin/activate
5pip install -U pip
6pip install -U torch torchvision --index-url https://download.pytorch.org/whl/cu128
7pip install -U "diffusers @ git+https://github.com/huggingface/diffusers.git" transformers accelerate safetensors huggingface_hub hf_xet sentencepiece protobuf triton
8pip install -e .1python -m venv --system-site-packages .venv
2source .venv/bin/activate
3pip install -U "diffusers @ git+https://github.com/huggingface/diffusers.git" transformers accelerate safetensors huggingface_hub hf_xet sentencepiece protobuf triton
4pip install -e .1python scripts/infer_svdquant_transformer.py \
2 --svdquant-transformer Tanmaypatil123/krea-turbo-svdquant \
3 --backend pytorch_sim \
4 --low-vram \
5 --cpu-offload model \
6 --block-offload \
7 --num-blocks-on-gpu 1 \
8 --out-chunk 1024 \
9 --vae-tiling \
10 --vae-slicing \
11 --height 1024 \
12 --width 1024 \
13 --steps 8 \
14 --prompt "a cinematic photo of a small friendly white robot doctor, soft studio lighting" \
15 --out outputs/krea_svdquant.png1[vram] load: allocated=1.24GiB reserved=1.27GiB peak=1.24GiB
2[vram] encode: allocated≈10.6GiB reserved≈10.7GiB peak≈10.6GiB
3[vram] offload: allocated≈8.9GiB reserved≈9.1GiB peak≈10.6GiB
4[vram] generate: allocated=7.63GiB reserved=8.11GiB peak≈16.96GiB1python scripts/infer_svdquant_transformer.py \
2 --svdquant-transformer Tanmaypatil123/krea-turbo-svdquant \
3 --backend pytorch_sim \
4 --low-vram \
5 --cpu-offload model \
6 --block-offload \
7 --num-blocks-on-gpu 1 \
8 --out-chunk 1024 \
9 --vae-tiling \
10 --vae-slicing \
11 --height 768 \
12 --width 768 \
13 --steps 8 \
14 --prompt "a cinematic photo of a small friendly white robot doctor, soft studio lighting" \
15 --out outputs/krea_svdquant_768.png1seconds≈9.2
2[vram] generate: allocated=7.63GiB reserved=8.11GiB peak≈11.88GiB1import torch
2from diffusers import Krea2Pipeline
3from krea2_svdquant.runtime.load import load_svdquant_transformer
4
5pipe = Krea2Pipeline.from_pretrained("krea/Krea-2-Turbo", torch_dtype=torch.bfloat16)
6load_svdquant_transformer(
7 pipe.transformer,
8 "Tanmaypatil123/krea-turbo-svdquant",
9 backend="pytorch_sim",
10)
11pipe.to("cuda")
12
13image = pipe(
14 "a cinematic photo of a small friendly white robot doctor",
15 num_inference_steps=8,
16 guidance_scale=0.0,
17 height=1024,
18 width=1024,
19).images[0]
20image.save("krea_svdquant.png")pytorch_sim: recommended practical backend today. Uses packed qweights + chunked low-VRAM runtime.triton_blackwell / triton_generic: experimental fused W4A16 residual and low-rank add kernels. Correctness verified, but currently slower than PyTorch chunked runtime for full Krea2.tl.dot_scaled checkpoint path.krea/Krea-2-Turbo.
SVDQuant runtime/checkpoint tooling: https://github.com/Tanmaypatil123/krea2-svdquantSVDQuantLinear, so users can keep the transformer SVDQuant checkpoint active while applying Krea2 LoRAs.krea/Krea-2-LoRA-retroanime.python scripts/infer_svdquant_transformer.py \n --svdquant-transformer Patil/krea-turbo-svdquant \n --lora krea/Krea-2-LoRA-retroanime \n --lora-weight-name retroanime.safetensors \n --lora-scale 0.85 \n --backend pytorch_sim \n --low-vram \n --cpu-offload model \n --block-offload \n --num-blocks-on-gpu 1 \n --out-chunk 1024 \n --vae-tiling \n --vae-slicing \n --height 768 \n --width 768 \n --steps 81loaded_svdquant_layers=224
2loaded_lora=retroanime.safetensors matched_layers=224 scale=0.85
3seconds=14.804
4[vram] generate: allocated=7.63GiB reserved=8.11GiB peak=11.90GiB