返回全部动态

llama.cpp b11639 修复 OpenCL CLAMP 非连续视图问题

原标题:b11639

llama.cpp Releases一手来源开源质量 66

AI 摘要

llama.cpp 发布 b11639 版本,主要修复了 OpenCL 后端 CLAMP 算子在处理非连续(strided)视图时索引错误的问题。修复方式是新增一个针对非连续输入的 strided kernel_clamp_nc,并在源张量非连续时启用该内核,行为与其他一元算子保持一致。该版本同时提供 macOS、Linux、Windows、Android 等多平台预编译包。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

<details open> opencl: support CLAMP on non-contiguous views (#30186) The clamp kernel indexed source and destination as one flat contiguous array, so a strided view as input (the new CLAMP v=1 case) read the wrong elements. Add a strided kernel_clamp_nc, as the other unary ops have, and take it whenever the source is not contiguous. </details> **Website:** - <https://llama.app> **Attestations:** - <https://github.com/ggml-org/llama.cpp/attestations/56132091> **macOS/iOS:** - [macOS Apple


发布时间:2026-10-15 14:04
抓取时间:2026-10-15 14:08
来源机构:ggml-org
阅读原文github.com