Shivam Sharma
Shivam Sharma
Picking this up. Plan: 1. Cache `is_fake_mode()` once at call entry in `_flash_attn_fwd` / `_flash_attn_bwd` and thread through, replacing the 3-4 per-call lookups. 2. Add a shape/config-keyed fast-path that skips...
Hi @yzh119, I'd like to pick this up as a small first PR if it's still wanted — the issue has been quiet since Feb so wanted to confirm scope...
@Johnsonms Please review this as well. Thanks!
@drisspg @jayhshah @Johnsonms Can you please review this?
@Johnsonms Please review/approve this as well please.
@Johnsonms @drisspg @jayhshah can you please take a look here?
Hi @Tcc0403 @vaibhavjindal — I'd like to pick this up if it's still wanted. Quick clarification first: PR #420 (closing #404) added ce_weight for per-class weighting, which matches torch.nn.CrossEntropyLoss(weight=...). This...
@kashif Have you already fixed this? CC: @yukiu00
Opened #2515 to fix this. Approach: - Extend the existing `seqlen_k == 0` early-exit in `_flash_attn_fwd` to also cover `total_q == 0`, which uniformly handles both `seqlen_q == 0` (dense)...
@Tcc0403 Took a look at this. The linear assumption actually appears in two places, not just `estimate_kernel_peak_memory`: 1. `estimate_kernel_peak_memory` returns raw `peak_bytes`; callers divide by `num_tokens` themselves. 2. `compute_seq_len_sweep_config` inverts...