Skip to content

GPU NOT used during "normal generation" when ONE LAYER offloaded (But GPU used in prompt evaluation) #3860

Closed
@Nate687

Description

@Nate687

Hello,

I am using a GGUF version of dolphin-2.2-mistral-7B-GGUF (dolphin-2.2-mistral-7b.Q8_0.gguf) and have offloaded ONLY ONE LAYER of the model on the GPU using the "n-gpu-layers" options (since I am using a GPU having 2GB VRAM I can not offload anymore without getting a CUDA out of memory error during inference)

All works well during the prompt evaluation and I can see that the GPU being used (around 80% usage of the GPU is observed)

However the GPU usage immediately drops to 0 and the CPU usage reaches 100% (i.e no GPU usage) during the normal generation of the response (i.e once prompt is evaluated and the response of the model starts being printed out on the screen)

As such my "prompt eval time" is around 35 ms per token .... but the "eval time" is around 500 ms per token

I may be wrong, but I thought that even though only one layer was offloaded to the GPU, the GPU would be used during the normal generation of the response (to help bring down the "eval time")

Any guidance or tips on what I may be doing wrong would be highly appreciated.

Thanks,
Nate

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions