[GH-ISSUE #6653] Loading a smaller context model after a bigger model is loaded #29949

Open
opened 2026-04-22 09:18:39 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @Madhav-Gohel on GitHub (Sep 5, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6653

What is the issue?

Hardware

Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 46 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 64
On-line CPU(s) list: 0-63
Vendor ID: GenuineIntel
Model name: Intel(R) Xeon(R) Gold 5218 CPU @ 2.30GHz
CPU family: 6
Model: 85
Thread(s) per core: 2
Core(s) per socket: 16
Socket(s): 2
3 x Quadro RTX 5000
Screenshot from 2024-09-05 14-53-01

Error

The below happens when llama3.1 is already loaded and i am loading smollm which are having different context length.

Both model are loaded into gpu on request but results below on API request
Screenshot from 2024-09-05 14-51-52

Both model works fine concurrently using ollama cli

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

0.3.5

Originally created by @Madhav-Gohel on GitHub (Sep 5, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6653 ### What is the issue? ## Hardware Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 46 bits physical, 48 bits virtual Byte Order: Little Endian CPU(s): 64 On-line CPU(s) list: 0-63 Vendor ID: GenuineIntel Model name: Intel(R) Xeon(R) Gold 5218 CPU @ 2.30GHz CPU family: 6 Model: 85 Thread(s) per core: 2 Core(s) per socket: 16 Socket(s): 2 3 x Quadro RTX 5000 ![Screenshot from 2024-09-05 14-53-01](https://github.com/user-attachments/assets/160c1e28-ca5e-4499-bb05-481a4528024d) ## Error The below happens when **llama3.1** is already loaded and i am loading **smollm** which are having different context length. Both model are loaded into gpu on request but results below on API request ![Screenshot from 2024-09-05 14-51-52](https://github.com/user-attachments/assets/769c484c-1399-4c65-8e93-4dd331eab024) Both model works fine concurrently using ollama cli ### OS Linux ### GPU Nvidia ### CPU Intel ### Ollama version 0.3.5
GiteaMirror added the bug label 2026-04-22 09:18:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#29949