Skip to content

ggml-vulkan: Add ELU op support#20183

Merged
0cc4m merged 6 commits intoggml-org:masterfrom
GiantPrince:master
Mar 8, 2026
Merged

ggml-vulkan: Add ELU op support#20183
0cc4m merged 6 commits intoggml-org:masterfrom
GiantPrince:master

Conversation

@GiantPrince
Copy link
Contributor

Add support for the ELU unary operation in the Vulkan backend.

First contribution, so all feedback is appreciated!

Related: #14909

@GiantPrince GiantPrince requested a review from 0cc4m as a code owner March 7, 2026 06:40
@github-actions github-actions bot added documentation Improvements or additions to documentation Vulkan Issues specific to the Vulkan backend ggml changes relating to the ggml tensor library for machine learning labels Mar 7, 2026
Copy link
Contributor

@jeffbolznv jeffbolznv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functionally this looks right (I haven't built/run it myself), just one question about the docs change.

"Vulkan0","TANH","type=f16,ne_a=[5,7,11,13],v=0","support","1","yes","Vulkan"
"Vulkan0","ELU","type=f16,ne_a=[128,2,2,2],v=0","support","0","no","Vulkan"
"Vulkan0","ELU","type=f16,ne_a=[5,7,11,13],v=0","support","0","no","Vulkan"
"Vulkan0","ELU","type=f16,ne_a=[128,2,2,2],v=0","support","1","yes","Vulkan"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you manually edit this file? It hasn't been updated in 3 months and I doubt this is all that has changed. There are instructions to generate it in https://github.com/ggml-org/llama.cpp/blob/master/docs/ops.md.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thank you for the feedback!

I did manually edit this file. I should have mentioned this.

I ran the command
$test-backend-ops support -b Vulkan0 --output csv
but the output only contained 13593 lines while the original Vulkan.csv contained 18741 lines.
Is this the expected behavior? Am I missing something?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The decrease in tests is probably from #19381.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the clarification.
I have updated Vulkan.csv and ops.md accordingly.

@jeffbolznv
Copy link
Contributor

Please also fix the whitespace errors in EditorConfig.

Copy link
Contributor

@0cc4m 0cc4m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution!

@0cc4m 0cc4m merged commit d088d5b into ggml-org:master Mar 8, 2026
78 of 79 checks passed
bartowski1182 pushed a commit to bartowski1182/llama.cpp that referenced this pull request Mar 10, 2026
* ggml-Vulkan: add ELU support

* ggml-Vulkan: remove extra spaces and variables

* ggml-Vulkan: fix format issue

* ggml-Vulkan: fix format issue

* fix whitespace issue

* Update Vulkan.csv and ops.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation ggml changes relating to the ggml tensor library for machine learning Vulkan Issues specific to the Vulkan backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants