[GH-ISSUE #4469] Ollama memory consumption #49302

Closed
opened 2026-04-28 11:10:00 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @hugefrog on GitHub (May 16, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/4469

Originally assigned to: @dhiltgen on GitHub.

What is the issue?

Why does Ollama consume so much memory? With a 3090 graphics card and 24GB of VRAM, after loading a yi-34b-4bit model of around 20GB in size, both the system memory and VRAM are consumed by approximately 20GB simultaneously.

OS

Windows

GPU

Nvidia

CPU

Intel

Ollama version

0.1.38

Originally created by @hugefrog on GitHub (May 16, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4469 Originally assigned to: @dhiltgen on GitHub. ### What is the issue? Why does Ollama consume so much memory? With a 3090 graphics card and 24GB of VRAM, after loading a yi-34b-4bit model of around 20GB in size, both the system memory and VRAM are consumed by approximately 20GB simultaneously. ### OS Windows ### GPU Nvidia ### CPU Intel ### Ollama version 0.1.38
GiteaMirror added the bugwindows labels 2026-04-28 11:10:00 -05:00
Author
Owner

@dhiltgen commented on GitHub (Jul 25, 2024):

I'm not able to reproduce this. On windows on a 4090, I can load yi:34b entirely into GPU:

>  ollama ps
NAME    ID              SIZE    PROCESSOR       UNTIL
yi:34b  ff94bc7c1b7a    20 GB   100% GPU        4 minutes from now

The ollama_llama_server process uses 929 MB of system memory, and ~20G of VRAM according to Task Manager.

Are you using a larger context size that is causing the model to partially load on CPU?

If you're still seeing large system memory consumption, please make sure to upgrade to the latest version, and share more details of your setup and I'll reopen the issue. (ollama ps output, screen shots from task manager, and server logs)

<!-- gh-comment-id:2251531637 --> @dhiltgen commented on GitHub (Jul 25, 2024): I'm not able to reproduce this. On windows on a 4090, I can load `yi:34b` entirely into GPU: ``` > ollama ps NAME ID SIZE PROCESSOR UNTIL yi:34b ff94bc7c1b7a 20 GB 100% GPU 4 minutes from now ``` The `ollama_llama_server` process uses 929 MB of system memory, and ~20G of VRAM according to Task Manager. Are you using a larger context size that is causing the model to partially load on CPU? If you're still seeing large system memory consumption, please make sure to upgrade to the latest version, and share more details of your setup and I'll reopen the issue. (`ollama ps` output, screen shots from task manager, and server logs)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#49302