Skip to content

Fix Metal API validation errors - #1607

Closed
finnvoor wants to merge 1 commit into
ggml-org:masterfrom
finnvoor:fix/metal-api-validation
Closed

finnvoor wants to merge 1 commit into
ggml-org:masterfrom
finnvoor:fix/metal-api-validation

Conversation

@finnvoor

@finnvoor finnvoor commented Dec 8, 2023

Copy link
Copy Markdown
Contributor

The Metal API validator doesn't like setting nil for a buffer and throws error failed assertion Compute Function(kernel_soft_max_4): missing buffer binding at index 1 for src1[0].

Only setting non-nil buffers fixes the error, even though the binding is still "missing"

@ggerganov

Copy link
Copy Markdown
Member

I fixed this in 7bc4d22

Currently, only the softmax kernel requires optional src1 argument - all other should never be nil.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants