[GH-ISSUE #1174] The wizardcoder models request too much memory at load time #62635

Closed
opened 2026-05-03 09:50:57 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Nan-Do on GitHub (Nov 17, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1174

Originally assigned to: @BruceMacD on GitHub.

The context size given to llama.cpp to load this model is 4096, this requires around 10 GB of memory for the context alone, and if we add the 4.5 GB required for the 7B model it's unfeasible to use it in most consumer grade GPUs (and any system without more than 16 GB of ram). In contrast the context size given to codellama, the model from which wizardcoder derives, is 2048.

Originally created by @Nan-Do on GitHub (Nov 17, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1174 Originally assigned to: @BruceMacD on GitHub. The context size given to llama.cpp to load this model is 4096, this requires around 10 GB of memory for the context alone, and if we add the 4.5 GB required for the 7B model it's unfeasible to use it in most consumer grade GPUs (and any system without more than 16 GB of ram). In contrast the context size given to codellama, the model from which wizardcoder derives, is 2048.
GiteaMirror added the bug label 2026-05-03 09:50:57 -05:00
Author
Owner

@jmorganca commented on GitHub (May 9, 2024):

Hi there, we've made a ton of improvements to memory allocation and this should be fixed now.

Do note that some models require more memory for larger context windows due to their architecture

<!-- gh-comment-id:2103577417 --> @jmorganca commented on GitHub (May 9, 2024): Hi there, we've made a ton of improvements to memory allocation and this should be fixed now. Do note that some models require more memory for larger context windows due to their architecture
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#62635