Yet another KandinskySR based on Lachezar Vladikov's solution

Lachezar did a great job, but the initial versions were mathematically and logically inefficient, particularly for GPUs with low VRAM like mine, 6 gigs only. So I redesigned it and you can try it by downloading from my GitHub. I'd appreciate if someone would compare it to the latest original solution and other forks on better GPUs where the model + data definitely fit VRAM.
About this post
- Posted
- Archived
- Score
- 1 · 100% up
- Kind
- Image
- ID
- 1yd03ox
1 comment
Key numbers (L40S, warm, per image)
Upscale stage only: median warm ComfyUI execution time minus a LoadImage→SaveImage baseline, batch 1. In production KSR runs each frame of a batch in turn, so a batch of four costs about 4x.
Resident stack (Z-Image, Qwen3 4B TE, VAE) is 24291 MiB. Our q3 (quality medium) tail peaked at 37123 MiB and the same tail with KSR at 40963 MiB, so it can fit in a 48 GB L40S under
--gpu-onlywith room to spare.Some other details, that I thought may be useful for others:
Fork notes:
This fork's only change from upstream is a memory policy for small-VRAM cards, which does not matter on a 48 GB L40S. Its widget default precision is
float16although the README recommends bfloat16, so set it explicitly.Verdict: mixed. Better for photoreal, not a drop-in for anime
Hope this helps :) Will probably enable it for Z-Image.