-
Notifications
You must be signed in to change notification settings - Fork 966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Short-circuit operator? #357
Comments
Related: #283 |
I think you can achieve that with #308 and a custom op defined in user code. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm playing with an idea to short-circuit a graph if a certain condition is met. Specifically, I'd like to have one or more "checkpoints" in a Transformer model where the logits are evaluated mid-graph – if they overwhelmingly favor one token, the remaining layers are ignored. Is a short-circuit functionality something that would be considered in GGML? A very basic version could just abort the graph computation; a more complicated one might point to a downstream task.
The text was updated successfully, but these errors were encountered: