-
Notifications
You must be signed in to change notification settings - Fork 516
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
fix falcon dummy input generator #1825
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1090,11 +1090,12 @@ def __init__( | |
random_sequence_length_range=random_sequence_length_range, | ||
**kwargs, | ||
) | ||
self.num_kv_heads = self.num_kv_heads = ( | ||
normalized_config.num_kv_heads | ||
if (normalized_config.new_decoder_architecture or not normalized_config.multi_query) | ||
else 1 | ||
) | ||
if normalized_config.new_decoder_architecture and normalized_config.multi_query: | ||
self.num_kv_heads = normalized_config.num_attention_heads | ||
elif normalized_config.new_decoder_architecture: | ||
self.num_kv_heads = normalized_config.num_kv_heads | ||
else: | ||
self.num_kv_heads = 1 | ||
self.head_dim = self.hidden_size // self.num_attention_heads | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also why not have this value set in the |
||
def generate(self, input_name: str, framework: str = "pt", int_dtype: str = "int64", float_dtype: str = "fp32"): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't it be :
?