Adding extra values to the decode_result enum #1140
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I started getting -3 values when doing batch operations upon calling
Infer
on the batched executor. I was checking for NoKvSlot, but it turns out-3
aligns to "failed to prepare ubatch" when callingfind_slot
. I believe these values first appeared with this commit two weeks ago, but that's with, admittedly, limited research.I'd like a better enum value, but unfortunately, they also are using -3 for
GGML_STATUS_FAILED
results when callinggraph_compute
, so the value has a double meaning. So, I'm definitely open to other names for the value than what I have here, but at a loss at what they could be.