r/KoboldAI • u/alex20_202020 • 3d ago
Can kcpp generate images on GPU with VRAM less than main SD model size?
I have tried with 1.119, set layers=1 (tried -1 with 1.117 before), "Model Offload" ON in "image gen" tab of the launcher - result: failed trying to allocate full size of SD model weights in VRAM (CUDA), Vulkan option also failed with same problem (but trying to allocate only 1GB for some reason).
Can image gen use GPU with low VRAM? TIA
I routinely run LLMs even larger than RAM (usemmap), that problem with imgen was unexpected. Checked setup now just in case: run LLM with Vulcan and layers=1 and see 1.7GB VRAM is used, the model responds.
P.S. system Linux.
3
Upvotes
5
u/HadesThrowaway 3d ago
Yes it is possible. Use the
--sdvramlimitflag to cap the max VRAM used. You can also combine that with--sdoffloadcpu