We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From
H2O/h2o_hf/utils_hh/modify_llama.py
Lines 140 to 156 in 281ffef
attn_mask = torch.ones
attn_mask[:, :-self.recent_budget] = 0 only works for recent_budget !=0
attn_mask[:, :-self.recent_budget] = 0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
From
H2O/h2o_hf/utils_hh/modify_llama.py
Lines 140 to 156 in 281ffef
If recent_budget=0:
the mask set to one at first,
attn_mask = torch.ones
;but scatter to one attn_mask = attn_mask.scatter(-1, keep_topk, 1);
attn_mask[:, :-self.recent_budget] = 0
only works for recent_budget !=0The text was updated successfully, but these errors were encountered: