Repository navigation
add safety checks for varlen - #2179
Conversation
|
Thank you! Can we also change llama3 to align with other models: https://github.com/pytorch/torchtitan/blob/main/torchtitan/models/llama3/model/model.py#L228 |
|
@wwwjn what's the barrier to varlen support for DSv3? from a cursory glance using the existing |
|
@jquesnelle the underlying flash attention kernel expects Q, K, V to have the same head dimensions torchtitan/torchtitan/models/deepseek_v3/model/model.py Lines 302 to 304 in d12ff2f cc @drisspg |
since varlen attn is not supported for deepseek v3 and llama4, we should raise an error if someone attempts to use it
since varlen attn is not supported for deepseek v3 and llama4, we should raise an error if someone attempts to use it
since varlen attn is not supported for deepseek v3 and llama4, we should raise an error if someone attempts to use it
since varlen attn is not supported for deepseek v3 and llama4, we should raise an error if someone attempts to use it