Skip to content
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

Check all graph nodes when searching for result_embd_pooled (needed for gemma-2) #8981

Merged

Conversation

fairydreaming
Copy link
Collaborator

This PR replaces checking only two last graph nodes when searching for result_embd_pooled tensor with a full search of all graph nodes starting from the last one. This is needed for models that perform some additional operations after result_norm (e.g. Gemma-2, MiniCPM) resulting in result_embd_pooled tensor position in the graph node list earlier than the second-to-last one.
Fixes #8956.

@fairydreaming fairydreaming merged commit 33309f6 into ggerganov:master Aug 11, 2024
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants