Skip to content

Koboldcpp uses significant system RAM despite having enough VRAM #2365

Description

@interested-user-1

Before loading Gemma-4-E4B QAT Q4_0, my VRAM is at 0.1/8.0GB. After loading it, it jumps to 5.0/8.0GB (expected), while using 3.0GB of system RAM (the Koboldcpp program, not the entire system).

It doesn't seem to matter whether it's generating tokens at the moment because a few minutes ago it was at 3.0GB system RAM, but now it's at 81MB, but it changes from time to time. Sometimes it stays at 3.0GB until I restart.

I don't think it's due to a limitation in VRAM, because when I started generating, the VRAM stayed around 5.0GB and system RAM increased from 81MB to 91MB but no higher.

Settings:

  • SWA enabled, SWA Padding tokens = 0
  • Flash Attention enabled
  • KV Cache f16
  • Fast Forwarding disabled, Context Shift disabled, SmartCache disabled

I'm wondering if this had anything to do with it:

done_getting_tensors: tensor 'token_embd.weight' (q6_K) (and 1 others) moved from CUDA_Host, using CPU instead
load_tensors: offloading output layer to GPU
load_tensors: offloading 41 repeating layers to GPU
load_tensors: offloaded 43/43 layers to GPU
load_tensors:          CPU model buffer size =  2730.00 MiB

Hardware and Drivers: Nvidia 5060 (mobile), GeForce Game Ready Driver version 610.74

Let me know if more information is needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions