Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions vibe_kernels/loss/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ def cutedsl_impl():
baseline()
try:
triton_impl()
except:
except Exception:
pass
try:
cutedsl_impl()
except:
except Exception:
pass

# --- Quack ---
Expand Down Expand Up @@ -177,7 +177,7 @@ def quack_impl():
.view(-1)
)
tri_diff = torch.max(torch.abs(ref - ours_tri)).item()
except:
except Exception:
tri_diff = -1.0

# CuTeDSL
Expand Down
2 changes: 1 addition & 1 deletion vibe_kernels/sampling/benchmark_all_topk.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def benchmark_quack(
else:
# Cutlass doesn't have cuda module in this version
return None
except:
except Exception:
return None

from quack.topk import topk
Expand Down
2 changes: 1 addition & 1 deletion vibe_kernels/vibe_attention/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ def backward(ctx, dout, *args):
q, k, v, out, lse, cu_seqlens_q, cu_seqlens_k, seqused_q, seqused_k = (
ctx.saved_tensors
)
assert seqused_q == seqused_k == None
assert seqused_q is None and seqused_k is None
assert ctx.softcap == 0.0
dq, dk, dv = _flash_attn_bwd(
q,
Expand Down