[PR #5368] [MERGED] Do not shift context for sliding window models #58458

Closed
opened 2026-04-29 13:20:53 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5368
Author: @jmorganca
Created: 6/29/2024
Status: Merged
Merged: 6/29/2024
Merged by: @jmorganca

Base: mainHead: jmorganca/limit-sliding-window


📝 Commits (3)

  • 362df13 Do not shift context for sliding window models
  • 45868bc truncate prompt > 2/3 tokens
  • 4c7f6ce only target gemma2

📊 Changes

1 file changed (+37 additions, -9 deletions)

View changed files

📝 llm/ext_server/server.cpp (+37 -9)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/5368 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 6/29/2024 **Status:** ✅ Merged **Merged:** 6/29/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/limit-sliding-window` --- ### 📝 Commits (3) - [`362df13`](https://github.com/ollama/ollama/commit/362df13c1f9859ec4ae85101ff0f56e94895a63d) Do not shift context for sliding window models - [`45868bc`](https://github.com/ollama/ollama/commit/45868bc77f02f33c4262098914435cb806a7570f) truncate prompt > 2/3 tokens - [`4c7f6ce`](https://github.com/ollama/ollama/commit/4c7f6cec1da682f1850b422d188b7628fad3b7fe) only target gemma2 ### 📊 Changes **1 file changed** (+37 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `llm/ext_server/server.cpp` (+37 -9) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 13:20:53 -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#58458