Skip to content

metal : add bf16 support for NEG - #30153

Open
djeong20 wants to merge 1 commit into
ggml-org:masterfrom
djeong20:metal-bf16-neg
Open

djeong20 wants to merge 1 commit into
ggml-org:masterfrom
djeong20:metal-bf16-neg

Conversation

@djeong20

@djeong20 djeong20 commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Overview

  • Adds Metal bf16 NEG support using existing scalar/vector unary kernels.

Requirements

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: YES, implemented bf16 NEG support and tests, ran validation and benchmarks

@djeong20
djeong20 requested review from a team and ggerganov as code owners October 8, 2026 11:10
@ggerganov

Copy link
Copy Markdown
Member

Why just NEG specifically?

@github-actions github-actions Bot added documentation Improvements or additions to documentation 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 Oct 8, 2026
@djeong20

djeong20 commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

Why just NEG specifically?

I started with NEG to keep the initial change small and straightforward to validate. There’s no technical reason to limit BF16 support to NEG, the other unary ops could be enabled after validation.

This branch has not been deployed

No deployments
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) documentation Improvements or additions to documentation ggml changes relating to the ggml tensor library for machine learning testing Everything test related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants