[PR #12870] [MERGED] ml: add slice operation #13988

Closed
opened 2026-04-13 00:41:58 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12870
Author: @mxyng
Created: 10/30/2025
Status: Merged
Merged: 11/13/2025
Merged by: @mxyng

Base: mainHead: mxyng/slice


📝 Commits (2)

📊 Changes

3 files changed (+773 additions, -1 deletions)

View changed files

📝 ml/backend.go (+4 -0)
📝 ml/backend/ggml/ggml.go (+63 -0)
📝 ml/backend/ggml/ggml_test.go (+706 -1)

📄 Description

this change implements helper functions for slicing tensors. these function as syntactic sugar for views


🔄 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/12870 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 10/30/2025 **Status:** ✅ Merged **Merged:** 11/13/2025 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/slice` --- ### 📝 Commits (2) - [`d3c208d`](https://github.com/ollama/ollama/commit/d3c208dd230ae48bf342f896ea0c9ff1325f3b4d) slice - [`eadae52`](https://github.com/ollama/ollama/commit/eadae522dc7dab9391c849b6d5c927a75769da0f) chunk, chunksections ### 📊 Changes **3 files changed** (+773 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `ml/backend.go` (+4 -0) 📝 `ml/backend/ggml/ggml.go` (+63 -0) 📝 `ml/backend/ggml/ggml_test.go` (+706 -1) </details> ### 📄 Description this change implements helper functions for slicing tensors. these function as syntactic sugar for views --- <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-13 00:41:58 -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#13988