ollama - 💡(How to fix) Fix deepseek-r1:70b model now takes 69 GB of RAM to run a 43 GB model? [3 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
ollama/ollama#14719Fetched 2026-04-08 00:32:38
View on GitHub
Comments
3
Participants
2
Timeline
5
Reactions
0
Timeline (top)
commented ×3closed ×1labeled ×1

Error Message

Error: 500 Internal Server Error: model requires more system memory (69.0 GiB) than is available (65.6 GiB)

Code Example

Error: 500 Internal Server Error: model requires more system memory (69.0 GiB) than is available (65.6 GiB)
RAW_BUFFERClick to expand / collapse

What is the issue?

I used to be able to run the deepseek-r1:70b model with my pair of 3090s which just fit within the total 48 GB of VRAM.

Now, when I tried to launch it with ollama run deepseek-r1:70b, it gives me this error instead:

Error: 500 Internal Server Error: model requires more system memory (69.0 GiB) than is available (65.6 GiB)

What changed? Why is it asking for more RAM than is needed to run the model where/when it used to work before?

Relevant log output

Error: 500 Internal Server Error: model requires more system memory (69.0 GiB) than is available (65.6 GiB)

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

0.17.7

extent analysis

Fix Plan

The fix involves increasing the available system memory or optimizing the model to require less memory.

Steps to Fix

  • Increase Swap Space: Increase the swap space to act as an extension of the RAM.
  • Optimize Model: Optimize the model to use less memory.
  • Update Ollama: Update Ollama to the latest version.

Example Code

To increase swap space, you can use the following commands:

# Create a 4GB swap file
sudo fallocate -l 4G /swapfile

# Make the swap file readable and writable only by root
sudo chmod 600 /swapfile

# Initialize the swap space
sudo mkswap /swapfile

# Activate the swap space
sudo swapon /swapfile

To optimize the model, you can try reducing the batch size or using a more efficient model architecture.

Verification

After applying the fix, try running the model again with ollama run deepseek-r1:70b. If the model runs successfully, the fix was successful. You can also check the available memory using free -h to verify that the swap space is being used.

Extra Tips

  • Monitor your system's memory usage to avoid running out of memory in the future.
  • Consider upgrading your hardware to increase the available RAM.
  • Refer to the Ollama documentation for more information on optimizing models and managing memory usage.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING