Skip to content

metal : add XIELU unary op - #20802

Merged
ggerganov merged 1 commit into
ggml-org:masterfrom
seyoungjeong:metal/add-xielu-op
Apr 14, 2026
Merged

ggerganov merged 1 commit into
ggml-org:masterfrom
seyoungjeong:metal/add-xielu-op

Conversation

@seyoungjeong

@seyoungjeong seyoungjeong commented Mar 20, 2026 •

Copy link
Copy Markdown
Contributor

Adds Metal GPU support for the XIELU unary activation function. Previously this op fell back to CPU on Apple Silicon.

Related to #14909

Testing

  ./build/bin/test-backend-ops test -o XIELU
  # 4/4 tests passed on MTL0 (f32, f16, scalar and vectorized _4 paths)

Notes

Claude were used in an assistive capacity during development of this PR

@seyoungjeong
seyoungjeong requested review from a team and ggerganov as code owners March 20, 2026 14:40
@github-actions github-actions Bot added testing Everything test related ggml changes relating to the ggml tensor library for machine learning Apple Metal https://en.wikipedia.org/wiki/Metal_(API) labels Mar 20, 2026
@seyoungjeong

Copy link
Copy Markdown
Contributor Author

@ggerganov would you be able to review the PR when you have a chance?

@nuri-yoo nuri-yoo mentioned this pull request Apr 7, 2026
2 tasks done
@ggerganov ggerganov added the merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. label Apr 7, 2026
@ggerganov

Copy link
Copy Markdown
Member

@0cc4m

0cc4m commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

That might be another RTE issue. I'll look into it.

@jeffbolznv

Copy link
Copy Markdown
Contributor

@0cc4m maybe we should programmatically add the RoundingModeRTE execution mode to all shaders on devices that support it? I could help with that if you want.

@0cc4m

0cc4m commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

If you want to look at it, go ahead, sure.

@ggerganov
ggerganov merged commit aa0f189 into ggml-org:master Apr 14, 2026
47 of 55 checks passed
mengqin pushed a commit to mengqin/llama.cpp that referenced this pull request Apr 20, 2026
my-other-github-account pushed a commit to my-other-github-account/llama.cpp that referenced this pull request May 15, 2026
fukuro-kun pushed a commit to fukuro-kun/fukuro-llama-cpp-turboquant that referenced this pull request Jul 5, 2026
MrLordCat referenced this pull request in MrLordCat/llama.cpp-rdna-lab Jul 16, 2026
zommiommy pushed a commit to zommiommy/llama.cpp that referenced this pull request Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Apple Metal https://en.wikipedia.org/wiki/Metal_(API) ggml changes relating to the ggml tensor library for machine learning merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. testing Everything test related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants