Uh oh!
There was an error while loading. Please reload this page.
Different dimension for attention - #833
Conversation
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com> Signed-off-by: root <root@ipp2-0037.nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com> Signed-off-by: root <root@ipp2-0037.nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com> Signed-off-by: root <root@ipp2-0037.nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com> Signed-off-by: root <root@ipp2-0037.nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com> Signed-off-by: root <root@ipp2-0037.nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com> Signed-off-by: root <root@ipp2-0037.nvidia.com>
Signed-off-by: root <root@ipp2-0037.nvidia.com>
Signed-off-by: root <root@ipp2-0037.nvidia.com>
…ghts - now loading works correctly, confirmed by the generation code. Signed-off-by: root <root@ipp2-1661.nvidia.com>
Signed-off-by: root <root@ipp2-1661.nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
There was a problem hiding this comment.
No, apparently it's ok. In last commit which was merged it was accidentally changed, so we want to revert it.
| cp_group: Optional[dist_group_type] = None, | ||
| cp_global_ranks: List[int] = None, | ||
| cp_stream: torch.cuda.Stream = None, | ||
| kv_channels: int = None # deprecated |
There was a problem hiding this comment.
Well, if it is deprecated, then we should make sure that the code that explicitly calls kv_channels=something still works as before, right? While those changes are just ignoring it.
There was a problem hiding this comment.
I think the code will crash when kv_channels were set for different value than default, so we can safely do this. We have in the code
self.hidden_size_kv = int(hidden_size * self.num_gqa_groups // num_attention_heads)
...
self.layernorm_qkv = LayerNormLinear(
hidden_size,
hidden_size + 2 * self.hidden_size_kv,
...
So the input size to the attention does not depend from kv_channels - do kv_channels can have one value.
I see this is not the case with DotProductAttention, I will look at this.
Nevertheless, I want to ask if I want to deprecate an argument, what should I do? Will causing it to behave the same at previously, but removing from docs will be ok? Do we consider it as breaking the API?
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
sudhakarsingh27
left a comment
There was a problem hiding this comment.
The tutorial file's mode has been changed. Could you pls remove that change?
Uh oh!
There was an error while loading. Please reload this page.
pggPL
commented
May 14, 2024
But this tutorial mode change is good. Should I remove it and add to the new PR? |
…TransformerEngine into different_dimension_for_attention
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
sudhakarsingh27
commented
May 16, 2024
/te-ci pytorch |
ksivaman
commented
May 17, 2024
/te-ci pytorch |
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
…TransformerEngine into different_dimension_for_attention
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
sudhakarsingh27
commented
May 21, 2024
/te-ci pytorch |
ksivaman
left a comment
There was a problem hiding this comment.
Why change the file permission for the tutorial?
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
sudhakarsingh27
commented
May 24, 2024
It seems like we mistakenly changed the permission last time so I think we're reverting it back. Is that okay or do we need to create a separate fix for it? |
sudhakarsingh27
commented
May 24, 2024
/te-ci pytorch |
Description
I added
channels_per_headparameter to attention. I know that it is breaking change, but I think there is not a good way of doing it - look at the discussion in #731Fixes # (issue)
Type of change
Changes
Please list the changes introduced in this PR:
channels_per_headparameter to attention,Checklist: