[PR #3918] [MERGED] llm: limit generation to 10x context size to avoid run on generations #11318

Closed
opened 2026-04-12 23:27:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/3918
Author: @jmorganca
Created: 4/25/2024
Status: Merged
Merged: 4/25/2024
Merged by: @jmorganca

Base: mainHead: jmorganca/fix-infinite


📝 Commits (3)

  • f553319 llm: limit generation to 10x context size to avoid run on generations
  • 97d82fe add comment
  • d25b426 simplify condition statement

📊 Changes

2 files changed (+11 additions, -2 deletions)

View changed files

📝 api/types.go (+4 -2)
📝 llm/server.go (+7 -0)

📄 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/3918 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 4/25/2024 **Status:** ✅ Merged **Merged:** 4/25/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/fix-infinite` --- ### 📝 Commits (3) - [`f553319`](https://github.com/ollama/ollama/commit/f553319cd1893617bf1539e2a7681b6287dd80eb) llm: limit generation to 10x context size to avoid run on generations - [`97d82fe`](https://github.com/ollama/ollama/commit/97d82fe12f2e1e817a4e0c93c1b0c3f3ca2c2bd8) add comment - [`d25b426`](https://github.com/ollama/ollama/commit/d25b42616db195ae346b136a0c9128fb08cc9a8f) simplify condition statement ### 📊 Changes **2 files changed** (+11 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+4 -2) 📝 `llm/server.go` (+7 -0) </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-12 23:27:41 -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#11318