switch GDN to use attn-gym kernels for titanRL - #4363
Conversation
94fbc7d to
653302e
Compare
|
question: does this also work on gb gpus only? |
|
@shuhuayu only blackwell |
653302e to
71feff5
Compare
|
B200 and B300 to be grace or non grace |
ed38e0d to
15912af
Compare
9c2b1d8 to
ed345f4
Compare
ed345f4 to
c04cd02
Compare
c04cd02 to
fb0ad75
Compare
| x=x_TD.unsqueeze(0), | ||
| weight=weight.squeeze(1), | ||
| bias=None, | ||
| del cu_seqlens_cpu |
There was a problem hiding this comment.
with attn-gym, do we no longer need this any more? If so let's delete the code that generates it in get_attention_masks
| from attn_gym.linear import ( | ||
| causal_conv1d as _attn_gym_causal_conv1d, | ||
| l2norm as _attn_gym_l2norm, | ||
| recurrent_gdn as _attn_gym_recurrent_gdn, | ||
| ) |
There was a problem hiding this comment.
I'd be happy with removing _attn_gym_ prefix
| "the paged convolution history has contiguous channels." | ||
| ) | ||
|
|
||
| self.cache_config.mamba_ssm_cache_dtype = "float32" |
There was a problem hiding this comment.
should this be fp32 regardless of batch invariant mode?
There was a problem hiding this comment.
without looking into details, I had expected that with attn-gym we can make the code shorter (e.g. we don't need to copy the state cache out -> computation -> put the result back in cache), but it doesn't look like so?
There was a problem hiding this comment.
this is because we are stilll supporting prefill(chunked) through fla for gdn now; im working on fixing this
performance improvements:

