[GH-ISSUE #2227] model not loading in GPU #27036

Closed
opened 2026-04-22 03:56:33 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @muka on GitHub (Jan 27, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2227

Hi, great project congrats!

I noticed that event if ollama (in docker) logs say it offloaded layers to GPU

image

nvdia-smi report no actual usage

image

Is this an expected beahviour?

A similar setup with localai has similar logs but with better performances, denoting it is actually using the gpu

Originally created by @muka on GitHub (Jan 27, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2227 Hi, great project congrats! I noticed that event if ollama (in docker) logs say it offloaded layers to GPU ![image](https://github.com/ollama/ollama/assets/1021269/e21f2348-22c9-43ab-84dd-232c9a75a019) nvdia-smi report no actual usage ![image](https://github.com/ollama/ollama/assets/1021269/0cb21d32-e5f9-42de-b56f-eafe045c3bbe) Is this an expected beahviour? A similar setup with [localai](https://github.com/mudler/LocalAI) has similar logs but with better performances, denoting it is actually using the gpu
Author
Owner

@muka commented on GitHub (Jan 27, 2024):

Dumb me, actually ollama was logging it could not load the model in GPU.

This already happened to me when linux comes back from hibernation.

This may help or a full reboot as last resort

sudo rmmod nvidia_uvm || true
sudo modprobe nvidia_uvm  || true

ollama is running at full speed now, great!

Self closing 🥇

<!-- gh-comment-id:1913091607 --> @muka commented on GitHub (Jan 27, 2024): Dumb me, actually ollama was logging it could not load the model in GPU. This already happened to me when linux comes back from hibernation. This may help or a full reboot as last resort ```sh sudo rmmod nvidia_uvm || true sudo modprobe nvidia_uvm || true ``` ollama is running at full speed now, great! Self closing :1st_place_medal:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#27036