[PR #5491] [MERGED] Fix assert on small embedding inputs #11798

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5491
Author: @jmorganca
Created: 7/5/2024
Status: Merged
Merged: 7/5/2024
Merged by: @jmorganca

Base: mainHead: jmorganca/pooling


📝 Commits (2)

  • 4683bdb Fix assert on small embedding inputs
  • 70ded27 Update llm/patches/09-pooling.diff

📊 Changes

1 file changed (+60 additions, -0 deletions)

View changed files

llm/patches/09-pooling.diff (+60 -0)

📄 Description

Tensors allocated for pooling layers were too small on 2-3 character inputs causing assertions to be fired.


🔄 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/5491 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 7/5/2024 **Status:** ✅ Merged **Merged:** 7/5/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/pooling` --- ### 📝 Commits (2) - [`4683bdb`](https://github.com/ollama/ollama/commit/4683bdb241ea3e1b247f0392f7b92894f77f23bd) Fix assert on small embedding inputs - [`70ded27`](https://github.com/ollama/ollama/commit/70ded273141eeef54188c50c8e5a0e490a3ca269) Update llm/patches/09-pooling.diff ### 📊 Changes **1 file changed** (+60 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `llm/patches/09-pooling.diff` (+60 -0) </details> ### 📄 Description Tensors allocated for pooling layers were too small on 2-3 character inputs causing assertions to be fired. --- <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:39:09 -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#11798