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

[WIP] Llama implementation for GritLM #63

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

minsik-ai
Copy link
Contributor

Work in progress! Not tested yet.

is_causal support added.
Uploading for comments.

@minsik-ai
Copy link
Contributor Author

#60

@minsik-ai
Copy link
Contributor Author

@ThisisXXZ
Copy link

Thanks for your work! Will test your script in my environment.

attention_mask,
(batch_size, seq_length),
input_tensor,
past_key_values_length,

Choose a reason for hiding this comment

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

local variable 'past_key_values_length' referenced before assignment in line 1149. I'm not quite familiar with the logic here, but it seems that past_key_values = 0 in line 1127 prevents the program from going into the conditional if past_key_values: in line 1128.

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